/* ========================================
   Sundarji Investor Portal - Main Styles
   ======================================== */

:root {
    /* Color Scheme */
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #3b82f6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #06b6d4;

    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --box-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
    overflow-x: hidden;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

/* ========================================
   Authentication Pages
   ======================================== */

.auth-page {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    min-height: 100vh;
}

.auth-branding {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95) 0%, rgba(30, 64, 175, 0.95) 100%);
    position: relative;
    overflow: hidden;
}

.auth-branding::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 60s linear infinite;
}

@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.auth-form-container {
    max-width: 480px;
    width: 100%;
}

.auth-card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
}

/* ========================================
   Forms
   ======================================== */

.form-control {
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--box-shadow);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

/* ========================================
   Landing Page
   ======================================== */

.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    color: #fbbf24;
    margin-bottom: 1rem;
}

/* ========================================
   Dashboard Layouts
   ======================================== */

.dashboard-sidebar {
    background: white;
    border-right: 1px solid var(--gray-200);
    min-height: 100vh;
    padding: 1.5rem 0;
}

.sidebar-header {
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-nav {
    list-style: none;
    padding: 1rem 0;
}

.sidebar-nav-item {
    margin-bottom: 0.25rem;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--gray-700);
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar-nav-link:hover,
.sidebar-nav-link.active {
    background: var(--gray-100);
    color: var(--primary-color);
    border-right: 3px solid var(--primary-color);
}

.sidebar-nav-link i {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

/* ========================================
   Cards & Stats
   ======================================== */

.stat-card {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--primary-color);
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   Timeline
   ======================================== */

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-marker {
    position: absolute;
    left: -1.75rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    box-shadow: var(--box-shadow);
}

/* ========================================
   Status Badges
   ======================================== */

.badge-submitted {
    background: var(--info-color);
}

.badge-under-review {
    background: var(--warning-color);
}

.badge-approved {
    background: var(--success-color);
}

.badge-rejected {
    background: var(--danger-color);
}

.badge-needs-info {
    background: #f59e0b;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .auth-card {
        padding: 1.5rem;
    }

    .dashboard-sidebar {
        position: fixed;
        left: -100%;
        transition: left 0.3s ease;
        z-index: 1000;
        width: 280px;
    }

    .dashboard-sidebar.active {
        left: 0;
    }

    .flex-fill {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .navbar {
        padding: 0.5rem 1rem !important;
    }
}

@media (max-width: 576px) {
    .p-4 {
        padding: 1.5rem !important;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar .d-flex {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    /* Mobile form improvements */
    .form-control,
    .form-select {
        font-size: 16px !important;
        /* Prevent zoom on iOS */
    }

    .btn-mobile-full {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Ensure tables are scrollable on mobile */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ========================================
   Utilities
   ======================================== */

.text-muted {
    color: var(--gray-600) !important;
}

.bg-light {
    background-color: var(--gray-50) !important;
}

.border-rounded {
    border-radius: var(--border-radius);
}

.shadow-sm {
    box-shadow: var(--box-shadow);
}

.shadow-lg {
    box-shadow: var(--box-shadow-lg);
}

/* ========================================
   Table Actions & Buttons
   ======================================== */

.table td .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 2px;
}

.table td .btn-link {
    width: auto;
    height: auto;
    padding: 0;
    text-decoration: none;
}