/* Import Open Sans Condensed for LCARS typography */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans+Condensed:wght@300;700&display=swap');

:root {
    /* LCARS Color Palette - Matching MAUI exactly */
    --lcars-background: #1a1a2e;
    --lcars-header: #1a2744;
    --lcars-content: #404F70;
    --lcars-content-light: #E8EBF0;
    --lcars-title: #F5B963;
    --lcars-primary: #5B9BD5;
    --lcars-primary-dark: #4A7DB8;
    --lcars-primary-light: #A8C9E8;
    --lcars-secondary: #7DA5C8;
    --lcars-accent: #6BA8B8;
    --lcars-secondary-text: #6B7280;
    --lcars-light-stroke: #4A6FA5;
    --lcars-dark-stroke: #2D3E6E;

    /* Text Colors */
    --text-primary: #2C3E50;
    --text-secondary: #7F8C8D;
    --text-tertiary: #BDC3C7;

    /* Button Colors */
    --admin-color: #E07A5F;
    --admin-dark: #C0604A;
    --teacher-color: #F4A261;
    --teacher-dark: #D48240;
    --student-color: #4ECDC4;
    --student-dark: #2BADA5;
    --class-color: #5B9BD5;
    --class-dark: #3A7BA8;
    --evaluation-color: #9B8BD8;
    --evaluation-dark: #7A6AB8;
    --subject-color: #7B8CDE;
    --subject-dark: #5A6BC0;
    --parent-color: #E07A5F;
    --parent-dark: #C0604A;
    --document-color: #4ECDC4;
    --document-dark: #2BADA5;
    --forum-color: #7B8CDE;
    --forum-dark: #5A6BC0;
    --lecture-color: #4ECDC4;
    --lecture-dark: #2BADA5;
    --calendar-color: #70A5D8;
    --calendar-dark: #3A7BA8;
    --notification-badge: #CC4444;

    /* Semantic Colors */
    --success-color: #22AA5B;
    --success-dark: #1B8B4C;
    --error-color: #CC3333;
    --error-dark: #992222;
    --warning-color: #F5B963;
    --info-color: #70A5D8;
    --info-dark: #3A7BA8;

    /* Gray Scale */
    --gray-100: #F5F5F5;
    --gray-200: #E5E5E5;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #212121;

    /* Spacing */
    --spacing-small: 8px;
    --spacing-medium: 16px;
    --spacing-large: 24px;
    --spacing-xlarge: 32px;

    /* Border Radius */
    --radius-small: 10px;
    --radius-medium: 16px;
    --radius-large: 20px;
    --radius-xlarge: 28px;
    --radius-button: 22px;
    --radius-section: 50px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    background-color: var(--lcars-background);
    min-height: 100vh;
    color: white;
}

/* LCARS Font Classes */
.lcars-font,
.lcars-title,
.lcars-button-text {
    font-family: 'Open Sans Condensed', 'Segoe UI', sans-serif;
    letter-spacing: 1px;
}

/* ==================== AI CHAT ==================== */
.chat-shell {
    background: var(--lcars-header);
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-shell__header {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.chat-shell__title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.chat-shell__logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--lcars-title);
    color: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
}

.chat-shell__title-text {
    font-family: 'Open Sans Condensed', 'Segoe UI', sans-serif;
    font-size: 36px;
    font-weight: 400;
    color: var(--lcars-title);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.chat-shell__subtitle {
    color: white;
    font-size: 12px;
    letter-spacing: 2px;
    margin-top: 4px;
}

.chat-shell__toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: white;
}

.chat-shell__toggle input {
    width: 18px;
    height: 18px;
    accent-color: var(--lcars-title);
}

.chat-shell__body {
    background: #404f70;
    border-radius: 26px;
    padding: 24px;
}

.chat-messages {
    background: white;
    border-radius: 16px;
    padding: 20px;
    height: 420px;
    overflow-y: auto;
    color: #2c3e50;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.chat-message {
    display: flex;
    margin-bottom: 14px;
}

.chat-message--assistant {
    justify-content: flex-start;
}

.chat-message--user {
    justify-content: flex-end;
}

.chat-message__bubble {
    max-width: 360px;
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--lcars-primary);
    color: white;
}

.chat-message--user .chat-message__bubble {
    background: var(--success-color);
    border-bottom-right-radius: 4px;
}

.chat-message--assistant .chat-message__bubble {
    border-bottom-left-radius: 4px;
}

.chat-message__sender {
    font-size: 11px;
    font-weight: 700;
    opacity: 0.9;
    margin-bottom: 6px;
}

.chat-message__sender--hidden {
    display: none;
}

.chat-message__text {
    font-size: 15px;
    line-height: 1.4;
    white-space: pre-wrap;
}

.chat-message__time {
    font-size: 10px;
    opacity: 0.8;
    text-align: right;
    margin-top: 6px;
}

.chat-input {
    margin-top: 16px;
    background: white;
    border-radius: 16px;
    padding: 12px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
}

.chat-input__mic {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: #7b8cde;
    color: white;
    font-size: 22px;
    cursor: not-allowed;
    box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.2);
}

.chat-input__field {
    border: 1px solid #ccd3dc;
    border-radius: 24px;
    padding: 12px 18px;
    font-size: 15px;
    outline: none;
    color: #2c3e50;
    background: #f5f7fa;
}

.chat-input__field:focus {
    border-color: var(--lcars-primary);
}

.chat-input__send {
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: 24px;
    padding: 14px 22px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 0 var(--success-dark);
}

.chat-input__send:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    box-shadow: none;
}

/* ==================== LOGIN PAGE ==================== */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    background: linear-gradient(180deg, var(--lcars-header) 0%, #0d1520 100%);
    border-radius: 20px;
    padding: 50px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--lcars-primary);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    width: 80px;
    height: 80px;
    background: var(--lcars-title);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
}

.login-title {
    font-family: 'Open Sans Condensed', 'Segoe UI', sans-serif;
    font-size: 32px;
    color: var(--lcars-title);
    letter-spacing: 3px;
    font-weight: 400;
    text-transform: uppercase;
}

.login-subtitle {
    color: var(--lcars-secondary-text);
    margin-top: 8px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    color: var(--lcars-primary);
    margin-bottom: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--lcars-primary);
    border-radius: 25px;
    background: rgba(91, 155, 213, 0.1);
    color: white;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--lcars-title);
    background: rgba(245, 185, 99, 0.1);
}

.form-input::placeholder {
    color: var(--lcars-secondary-text);
}

.login-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 22px;
    font-family: 'Open Sans Condensed', 'Segoe UI', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.login-btn-primary {
    background: var(--success-color);
    color: white;
    box-shadow: 0 4px 0 var(--success-dark);
}

.login-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--success-dark);
}

.login-btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--success-dark);
}

.login-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8px;
    right: 8px;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 100%);
    border-radius: 25px 25px 12px 12px;
}

.login-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.error-message {
    background: rgba(204, 51, 51, 0.2);
    border: 1px solid var(--error-color);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #ff6b6b;
    font-size: 14px;
    display: none;
}

.error-message.show {
    display: block;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    cursor: pointer;
}

.remember-me input {
    width: 18px;
    height: 18px;
    accent-color: var(--lcars-primary);
}

.remember-me label {
    color: var(--lcars-secondary-text);
    font-size: 14px;
    cursor: pointer;
}

.api-links {
    margin-top: 30px;
    text-align: center;
    border-top: 1px solid rgba(91, 155, 213, 0.3);
    padding-top: 20px;
}

.api-links a {
    color: var(--lcars-primary);
    text-decoration: none;
    font-size: 13px;
    margin: 0 12px;
    transition: color 0.3s ease;
}

.api-links a:hover {
    color: var(--lcars-title);
}

/* ==================== DASHBOARD PAGE ==================== */
.dashboard-container {
    display: none;
    min-height: 100vh;
    position: relative;
}

.dashboard-container.active {
    display: block;
}

.login-container.hidden {
    display: none;
}

/* Header */
.dashboard-header {
    background: var(--lcars-header);
    padding: 15px 20px;
}

.header-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.header-logo {
    width: 45px;
    height: 45px;
    background: var(--lcars-title);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.header-title {
    font-family: 'Open Sans Condensed', 'Segoe UI', sans-serif;
    font-size: 42px;
    color: var(--lcars-title);
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 15px;
}

.nav-btn {
    padding: 10px 24px;
    border-radius: 22px;
    font-family: 'Open Sans Condensed', 'Segoe UI', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
}

.nav-btn-outline {
    background: transparent;
    border: 2px solid var(--lcars-primary);
    color: var(--lcars-primary);
}

.nav-btn-outline:hover {
    background: rgba(91, 155, 213, 0.15);
}

.nav-btn-filled {
    border: none;
    color: white;
    position: relative;
    padding-top: 12px;
    padding-bottom: 12px;
}

.nav-btn-filled::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 4px;
    right: 4px;
    height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 100%);
    border-radius: 20px 20px 10px 10px;
}

.nav-btn-blue { background: var(--class-color); box-shadow: 0 3px 0 var(--class-dark); }
.nav-btn-green { background: var(--success-color); box-shadow: 0 3px 0 var(--success-dark); }
.nav-btn-red { background: var(--error-color); box-shadow: 0 3px 0 var(--error-dark); }

.nav-btn-filled:hover {
    transform: translateY(-1px);
}

.nav-btn-filled:active {
    transform: translateY(2px);
    box-shadow: none;
}

.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #CC4444;
    color: white;
    font-size: 11px;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.badge.hidden {
    display: none;
}

/* User Profile */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.profile-avatar {
    width: 50px;
    height: 50px;
    background: #3A5070;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.profile-info {
    color: white;
}

.profile-name {
    font-size: 18px;
}

.profile-date {
    font-size: 14px;
    color: var(--lcars-secondary-text);
}

/* Main Content - LCARS Style with curved corner */
.dashboard-content {
    background: var(--lcars-content);
    min-height: calc(100vh - 200px);
    padding: 40px;
    border-radius: 50px 0 0 0;
    margin-top: -10px;
    position: relative;
}

.section-title {
    font-family: 'Open Sans Condensed', 'Segoe UI', sans-serif;
    font-size: 16px;
    color: var(--lcars-title);
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    max-width: 1400px;
}

.dashboard-btn {
    height: 44px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: white;
    font-family: 'Open Sans Condensed', 'Segoe UI', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    border: none;
    padding: 0 20px;
    text-decoration: none;
}

/* 3D Glossy Effect - Two Border Technique */
.dashboard-btn::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 4px;
    right: 4px;
    height: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 100%);
    border-radius: 14px 14px 8px 8px;
    pointer-events: none;
}

.dashboard-btn:hover {
    transform: translateY(-2px);
}

.dashboard-btn:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 currentColor !important;
}

.dashboard-btn .icon {
    font-size: 16px;
}

/* Dashboard Button Counter Badge */
.dashboard-btn .counter,
.dashboard-btn span:last-child span {
    background: rgba(255,255,255,0.25);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 4px;
    min-width: 20px;
    text-align: center;
    display: inline-block;
}

/* Button Colors with 3D Effect */
.btn-admin { background: var(--admin-color); box-shadow: 0 4px 0 var(--admin-dark); }
.btn-teacher { background: var(--teacher-color); box-shadow: 0 4px 0 var(--teacher-dark); }
.btn-student { background: var(--student-color); box-shadow: 0 4px 0 var(--student-dark); }
.btn-parent { background: var(--parent-color); box-shadow: 0 4px 0 var(--parent-dark); }
.btn-class { background: var(--class-color); box-shadow: 0 4px 0 var(--class-dark); }
.btn-lecture { background: var(--lecture-color); box-shadow: 0 4px 0 var(--lecture-dark); }
.btn-evaluation { background: var(--evaluation-color); box-shadow: 0 4px 0 var(--evaluation-dark); }
.btn-subject { background: var(--subject-color); box-shadow: 0 4px 0 var(--subject-dark); }
.btn-forum { background: var(--forum-color); box-shadow: 0 4px 0 var(--forum-dark); }
.btn-document { background: var(--document-color); box-shadow: 0 4px 0 var(--document-dark); }
.btn-calendar { background: var(--calendar-color); box-shadow: 0 4px 0 var(--calendar-dark); }

/* Loading Spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
}

.spinner.show {
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Footer */
.dashboard-footer {
    background: var(--lcars-content);
    padding: 20px 30px;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    font-family: 'Open Sans Condensed', 'Segoe UI', sans-serif;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-title {
        font-size: 28px;
    }

    .nav-buttons {
        justify-content: center;
    }

    .nav-btn {
        padding: 8px 16px;
        font-size: 11px;
    }

    .dashboard-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }

    .dashboard-btn {
        height: 48px;
        font-size: 13px;
    }

    .return-button {
        top: 12px;
        left: 12px;
    }
}

/* Status indicator */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(34, 170, 91, 0.2);
    border-radius: 15px;
    font-size: 12px;
    color: var(--success-color);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ==================== LIST/TABLE PAGE STYLES ==================== */
.content-wrapper {
    background: var(--lcars-content);
    min-height: calc(100vh - 200px);
    padding: 40px;
    color: white;
    border-radius: 50px 0 0 0;
    margin-top: -10px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
    padding-left: 160px;
}

.page-title {
    font-family: 'Open Sans Condensed', 'Segoe UI', sans-serif;
    font-size: 32px;
    color: var(--lcars-title);
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.return-button {
    position: absolute;
    top: 18px;
    left: 20px;
    z-index: 10;
}

.btn {
    padding: 12px 24px;
    border-radius: 22px;
    font-family: 'Open Sans Condensed', 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    position: relative;
}

/* 3D Glossy Effect for all buttons */
.btn::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 4px;
    right: 4px;
    height: 45%;
    background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 100%);
    border-radius: 14px 14px 8px 8px;
    pointer-events: none;
}

.btn-primary {
    background: var(--success-color);
    color: white;
    box-shadow: 0 3px 0 var(--success-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 var(--success-dark);
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 var(--success-dark);
}

.btn-secondary {
    background: var(--class-color);
    color: white;
    box-shadow: 0 3px 0 var(--class-dark);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 var(--class-dark);
}

.btn-secondary:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 var(--class-dark);
}

.btn-danger {
    background: var(--error-color);
    color: white;
    box-shadow: 0 3px 0 var(--error-dark);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 var(--error-dark);
}

.btn-danger:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 var(--error-dark);
}

.data-table {
    width: 100%;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    border: 1px solid var(--lcars-light-stroke);
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--lcars-header);
    color: white;
}

.data-table th {
    font-family: 'Open Sans Condensed', 'Segoe UI', sans-serif;
    padding: 16px 15px;
    text-align: left;
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--lcars-title);
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    color: var(--text-primary);
}

.data-table tbody tr:hover {
    background: rgba(91, 155, 213, 0.08);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.table-actions {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 8px 14px;
    font-family: 'Open Sans Condensed', 'Segoe UI', sans-serif;
    font-size: 11px;
    border-radius: 14px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
}

.btn-sm::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 3px;
    right: 3px;
    height: 45%;
    background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 100%);
    border-radius: 10px 10px 6px 6px;
    pointer-events: none;
}

.btn-edit {
    background: var(--class-color);
    color: white;
    box-shadow: 0 2px 0 var(--class-dark);
}

.btn-edit:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 0 var(--class-dark);
}

.btn-delete {
    background: var(--error-color);
    color: white;
    box-shadow: 0 2px 0 var(--error-dark);
}

.btn-delete:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 0 var(--error-dark);
}

.btn-view {
    background: var(--subject-color);
    color: white;
    box-shadow: 0 2px 0 var(--subject-dark);
}

.btn-view:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 0 var(--subject-dark);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--lcars-secondary-text);
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 18px;
    margin-bottom: 10px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay .spinner {
    width: 60px;
    height: 60px;
    border-width: 6px;
}

/* ==================== DETAIL MODAL ==================== */
.detail-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1050;
}

.detail-modal.is-open {
    display: flex;
}

.detail-modal__dialog {
    background: #0f172a;
    border: 2px solid var(--lcars-primary);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    width: min(700px, 100%);
    max-height: 85vh;
    overflow: hidden;
    color: #e5e7eb;
}

.detail-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: linear-gradient(90deg, var(--lcars-primary-dark), var(--lcars-primary));
    color: white;
}

.detail-modal__body {
    padding: 18px 22px 22px;
    background: #0b1220;
}

.detail-modal__close {
    background: transparent;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px 18px;
}

.detail-card {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 10px;
    padding: 12px 14px;
    background: rgba(15, 23, 42, 0.8);
}

.detail-label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: var(--lcars-primary-light);
    text-transform: uppercase;
    margin-bottom: 6px;
}

.detail-value {
    font-size: 15px;
    color: #e5e7eb;
    line-height: 1.4;
}

.detail-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(91, 155, 213, 0.12);
    border: 1px solid rgba(91, 155, 213, 0.4);
    color: #dbeafe;
    font-weight: 600;
}

.detail-pill.success {
    background: rgba(34, 170, 91, 0.12);
    border-color: rgba(34, 170, 91, 0.5);
    color: #bbf7d0;
}

.detail-pill.error {
    background: rgba(204, 51, 51, 0.12);
    border-color: rgba(204, 51, 51, 0.5);
    color: #fecdd3;
}

/* ==================== FORM STYLES ==================== */
.form-container {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    max-width: 1200px;
    border: 1px solid var(--lcars-light-stroke);
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section .section-title {
    font-family: 'Open Sans Condensed', 'Segoe UI', sans-serif;
    font-size: 18px;
    color: var(--lcars-header);
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    border-color: var(--lcars-primary);
    background: #f9fafb;
}

.form-control:disabled,
.form-control[readonly] {
    background: #e5e7eb;
    cursor: not-allowed;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
    padding: 15px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.checkbox-label:hover {
    background: #f3f4f6;
    border-color: var(--lcars-primary);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--lcars-primary);
}

.checkbox-label span {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

/* ==================== CONTENT CARDS ==================== */
.content-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    margin-bottom: 20px;
    border: 1px solid var(--lcars-light-stroke);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
    justify-content: space-between;
}

.filter-group {
    min-width: 220px;
}

/* ==================== NOTIFICATIONS ==================== */
.notification-list {
    display: grid;
    gap: 16px;
}

.notification-card {
    background: white;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-left: 4px solid transparent;
}

.notification-card.notification-unread {
    border-left-color: var(--lcars-primary);
    background: #f8fbff;
}

.notification-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--lcars-header);
    margin-bottom: 6px;
}

.notification-message {
    color: #4b5563;
    margin-bottom: 10px;
}

.notification-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--lcars-secondary-text);
}

.notification-type {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(91, 155, 213, 0.15);
    color: var(--lcars-primary-dark);
    font-weight: 600;
}

.notification-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ==================== ASSIGNMENTS & ATTENDANCE ==================== */
.split-layout {
    display: grid;
    grid-template-columns: minmax(240px, 320px) 1fr;
    gap: 20px;
}

.assignment-form {
    display: grid;
    gap: 16px;
}

.inline-form {
    display: grid;
    gap: 12px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(91, 155, 213, 0.15);
    color: var(--lcars-primary-dark);
}

.status-pill.success {
    background: rgba(34, 170, 91, 0.15);
    color: var(--success-dark);
}

.status-pill.warning {
    background: rgba(255, 193, 7, 0.18);
    color: #a16207;
}

.badge-count {
    font-weight: 600;
    color: var(--lcars-header);
}

/* Responsive */
@media (max-width: 768px) {
    .form-container {
        padding: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions .btn {
        width: 100%;
    }

    .split-layout {
        grid-template-columns: 1fr;
    }

    .notification-card {
        flex-direction: column;
    }

    .notification-actions {
        flex-direction: row;
    }
}

/* ==================== CALENDAR STYLES ==================== */
.calendar-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.week-display {
    text-align: center;
    font-family: 'Open Sans Condensed', 'Segoe UI', sans-serif;
    font-size: 22px;
    color: var(--lcars-title);
    font-weight: 500;
    margin-bottom: 25px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.calendar-day {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.calendar-day.today {
    border: 3px solid var(--success-color);
    box-shadow: 0 4px 12px rgba(34, 170, 91, 0.3);
}

.calendar-day.has-events {
    border-top: 4px solid var(--lcars-primary);
}

.day-header {
    background: linear-gradient(135deg, var(--lcars-header), var(--lcars-primary-dark));
    color: white;
    padding: 12px;
    text-align: center;
}

.day-name {
    font-family: 'Open Sans Condensed', 'Segoe UI', sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.day-date {
    font-size: 18px;
    font-weight: bold;
}

.day-events {
    padding: 12px;
    flex: 1;
    overflow-y: auto;
}

.no-events {
    text-align: center;
    color: var(--lcars-secondary-text);
    font-size: 13px;
    padding: 20px 0;
}

.event-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-left: 4px solid var(--lcars-primary);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.event-card:hover {
    background: #f3f4f6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.event-card:last-child {
    margin-bottom: 0;
}

.event-card.lecture {
    border-left-color: var(--class-color);
}

.event-card.test {
    border-left-color: var(--error-color);
}

.event-card.assignment {
    border-left-color: var(--teacher-color);
}

.event-card.event {
    border-left-color: var(--evaluation-color);
}

.event-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--class-color);
    color: white;
    margin-bottom: 6px;
}

.event-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a2744;
    margin-bottom: 6px;
}

.event-time {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.event-teacher,
.event-class,
.event-room {
    font-size: 11px;
    color: #888;
    margin-bottom: 2px;
}

.calendar-legend {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.calendar-legend h3 {
    font-family: 'Open Sans Condensed', 'Segoe UI', sans-serif;
    font-size: 16px;
    color: var(--lcars-header);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legend-items {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
}

.legend-badge {
    font-size: 10px;
    font-weight: bold;
    padding: 6px 12px;
    border-radius: 4px;
    color: white;
}

.legend-badge.lecture {
    background: var(--class-color);
}

.legend-badge.test {
    background: var(--error-color);
}

.legend-badge.assignment {
    background: var(--teacher-color);
}

.legend-badge.event {
    background: var(--evaluation-color);
}

@media (max-width: 1200px) {
    .calendar-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .calendar-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .calendar-nav {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .calendar-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== MESSAGES STYLES ==================== */
.message-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.message-tab {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    position: relative;
}

.message-tab:hover {
    background: #f3f4f6;
}

.message-tab.active {
    background: var(--lcars-primary);
    color: white;
    box-shadow: 0 3px 0 var(--lcars-primary-dark);
}

.tab-badge {
    background: var(--error-color);
    color: white;
    font-size: 12px;
    font-weight: bold;
    min-width: 24px;
    height: 24px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
}

.messages-list {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.message-item {
    padding: 18px;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
}

.message-item:hover {
    background: #f9fafb;
}

.message-item:last-child {
    border-bottom: none;
}

.message-item.unread {
    background: #eff6ff;
    border-left: 4px solid var(--lcars-primary);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.message-from {
    font-size: 14px;
    color: #333;
}

.message-date {
    font-size: 12px;
    color: #888;
}

.message-subject {
    font-size: 16px;
    font-weight: 600;
    color: #1a2744;
    margin-bottom: 6px;
}

.message-preview {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.message-attachment-indicator {
    font-size: 12px;
    color: #1a2744;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.message-replies {
    font-size: 12px;
    color: var(--lcars-primary);
    margin-top: 8px;
}

.message-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1050;
}

.message-modal.is-open {
    display: flex;
}

.message-modal__dialog {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    width: min(600px, 100%);
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.message-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--lcars-header);
    color: white;
}

.message-modal__header h3 {
    margin: 0;
    font-size: 20px;
}

.message-modal__close {
    background: transparent;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
}

.message-modal__body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.message-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.message-detail {
    color: #333;
}

.message-meta {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.message-meta > div {
    margin-bottom: 8px;
}

.message-meta > div:last-child {
    margin-bottom: 0;
}

.message-content {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    white-space: pre-wrap;
    margin-bottom: 20px;
}

.message-attachment {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    margin-bottom: 20px;
}

.message-attachment--compact {
    margin-top: 12px;
    margin-bottom: 0;
    background: #fff;
}

.message-attachment__icon {
    font-size: 20px;
}

.message-attachment__name {
    font-weight: 600;
    color: #1a2744;
}

.message-attachment__size {
    font-size: 12px;
    color: #6b7280;
}

.message-replies-section {
    border-top: 2px solid #e5e7eb;
    padding-top: 20px;
}

.message-replies-section h4 {
    font-size: 16px;
    color: var(--lcars-header);
    margin-bottom: 15px;
}

.reply-item {
    background: #f9fafb;
    border-left: 3px solid var(--lcars-primary);
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 12px;
}

.reply-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.reply-header strong {
    color: var(--lcars-header);
}

.reply-header span {
    color: #888;
}

.reply-content {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    white-space: pre-wrap;
}

.message-attachment-picker {
    display: grid;
    gap: 10px;
}

.message-attachment-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    color: #1a2744;
}

.message-attachment-info.is-hidden {
    display: none;
}

@media (max-width: 768px) {
    .message-tabs {
        flex-direction: column;
    }

    .message-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* ==================== DASHBOARD STATS & GRADES ==================== */

/* Stats Grid for Dashboards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.stat-card {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.stat-card.stat-green {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.stat-card.stat-blue {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.stat-card.stat-purple {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.stat-card.stat-gold {
    background: linear-gradient(135deg, #f39c12 0%, #d68910 100%);
}

.stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    font-weight: bold;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
    color: white;
}

/* Recent Items Container */
.recent-items-container {
    background: rgba(26, 39, 68, 0.4);
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.grade-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border-left: 4px solid #3498db;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.grade-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

.grade-info {
    flex: 1;
}

.grade-lecture {
    font-size: 16px;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
}

.grade-type {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 3px;
}

.grade-date {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

.grade-value {
    font-size: 24px;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 8px;
    min-width: 80px;
    text-align: center;
}

.grade-excellent {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
}

.grade-very-good {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.grade-good {
    background: linear-gradient(135deg, #f39c12 0%, #d68910 100%);
    color: white;
}

.grade-poor {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.loading-text {
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-style: italic;
    padding: 20px;
}

.empty-text {
    text-align: center;
    color: rgba(255,255,255,0.5);
    padding: 30px;
    font-size: 14px;
}

/* Child Info Card */
.child-info-card {
    background: rgba(26, 39, 68, 0.6);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    border: 2px solid rgba(245, 185, 99, 0.3);
}

.child-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
}

.detail-label {
    font-weight: bold;
    color: #F5B963;
    margin-right: 10px;
}

.detail-value {
    color: white;
}

/* ==================== ADDITIONAL LCARS ENHANCEMENTS ==================== */

/* 3D Glossy Button Group */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-success {
    background: var(--success-color);
    color: white;
    box-shadow: 0 3px 0 var(--success-dark);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 var(--success-dark);
}

.btn-info {
    background: #3498db;
    color: white;
    box-shadow: 0 3px 0 #2980b9;
}

.btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 #2980b9;
}

.btn-outline {
    background: transparent;
    color: var(--class-color);
    border: 2px solid var(--class-color);
    box-shadow: none;
}

.btn-outline:hover {
    background: rgba(91, 155, 213, 0.1);
}

/* LCARS-style rounded corners for dashboard */
.dashboard-content {
    border-radius: 30px 0 0 0;
    margin-top: -10px;
    position: relative;
}

/* Enhanced Stat Cards with LCARS styling */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 8px;
    right: 8px;
    height: 45%;
    background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0) 100%);
    border-radius: 15px 15px 10px 10px;
    pointer-events: none;
}

/* Form Styles Enhancement */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1a2744;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--lcars-primary);
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Pulse animation for alerts */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

/* LCARS-style section divider */
.lcars-divider {
    height: 4px;
    background: linear-gradient(90deg, var(--lcars-title) 0%, transparent 100%);
    border-radius: 2px;
    margin: 20px 0;
}

/* Developer dashboard styles */
.version-list {
    display: grid;
    gap: 10px;
}

.version-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--lcars-primary);
}

.version-name {
    font-weight: bold;
    color: #1a2744;
}

.version-date {
    font-size: 12px;
    color: #666;
}

/* Settings page specific */
.setting-row {
    transition: background-color 0.2s ease;
}

.setting-row:hover {
    background: #f0f4f8 !important;
}

/* Report cards enhancement */
.report-card-header {
    background: linear-gradient(135deg, #1a2744 0%, #2a3a54 100%);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
}

/* Alert enhancement */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Page subtitle */
.page-subtitle {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

/* Confirmation dialog */
.confirm-dialog {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.confirm-dialog.show {
    display: flex;
}

.confirm-content {
    background: white;
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.confirm-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.confirm-title {
    font-size: 20px;
    color: #1a2744;
    margin-bottom: 10px;
}

.confirm-message {
    color: #666;
    margin-bottom: 25px;
}

.confirm-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* LCARS corner decoration */
.lcars-corner {
    position: absolute;
    width: 80px;
    height: 80px;
    background: var(--lcars-header);
    clip-path: polygon(0 0, 100% 0, 100% 20%, 20% 20%, 20% 100%, 0 100%);
}

.lcars-corner-top-right {
    top: 0;
    right: 0;
    transform: scaleX(-1);
}

/* Status pills enhancement */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pill.success {
    background: #d4edda;
    color: #155724;
}

.status-pill.warning {
    background: #fff3cd;
    color: #856404;
}

.status-pill.error {
    background: #f8d7da;
    color: #721c24;
}

.status-pill.info {
    background: #cce5ff;
    color: #004085;
}

/* Mobile responsiveness */
@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .btn-group {
        flex-direction: column;
    }

    .form-row {
        flex-direction: column;
    }
}
