/* ============================================================================
   ANTIGRAVITY DESIGN SYSTEM - AGNIVEER ADMISSION PORTAL
   Theme: Stark Editorial Space + Army Olive Drab Product Accent
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    --agni-primary: #2c3e20;
    --agni-primary-hover: #1e2c16;
    --agni-deep-green: #3a5a2c;
    --agni-olive-soft: #4e6b3e;
    --agni-navy: #1a2a14;
    --agni-bg: #f7f6f0;
    --agni-card-bg: #ffffff;
    --agni-border: #dcd6c8;
    --agni-border-hover: #b8af9b;
    --agni-ink: #1f1b14;
    --agni-muted: #6b6354;
    --agni-light-bg: #f0ebd9;
    --agni-success: #285e28;
    --agni-warning: #996500;
    --agni-danger: #8b2a2a;
    --agni-gold: #b38f38;

    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Space Grotesk', 'Inter', sans-serif;
}

/* Base Body Styles */
body {
    font-family: var(--font-sans);
    background-color: var(--agni-bg);
    color: var(--agni-ink);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* Standalone Login Wrapper */
.agni-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a2a14 0%, #2c3e20 50%, #0d150a 100%);
    padding: 20px;
}

.agni-login-card {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.agni-login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.agni-login-logo img {
    height: 70px;
    margin-bottom: 12px;
}

.agni-login-logo h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--agni-primary);
    margin: 6px 0 2px 0;
}

.agni-login-logo p {
    font-size: 13px;
    color: var(--agni-muted);
    margin: 0;
}

.agni-login-badge {
    display: inline-block;
    background: #e8e2d3;
    color: var(--agni-primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 10px;
}

/* Page Header & Breadcrumbs */
.agni-page-header {
    background: #ffffff;
    border: 1px solid var(--agni-border);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.agni-page-header h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--agni-primary);
    margin: 0 0 6px 0;
    font-size: 20px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 13px;
}

.breadcrumb > li + li:before {
    content: "/";
    color: #999;
}

/* Cards & Layout Containers */
.agni-card {
    background: var(--agni-card-bg);
    border: 1px solid var(--agni-border);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    transition: border-color 0.2s ease;
}

.agni-card h5 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--agni-primary);
    margin-top: 0;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--agni-light-bg);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Dashboard Metric Cards */
.agni-stat-card {
    background: #ffffff;
    border: 1px solid var(--agni-border);
    border-top: 4px solid var(--agni-primary);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.agni-stat-card .stat-value {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    color: var(--agni-primary);
    line-height: 1;
    margin-bottom: 6px;
}

.agni-stat-card .stat-label {
    font-size: 13px;
    color: var(--agni-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Action Cards */
.agni-action-card {
    background: #ffffff;
    border: 1px solid var(--agni-border);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    margin-bottom: 20px;
}

.agni-action-card:hover {
    border-color: var(--agni-deep-green);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(44, 62, 32, 0.1);
}

.agni-action-card .icon {
    width: 54px;
    height: 54px;
    background: var(--agni-light-bg);
    color: var(--agni-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px auto;
    font-size: 22px;
}

.agni-action-card h5 {
    border-bottom: none;
    padding: 0;
    margin: 0 0 8px 0;
    justify-content: center;
    font-size: 16px;
}

/* Tables & GridView Styling */
.agni-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
}

.agni-table th {
    background-color: var(--agni-primary) !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 14px;
    border: none !important;
}

.agni-table td {
    padding: 12px 14px;
    font-size: 14px;
    vertical-align: middle !important;
    border-top: 1px solid var(--agni-border);
}

.agni-table tbody tr:nth-child(even) {
    background-color: #faf9f5;
}

.agni-table tbody tr:hover {
    background-color: #f2ede0;
}

/* Badges & Status Indicators */
.badge-status {
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.badge-pending { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.badge-applied { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.badge-waived { background: #e2e3e5; color: #383d41; border: 1px solid #d6d8db; }
.badge-rejected { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Fee Summary Box */
.fee-summary-box {
    background: #f8f6f0;
    border: 1px dashed var(--agni-border);
    border-radius: 8px;
    padding: 20px;
    margin-top: 16px;
}

.fee-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e8e2d5;
    font-size: 14px;
}

.fee-row:last-child {
    border-bottom: none;
}

.fee-row.total-row {
    font-weight: 700;
    font-size: 16px;
    color: var(--agni-primary);
    border-top: 2px solid var(--agni-border);
    margin-top: 8px;
    padding-top: 12px;
}

.waived-tag {
    text-decoration: line-through;
    color: #888;
    margin-right: 8px;
}

/* Button Overrides */
.btn-agni-primary {
    background-color: var(--agni-primary);
    color: #ffffff;
    border: none;
    padding: 9px 20px;
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.btn-agni-primary:hover, .btn-agni-primary:focus {
    background-color: var(--agni-primary-hover);
    color: #ffffff;
}

.btn-agni-success {
    background-color: var(--agni-deep-green);
    color: #ffffff;
    border: none;
    padding: 9px 20px;
    font-weight: 600;
    border-radius: 6px;
}

.btn-agni-success:hover {
    background-color: #28401e;
    color: #ffffff;
}

/* Loading Overlay Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.spinner-box i {
    font-size: 36px;
    color: var(--agni-primary);
    margin-bottom: 12px;
}

.spinner-box p {
    margin: 0;
    font-weight: 600;
    color: var(--agni-ink);
}

/* ============================================================================
   TOP NAVBAR STYLES
   ============================================================================ */
.agni-navbar {
    background: linear-gradient(135deg, #13200e 0%, #1a2a14 60%, #26381d 100%);
    border-bottom: 2px solid rgba(179, 143, 56, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.agni-nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* Zone 1: Brand */
.agni-nav-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo-wrapper {
    background: rgba(255, 255, 255, 0.08);
    padding: 6px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.brand-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #ffffff;
    font-size: 17px;
    letter-spacing: 0.3px;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.brand-subtitle {
    font-size: 11px;
    color: #c4bdad;
    font-weight: 500;
    letter-spacing: 0.2px;
    margin-top: 2px;
}

/* Zone 2: Navigation Links */
.agni-nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.25);
    padding: 5px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.agni-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e2ded4 !important;
    font-weight: 600;
    font-size: 13.5px;
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.agni-nav-link .nav-icon {
    font-size: 14px;
    color: #b38f38;
    transition: transform 0.2s ease, color 0.2s ease;
}

.agni-nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.agni-nav-link:hover .nav-icon {
    color: #ffd778;
    transform: scale(1.15);
}

.agni-nav-link:active {
    transform: translateY(0);
}

/* Zone 3: User Section */
.agni-user-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.agni-user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: #ede9de;
    font-weight: 500;
}

.user-avatar {
    font-size: 16px;
    color: #b38f38;
}

.user-name {
    font-weight: 600;
    color: #ffffff;
}

.btn-agni-logout {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #a83232 0%, #8b2a2a 100%);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 7px 16px;
    font-size: 12.5px;
    font-weight: 600;
    border-radius: 20px;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(139, 42, 42, 0.3);
}

.btn-agni-logout:hover {
    background: linear-gradient(135deg, #c43c3c 0%, #a83232 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 42, 42, 0.45);
    color: #ffffff !important;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .agni-nav-container {
        justify-content: center;
    }
    .brand-title {
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    .agni-nav-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    .agni-nav-brand {
        flex-direction: column;
        gap: 8px;
    }
    .brand-text {
        align-items: center;
    }
    .agni-nav-menu {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    .agni-user-section {
        width: 100%;
        justify-content: center;
    }
}

