/* css/styles.css */
/* College Application Portal - Premium CSS stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Jigawa State College of Nursing Sciences Color System (Academic Blue Theme - Default) */
    --bg-base: #0a0e1a;
    --bg-surface: rgba(15, 23, 42, 0.65);
    --bg-surface-hover: rgba(30, 41, 59, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(59, 130, 246, 0.4);
    
    --primary-color: #3b82f6; /* Academic Blue */
    --primary-gradient: linear-gradient(135deg, #3b82f6, #1d4ed8);
    --secondary-gradient: linear-gradient(135deg, #2b2d42, #1a1b2f); /* Sleek Dark Slate */
    --danger-gradient: linear-gradient(135deg, #ff4d6d, #c9184a);
    --warning-gradient: linear-gradient(135deg, #ff9f1c, #ffbf69);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --glass-blur: blur(14px);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    
    --success: #10b981;
    --error: #ff4d6d;
    --warning: #ff9f1c;
    --info: #0ea5e9;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* Theme Gradient variables */
    --gradient-color-1: rgba(59, 130, 246, 0.12);
    --gradient-color-2: rgba(37, 99, 235, 0.08);
    --gradient-color-3: rgba(96, 165, 250, 0.04);
}

/* Theme Override classes on HTML element */
html.theme-health {
    --bg-base: #0f090a;
    --bg-surface: rgba(26, 14, 16, 0.65);
    --bg-surface-hover: rgba(38, 20, 23, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(239, 35, 60, 0.4);
    --primary-color: #ef233c;
    --primary-gradient: linear-gradient(135deg, #ef233c, #d90429);
    --gradient-color-1: rgba(239, 35, 60, 0.12);
    --gradient-color-2: rgba(217, 4, 41, 0.08);
    --gradient-color-3: rgba(255, 75, 92, 0.04);
}

html.theme-academic {
    --bg-base: #0a0e1a;
    --bg-surface: rgba(15, 23, 42, 0.65);
    --bg-surface-hover: rgba(30, 41, 59, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(59, 130, 246, 0.4);
    --primary-color: #3b82f6;
    --primary-gradient: linear-gradient(135deg, #3b82f6, #1d4ed8);
    --gradient-color-1: rgba(59, 130, 246, 0.12);
    --gradient-color-2: rgba(37, 99, 235, 0.08);
    --gradient-color-3: rgba(96, 165, 250, 0.04);
}

html.theme-elite {
    --bg-base: #0d0918;
    --bg-surface: rgba(22, 15, 38, 0.65);
    --bg-surface-hover: rgba(35, 24, 60, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(139, 92, 246, 0.4);
    --primary-color: #8b5cf6;
    --primary-gradient: linear-gradient(135deg, #8b5cf6, #6d28d9);
    --gradient-color-1: rgba(139, 92, 246, 0.12);
    --gradient-color-2: rgba(109, 40, 217, 0.08);
    --gradient-color-3: rgba(167, 139, 250, 0.04);
}

html.theme-lightblue {
    --bg-base: #ffffff;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f1f5f9;
    --border-color: #cbd5e1;
    --border-hover: #0066cc;
    --primary-color: #0066cc;
    --primary-gradient: linear-gradient(135deg, #3b82f6, #1d4ed8);
    --text-primary: #0044cc; /* Blue */
    --text-secondary: #000000; /* Black */
    --text-muted: #475569; /* Slate */
    --gradient-color-1: rgba(0, 102, 204, 0.05);
    --gradient-color-2: rgba(0, 0, 0, 0.02);
    --gradient-color-3: rgba(0, 102, 204, 0.015);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    line-height: 1.5;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 10% 20%, var(--gradient-color-1) 0px, transparent 40%),
        radial-gradient(circle at 90% 80%, var(--gradient-color-2) 0px, transparent 45%),
        radial-gradient(circle at 50% 50%, var(--gradient-color-3) 0px, transparent 50%);
    background-attachment: fixed;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}
a:hover {
    color: #ff4d6d;
}

/* Layout Elements */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Headers / Navigation */
header.app-header {
    background: rgba(8, 12, 20, 0.7);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-icon {
    font-size: 1.8rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
}
.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-btn {
    padding: 8px 16px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}
.nav-btn.login {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}
.nav-btn.login:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-secondary);
}
.nav-btn.register {
    background: var(--primary-gradient);
    color: white;
}
.nav-btn.register:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Glass Cards & Elements */
.glass-card {
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-normal);
}

.glass-card.interactive:hover {
    border-color: var(--border-hover);
    box-shadow: 0 15px 35px var(--gradient-color-1);
    transform: translateY(-2px);
}

/* Form Styles */
.form-group {
    margin-bottom: 22px;
    position: relative;
}

label.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    outline: none;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px var(--gradient-color-1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

select option {
    background-color: var(--bg-base);
    color: var(--text-primary);
}

.input-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 768px) {
    .input-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .input-row-3 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-normal);
    font-family: inherit;
    text-align: center;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 35, 60, 0.25);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 35, 60, 0.35);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--text-secondary);
}

.btn-success {
    background: var(--secondary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}
.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.btn-danger {
    background: var(--danger-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}
.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-full {
    width: 100%;
}

/* Typography & Titles */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 15px;
    color: var(--text-primary);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--error) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }

/* Alerts / Notifications */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 25px;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
    color: #34d399;
}
.alert-error, .alert-danger {
    background-color: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
    color: #f87171;
}
.alert-warning {
    background-color: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

/* Tabs UI (for Profile & Dashboards) */
.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
    gap: 10px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 12px 20px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    border-bottom: 3px solid transparent;
    transition: var(--transition-fast);
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}

.status-draft {
    background-color: rgba(107, 114, 128, 0.15);
    color: #9ca3af;
    border-color: rgba(107, 114, 128, 0.3);
}
.status-submitted {
    background-color: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.3);
}
.status-under_review {
    background-color: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.3);
}
.status-accepted {
    background-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
}
.status-rejected {
    background-color: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    text-align: left;
}

table.data-table th, table.data-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

table.data-table th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 255, 255, 0.02);
}

table.data-table tbody tr {
    transition: var(--transition-fast);
}
table.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* Landing Page Grid */
.hero-section {
    text-align: center;
    padding: 80px 0;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 60px;
}
@media (min-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
}
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
}

/* Dashboard layouts (split columns) */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
@media (min-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
@media (min-width: 768px) {
    .admin-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .admin-grid-4 {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

.stat-card {
    text-align: left;
    padding: 25px;
}
.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin: 10px 0;
}
.stat-title {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Sidebar navigation for management interfaces */
.sidebar-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
@media (min-width: 768px) {
    .sidebar-layout {
        grid-template-columns: 250px 1fr;
    }
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}
.sidebar-link:hover, .sidebar-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}
.sidebar-link.active {
    border-left: 4px solid var(--primary-color);
}

/* Custom list layout */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.info-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}
.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.info-label {
    color: var(--text-secondary);
    font-weight: 500;
}
.info-val {
    font-weight: 600;
    color: var(--text-primary);
}

.review-item {
    padding: 15px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
}
.review-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* Utilities */
.mb-4 { margin-bottom: 20px; }
.mb-8 { margin-bottom: 40px; }
.mt-4 { margin-top: 20px; }
.py-8 { padding-top: 40px; padding-bottom: 40px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-gap-2 { display: flex; gap: 10px; align-items: center; }

/* File upload container style */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 25px;
    text-align: center;
    background: rgba(255, 255, 255, 0.01);
    transition: var(--transition-fast);
    cursor: pointer;
}
.file-upload-wrapper:hover {
    border-color: var(--primary-color);
    background: var(--gradient-color-3);
}
.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.file-upload-icon {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.file-upload-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.file-upload-text span {
    color: var(--primary-color);
    font-weight: 600;
}

/* Print-friendly Stylesheet Rules */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-family: 'Segoe UI', Arial, sans-serif;
    }
    header.app-header, 
    footer, 
    nav, 
    .btn, 
    form, 
    .tabs-header, 
    .no-print,
    #noti-btn,
    .file-upload-wrapper {
        display: none !important;
    }
    .glass-card {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin-bottom: 30px !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .dashboard-grid, .sidebar-layout {
        display: block !important;
    }
    .tab-content {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    h1, h2, h3, h4 {
        color: #000000 !important;
        border-bottom: 1px solid #ccc !important;
        padding-bottom: 8px !important;
        margin-top: 20px !important;
        margin-bottom: 15px !important;
    }
    .info-item {
        border-bottom: 1px dashed #ddd !important;
        padding-bottom: 8px !important;
        margin-bottom: 8px !important;
    }
    .info-label {
        color: #444444 !important;
    }
    .info-val {
        color: #000000 !important;
        font-weight: bold !important;
    }
    .status-badge {
        border: 1px solid #333333 !important;
        background: transparent !important;
        color: #000000 !important;
        padding: 3px 8px !important;
        border-radius: 4px !important;
    }
}

