/* Color Theme Variables */
:root {
    /* CSS HEX */
    --persian-red: #C44434;
    --white: #FFFFFF;
    --white-2: #FEFEFE;
    --delft-blue: #293378;
    --lion: #B68749;

    /* Additional theme colors */
    --primary: var(--delft-blue);
    --secondary: var(--lion);
    --accent: var(--persian-red);
    --background: var(--white-2);
    --surface: var(--white);
    --text-primary: var(--delft-blue);
    --text-secondary: #4a5568;
    --text-light: #718096;

    /* Status colors using theme palette */
    --success: #48bb78;
    --warning: var(--lion);
    --error: var(--persian-red);
    --info: var(--delft-blue);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--delft-blue) 0%, var(--lion) 100%);
    --gradient-accent: linear-gradient(135deg, var(--persian-red) 0%, var(--lion) 100%);
    --gradient-surface: linear-gradient(135deg, var(--white) 0%, var(--white-2) 100%);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--gradient-primary);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Login page specific body styling */
body:not(.dashboard) {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Login Page Styles */
.login-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.login-card {
    background: var(--surface);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(41, 51, 120, 0.15);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(182, 135, 73, 0.1);
}

.login-card:hover {
    transform: translateY(-5px);
}

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

.logo {
    max-width: 200px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Login Page Specific Logo Styles */
.login-logo-section {
    display: flex !important;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0 0 40px 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.login-logo {
    max-width: 250px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block !important;
    margin: 0 auto !important;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.login-logo:hover {
    transform: scale(1.02);
}

/* Force logo centering - override any conflicting styles */
.login-card .login-logo-section {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.login-card .login-logo {
    margin-left: auto !important;
    margin-right: auto !important;
}

.logo-section h1 {
    color: #333;
    font-size: 24px;
    margin-bottom: 5px;
    font-weight: 600;
}

.logo-section p {
    color: #666;
    font-size: 14px;
}

/* Form Styles */
.login-form {
    text-align: left;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(41, 51, 120, 0.1);
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.toggle-password {
    cursor: pointer;
    pointer-events: all;
    color: var(--primary);
}

.toggle-password:hover {
    color: #1e2a5e;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(41, 51, 120, 0.3);
    background: linear-gradient(135deg, #1e2a5e 0%, #9d7340 100%);
}

.forgot-password {
    text-align: center;
    margin-top: 20px;
}

.forgot-password a {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

.error-message {
    background: #ff6b6b;
    color: white;
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #333;
}

/* Dashboard Styles */
.dashboard {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    display: block;
    position: relative;
}

/* Override body flex for dashboard */
body.dashboard {
    display: block;
    align-items: unset;
    justify-content: unset;
}

.navbar {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(41, 51, 120, 0.15);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    margin: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-height: 75px;
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    min-height: 70px;
    gap: 15px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 1;
    min-width: 0;
    max-width: 400px;
    position: relative;
    z-index: 5;
}

.nav-brand img {
    max-width: 120px;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
    /* Strong visibility for transparent logos */
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 6px 12px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-brand img:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Alternative high-contrast logo styling for very transparent logos */
.nav-brand img.high-contrast {
    background: #ffffff;
    border: 3px solid rgba(41, 51, 120, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 8px 16px;
}

.nav-brand img.high-contrast:hover {
    background: #ffffff;
    border-color: rgba(41, 51, 120, 0.4);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transform: scale(1.05);
}

/* Maximum visibility option for extremely transparent logos */
.nav-brand img.max-visibility {
    background: #ffffff !important;
    border: 3px solid #e0e0e0 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2) !important;
    padding: 10px 16px !important;
    border-radius: 10px !important;
}

.nav-brand img.max-visibility:hover {
    background: #ffffff !important;
    border-color: #cccccc !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3) !important;
    transform: scale(1.05) !important;
}

/* Force visibility for all logos - temporary override */
.nav-brand img {
    /* Override with stronger background if needed */
    background: rgba(255, 255, 255, 0.98) !important;
    border: 2px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15) !important;
}

.nav-brand h2 {
    font-size: 18px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 350px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
    overflow: visible;
    flex-wrap: nowrap;
}

.nav-item {
    color: var(--white);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 18px;
    transition: all 0.3s ease;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    white-space: nowrap;
    font-size: 13px;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.nav-item:hover {
    background: rgba(182, 135, 73, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(41, 51, 120, 0.2);
}

.nav-item.active {
    background: rgba(182, 135, 73, 0.4);
    box-shadow: 0 3px 10px rgba(41, 51, 120, 0.15);
}

.logout-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.3);
}

.logout-btn:hover {
    background: linear-gradient(135deg, #ff5252 0%, #d32f2f 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
    color: white;
}

.main-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 125px 20px 40px 20px; /* Top padding to account for fixed navbar */
}

.dashboard-header {
    margin-bottom: 40px;
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.dashboard-header h1 {
    color: #333;
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-header p {
    color: #666;
    font-size: 18px;
    margin: 0;
}

/* Card Styles */
.card {
    background: var(--surface);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(41, 51, 120, 0.1);
    margin-bottom: 35px;
    transition: all 0.3s ease;
    border: 1px solid rgba(182, 135, 73, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: visible;
    min-height: auto;
    width: 100%;
    box-sizing: border-box;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(41, 51, 120, 0.15);
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f8f9fa;
    flex-wrap: wrap;
    gap: 15px;
    min-height: auto;
}

.card-title {
    color: #333;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-icon {
    color: #667eea;
    font-size: 26px;
    padding: 8px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 25px 20px;
    box-shadow: 0 10px 30px rgba(41, 51, 120, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(182, 135, 73, 0.1);
    position: relative;
    overflow: hidden;
    min-height: 100px;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(41, 51, 120, 0.15);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 28px;
    box-shadow: 0 8px 20px rgba(41, 51, 120, 0.3);
    flex-shrink: 0;
}

.stat-content {
    flex: 1;
    min-width: 0; /* Allows text to wrap */
}

.stat-content h3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    word-break: break-word;
}

.stat-content p {
    color: #666;
    font-size: 14px;
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    word-break: break-word;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.action-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 20px;
    border-radius: 18px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.action-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
    color: white;
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4c93 100%);
}

.action-btn i {
    font-size: 28px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    table-layout: auto;
    min-width: 800px;
}

.data-table th,
.data-table td {
    padding: 16px 12px;
    text-align: left;
    border-bottom: 1px solid #f0f2f5;
    vertical-align: top;
    word-wrap: break-word;
}

.data-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 700;
    color: #333;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table td {
    color: #555;
    font-size: 15px;
    font-weight: 500;
}

.data-table tr:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: scale(1.01);
    transition: all 0.2s ease;
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* Admin dashboard table - no horizontal scroll */
.admin-table-container {
    overflow: visible;
    width: 100%;
}

.admin-table-container .data-table {
    table-layout: fixed;
    width: 100%;
    min-width: 0;
}

/* Column width distribution for admin table */
.admin-table-container .data-table th:nth-child(1),
.admin-table-container .data-table td:nth-child(1) {
    width: 18%;
}

.admin-table-container .data-table th:nth-child(2),
.admin-table-container .data-table td:nth-child(2) {
    width: 22%;
}

.admin-table-container .data-table th:nth-child(3),
.admin-table-container .data-table td:nth-child(3) {
    width: 12%;
}

.admin-table-container .data-table th:nth-child(4),
.admin-table-container .data-table td:nth-child(4) {
    width: 15%;
}

.admin-table-container .data-table th:nth-child(5),
.admin-table-container .data-table td:nth-child(5) {
    width: 10%;
}

.admin-table-container .data-table th:nth-child(6),
.admin-table-container .data-table td:nth-child(6) {
    width: 10%;
}

.admin-table-container .data-table th:nth-child(7),
.admin-table-container .data-table td:nth-child(7) {
    width: 8%;
}

.admin-table-container .data-table th:nth-child(8),
.admin-table-container .data-table td:nth-child(8) {
    width: 8%;
}

.admin-table-container .data-table th:nth-child(9),
.admin-table-container .data-table td:nth-child(9) {
    width: 7%;
}

.admin-table-container .data-table th,
.admin-table-container .data-table td {
    white-space: normal;
    word-wrap: break-word;
    overflow: hidden;
    padding: 12px 8px;
}

/* Admin cards - wider for tables */
.admin-table-container .card,
.admin-table-container {
    width: 100%;
    max-width: 100%;
}

/* Student dashboard table - flexible layout */
.data-table th,
.data-table td {
    white-space: nowrap;
}

/* Allow specific columns to wrap if needed */
.data-table th:nth-child(1),
.data-table td:nth-child(1),
.data-table th:nth-child(2),
.data-table td:nth-child(2) {
    white-space: normal;
    min-width: 150px;
}

/* Status Badges */
.status-badge {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.status-active {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: var(--success);
    border: 1px solid var(--success);
}

.status-inactive {
    background: linear-gradient(135deg, rgba(196, 68, 52, 0.1) 0%, rgba(196, 68, 52, 0.2) 100%);
    color: var(--error);
    border: 1px solid var(--error);
}

.status-pending {
    background: linear-gradient(135deg, rgba(182, 135, 73, 0.1) 0%, rgba(182, 135, 73, 0.2) 100%);
    color: var(--warning);
    border: 1px solid var(--warning);
}

.status-verified {
    background: linear-gradient(135deg, rgba(41, 51, 120, 0.1) 0%, rgba(41, 51, 120, 0.2) 100%);
    color: var(--info);
    border: 1px solid var(--info);
}

/* Button Styles */
.btn-sm {
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 13px;
    margin-right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.btn-primary:hover {
    background: linear-gradient(135deg, #1e2a5e 0%, #9d7340 100%);
    color: var(--white);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
    border: 1px solid var(--lion);
}

.btn-secondary:hover {
    background: #9d7340;
    color: var(--white);
}

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

.btn-success:hover {
    background: #38a169;
    color: var(--white);
}

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

.btn-danger:hover {
    background: #a53a2a;
    color: var(--white);
}

.view-all-btn {
    color: #667eea;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.view-all-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
    text-decoration: none;
}

.view-all-btn::after {
    content: '→';
    transition: transform 0.3s ease;
}

.view-all-btn:hover::after {
    transform: translateX(3px);
}

/* Activity List */
.activity-list {
    max-height: 450px;
    overflow-y: auto;
    padding-right: 10px;
}

.activity-list::-webkit-scrollbar {
    width: 6px;
}

.activity-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.activity-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #f0f2f5;
    border-radius: 12px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: rgba(102, 126, 234, 0.05);
    transform: translateX(5px);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    font-size: 18px;
}

.activity-content p {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 15px;
    font-weight: 500;
}

.activity-content small {
    color: #999;
    font-size: 13px;
    font-weight: 500;
}

/* Form Styles for Dashboard */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.file-upload-area {
    border: 2px dashed #e1e5e9;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: #667eea;
    background: #f8f9fa;
}

.file-upload-area.dragover {
    border-color: #667eea;
    background: #f0f4ff;
}

/* Responsive Design */

/* Tablet/Medium Screen Styles */
@media (max-width: 1200px) and (min-width: 769px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .stat-card {
        padding: 22px 18px;
        gap: 12px;
    }
}

/* Large screens - desktop with many nav items */
@media (max-width: 1200px) and (min-width: 1025px) {
    .nav-container {
        padding: 0 25px;
        gap: 18px;
    }

    .nav-brand h2 {
        font-size: 19px;
        max-width: 280px;
    }

    .nav-item {
        padding: 9px 15px;
        font-size: 13px;
        gap: 5px;
    }

    .nav-menu {
        gap: 6px;
    }

    .user-menu {
        gap: 10px;
        margin-left: 12px;
        padding-left: 12px;
    }

    .user-menu span {
        max-width: 130px;
        font-size: 13px;
    }
}

/* Medium screens - tablet landscape */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-container {
        padding: 0 15px;
        gap: 12px;
    }

    .nav-brand h2 {
        font-size: 16px;
        max-width: 200px;
    }

    .nav-item {
        padding: 7px 12px;
        font-size: 12px;
        gap: 4px;
    }

    .nav-menu {
        gap: 4px;
        overflow: visible;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .user-menu {
        gap: 8px;
        margin-left: 8px;
        padding-left: 8px;
    }

    .user-menu span {
        max-width: 100px;
        font-size: 12px;
    }

    .logout-btn {
        padding: 7px 12px;
        font-size: 12px;
    }
}

/* Small screens - tablet portrait and mobile */
@media (max-width: 768px) {
    .login-card {
        padding: 30px 20px;
        margin: 10px;
        width: calc(100% - 20px);
        max-width: none;
        min-height: auto;
    }

    .login-container {
        padding: 20px 10px;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-container {
        flex-direction: column;
        gap: 12px;
        padding: 0 15px;
        align-items: stretch;
    }

    .navbar {
        padding: 12px 0;
    }

    .nav-brand {
        justify-content: center;
        text-align: center;
        gap: 10px;
    }

    .nav-brand h2 {
        font-size: 18px;
        max-width: none;
    }

    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
        overflow: visible;
        width: 100%;
    }

    .nav-item {
        padding: 6px 10px;
        font-size: 11px;
        gap: 3px;
        flex: 0 0 auto;
        min-width: fit-content;
    }

    .nav-item i {
        font-size: 10px;
    }

    .user-menu {
        justify-content: center;
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 8px;
        gap: 8px;
        width: 100%;
        flex-wrap: wrap;
    }

    .user-menu span {
        font-size: 11px;
        max-width: 120px;
    }

    .logout-btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    .main-content {
        padding: 160px 15px 20px 15px; /* Increased top padding for mobile */
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Student Dashboard Specific Styles */
.welcome-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 35px;
    position: relative;
    transition: all 0.3s ease;
}

/* Removed top accent bar for cleaner design */

.welcome-section:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(102, 126, 234, 0.1);
}

.student-info {
    display: flex;
    align-items: center;
    gap: 25px;
    flex: 1;
    min-width: 0;
}

.student-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #667eea;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
    position: relative;
}

.student-avatar:hover {
    transform: scale(1.05);
}

.student-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
    font-weight: bold;
    position: relative;
}

.upload-prompt {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.avatar-placeholder:hover .upload-prompt {
    opacity: 1;
    bottom: -2px;
}

.upload-link {
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    padding: 3px 6px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 9px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.upload-link:hover {
    background: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.photo-verification-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.photo-verification-badge.verified {
    background: #28a745;
    color: white;
}

.photo-verification-badge.pending {
    background: #ffc107;
    color: white;
}

.update-photo-link,
.upload-photo-link {
    margin-left: 10px;
    color: #667eea;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.update-photo-link:hover,
.upload-photo-link:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

.status-missing {
    background: #dc3545;
    color: white;
}

/* Bulk Actions Styles */
.bulk-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

.bulk-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.bulk-select-header,
.bulk-select-cell {
    width: 40px;
    text-align: center;
}

.bulk-select-header input[type="checkbox"],
.bulk-select-cell input[type="checkbox"] {
    transform: scale(1.2);
    cursor: pointer;
}

.action-buttons form {
    display: inline-block;
    margin: 0 2px;
}

.action-buttons {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-wrap: wrap;
}

/* Quick action buttons */
.btn-sm {
    padding: 6px 8px;
    font-size: 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-width: 32px;
    height: 32px;
}

.btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-sm.btn-success {
    background: #28a745;
    color: white;
}

.btn-sm.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-sm.btn-warning {
    background: #ffc107;
    color: #333;
}

.btn-sm.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-sm.btn-secondary {
    background: #6c757d;
    color: white;
}

/* Quick Actions Grid */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.quick-action-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    cursor: pointer;
}

.quick-action-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    text-decoration: none;
    color: #333;
}

.quick-action-card.active {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.quick-action-card i {
    font-size: 32px;
    margin-bottom: 10px;
    color: #667eea;
}

.quick-action-card.active i {
    color: white;
}

.quick-action-card h3 {
    margin: 10px 0 5px 0;
    font-size: 18px;
    font-weight: 600;
}

.quick-action-card p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

/* Filter Form */
.filter-form {
    padding: 20px;
}

.filter-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-form .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.filter-form .form-group input,
.filter-form .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.filter-form .form-group button {
    width: 100%;
    padding: 10px 20px;
}

/* Photo Grid Styles */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.photo-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.photo-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.bulk-select-checkbox {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 5px;
}

.bulk-select-checkbox input[type="checkbox"] {
    transform: scale(1.2);
    cursor: pointer;
}

.photo-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.passport-photo-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-photo-placeholder {
    text-align: center;
    color: #6c757d;
}

.no-photo-placeholder i {
    font-size: 48px;
    margin-bottom: 10px;
}

.photo-status {
    position: absolute;
    top: 10px;
    right: 10px;
}

.student-info {
    padding: 15px;
}

.student-info h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.student-info p {
    margin: 3px 0;
    font-size: 13px;
    color: #666;
}

.student-info .student-id {
    font-weight: 600;
    color: #667eea;
}

.student-info .program {
    font-style: italic;
}

.student-info .upload-date,
.student-info .verified-by {
    font-size: 12px;
    color: #999;
}

.photo-actions {
    padding: 15px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.photo-actions form {
    display: inline-block;
}

.photo-actions .btn-sm {
    font-size: 11px;
    padding: 5px 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
        padding: 15px;
    }

    .photo-container {
        height: 150px;
    }

    .photo-actions {
        padding: 10px;
    }

    .photo-actions .btn-sm {
        font-size: 10px;
        padding: 4px 6px;
    }
}

/* Header Actions Styles */
.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.card-header .header-actions {
    margin-left: auto;
}

.dashboard-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.dashboard-header .header-text {
    flex: 1;
}

.dashboard-header .header-actions {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .dashboard-header .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .card-header .header-actions {
        margin-left: 0;
        width: 100%;
    }
}

/* Filter Indicator Styles */
.filter-indicator {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9em;
    background: rgba(102, 126, 234, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-left: 8px;
}

.dashboard-header .filter-indicator {
    font-size: 0.85em;
}

/* Student Profile Photo Styles */
.student-profile {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: start;
}

.photo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.passport-photo-container {
    position: relative;
    text-align: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e9ecef;
    width: 100%;
    max-width: 280px;
}

.passport-photo-display {
    width: 200px;
    height: 240px;
    object-fit: cover;
    border-radius: 8px;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.passport-photo-display:hover {
    transform: scale(1.02);
}

.passport-photo-display.pending {
    border-color: #ffc107;
    opacity: 0.9;
}

.photo-status {
    margin-top: 15px;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.photo-status.verified {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.photo-status.pending {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.photo-info {
    margin-top: 10px;
    color: #6c757d;
}

.photo-actions {
    margin-top: 15px;
}

.passport-photo-placeholder {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    color: #6c757d;
    width: 100%;
    max-width: 280px;
}

.placeholder-icon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #adb5bd;
}

.passport-photo-placeholder p {
    margin: 0 0 15px 0;
    font-size: 16px;
}

@media (max-width: 768px) {
    .student-profile {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .photo-section {
        order: -1;
    }

    .passport-photo-container,
    .passport-photo-placeholder {
        max-width: 240px;
        margin: 0 auto;
    }

    .passport-photo-display {
        width: 160px;
        height: 200px;
    }
}

.student-details {
    flex: 1;
    min-width: 0;
}

.student-details h1 {
    color: #2d3748;
    font-size: 26px;
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.student-id {
    color: #667eea;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 15px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.student-id:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    transform: translateY(-1px);
}

.program, .level {
    color: #4a5568;
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 500;
    line-height: 1.4;
}

.degree-awarded {
    color: #667eea;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    padding: 8px 15px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.degree-awarded i {
    color: #667eea;
}

.quick-stats {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
}

.stat-item {
    text-align: center;
    padding: 18px 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    border-radius: 16px;
    min-width: 90px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(118, 75, 162, 0.12) 100%);
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
    line-height: 1.2;
}

.stat-label {
    font-size: 11px;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
    line-height: 1.2;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 15px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.info-item label {
    font-weight: 700;
    color: #333;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-item span {
    color: #555;
    font-size: 16px;
    font-weight: 500;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #999;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 20px;
    border: 2px dashed rgba(102, 126, 234, 0.2);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 25px;
    color: rgba(102, 126, 234, 0.3);
    background: rgba(102, 126, 234, 0.1);
    padding: 30px;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.empty-state h3 {
    color: #666;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

.empty-state p {
    color: #999;
    font-size: 16px;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Certifications Styles */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.certification-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 25px;
    border-left: 5px solid #667eea;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.certification-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-left-color: #5a6fd8;
}

.cert-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
}

.cert-header h4 {
    color: #333;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.cert-details p {
    margin-bottom: 12px;
    color: #555;
    font-size: 14px;
    line-height: 1.4;
}

.cert-details strong {
    color: #333;
    font-weight: 600;
}

.verify-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    padding: 4px 12px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.verify-link:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
    text-decoration: none;
}

.verify-link::after {
    content: '↗';
    font-size: 12px;
}

/* Degrees Styles */
.degrees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.degree-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 30px;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.degree-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
}

.degree-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.degree-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
}

.degree-type-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.degree-content h4 {
    color: #333;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.field-of-study {
    color: #667eea;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.institution {
    color: #666;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 20px;
    font-style: italic;
}

.degree-details {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    font-size: 14px;
}

.detail-item i {
    color: #667eea;
    width: 16px;
    text-align: center;
}

.primary-degree-badge,
.primary-qualification-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.3);
}

.primary-degree-badge i,
.primary-qualification-badge i {
    color: #ff6b35;
}

/* Academic Qualification Category Badges */
.badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 15px;
    text-transform: none;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.badge-certificate {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.badge-undergraduate {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.badge-postgraduate {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.badge-doctoral {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: white;
}

.badge-professional {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
}

.badge-other {
    background: linear-gradient(135deg, #d299c2 0%, #fef9d7 100%);
    color: #333;
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    padding: 15px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    background: rgba(102, 126, 234, 0.1);
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #667eea;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkmark {
    font-size: 16px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-content h3 {
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 25px;
}

.warning-text {
    color: #e74c3c;
    font-size: 14px;
    margin: 10px 0;
}

/* File Upload Styles */
.file-upload-area {
    border: 2px dashed #667eea;
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(102, 126, 234, 0.05);
    position: relative;
}

.file-upload-area:hover {
    border-color: #5a6fd8;
    background: rgba(102, 126, 234, 0.1);
}

.file-upload-area.dragover {
    border-color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.file-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-content {
    pointer-events: none;
}

.file-upload-content i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 15px;
}

.file-upload-content p {
    color: #333;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
}

.file-upload-content small {
    color: #666;
    font-size: 14px;
}

.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    border: 1px solid #e1e5e9;
}

.file-details {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-details i {
    color: #667eea;
    font-size: 18px;
}

/* Search Form Styles */
.search-form {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.search-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    min-width: 36px;
    height: 36px;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.btn-success {
    background: #4CAF50;
    color: white;
}

.btn-success:hover {
    background: #45a049;
    transform: translateY(-2px);
}

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

.btn-warning:hover {
    background: #9d7340;
    transform: translateY(-2px);
}

.btn-danger {
    background: #F44336;
    color: white;
}

.btn-danger:hover {
    background: #d32f2f;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Record Stats */
.record-stats {
    display: flex;
    gap: 15px;
    font-size: 14px;
}

.record-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
}

.record-stats i {
    color: #667eea;
}

/* Student Info */
.student-info strong {
    color: #333;
    font-weight: 600;
}

.student-info small {
    color: #666;
    font-size: 12px;
}

.document-info strong {
    color: #333;
    font-weight: 600;
}

.document-info small {
    color: #666;
    font-size: 12px;
}

/* Text Utilities */
.text-muted {
    color: #6c757d !important;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state i {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #333;
    margin-bottom: 10px;
}

.empty-state p {
    margin-bottom: 25px;
    font-size: 16px;
}

/* Guidelines */
.guidelines {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.guideline-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.guideline-item i {
    color: #667eea;
    font-size: 24px;
    margin-top: 5px;
}

.guideline-item h4 {
    color: #333;
    margin-bottom: 5px;
    font-size: 16px;
}

.guideline-item p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Info Box */
.info-box {
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.info-box i {
    color: #667eea;
    margin-right: 10px;
}

.info-box h4 {
    color: #333;
    margin-bottom: 10px;
}

.info-box ul {
    margin: 10px 0 0 20px;
}

.info-box li {
    margin-bottom: 5px;
    color: #555;
}

/* Charts and Reports Styles */
.charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.chart-card {
    min-height: 400px;
}

.chart-container {
    position: relative;
    height: 300px;
    margin-top: 20px;
}

.tables-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

/* Activities List */
.activities-list {
    max-height: 400px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s ease;
}

.activity-item:hover {
    background: #f8f9fa;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 16px;
    flex-shrink: 0;
}

.activity-content p {
    margin: 0 0 5px 0;
    color: #333;
    font-weight: 500;
}

.activity-content small {
    color: #666;
    font-size: 12px;
}

/* Stats Table */
.stats-table {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
}

.stats-section {
    margin-bottom: 30px;
}

.stats-section:last-child {
    margin-bottom: 0;
}

.stats-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
}

.stats-grid-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.stat-item label {
    color: #666;
    font-weight: 500;
    margin: 0;
}

.stat-item span {
    color: #333;
    font-weight: 700;
    font-size: 16px;
}

/* Form Sections */
.form-section {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.form-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #667eea;
    border-radius: 2px;
}

/* Profile Form Styles */
.profile-form .form-group input[readonly] {
    background: #f8f9fa;
    border-color: #e1e5e9;
    color: #6c757d;
}

.password-form {
    border-top: 1px solid #f0f0f0;
    padding-top: 25px;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item label {
    color: #666;
    font-weight: 500;
    font-size: 14px;
    margin: 0;
}

.info-item span {
    color: #333;
    font-weight: 600;
    font-size: 16px;
}

/* Upload Form Styles */
.upload-form .form-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    border: none;
    margin-bottom: 25px;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .charts-row,
    .tables-row {
        grid-template-columns: 1fr;
    }

    .chart-container {
        height: 250px;
    }

    .stats-grid-detailed {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-wrap: wrap;
    }

    .modal-content {
        margin: 20px;
        width: calc(100% - 40px);
    }

    .file-upload-area {
        padding: 30px 15px;
    }

    .guidelines {
        grid-template-columns: 1fr;
    }

    .search-form .form-row {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles for Reports */
@media print {
    .navbar,
    .form-actions,
    .action-buttons,
    .login-btn,
    .btn-secondary {
        display: none !important;
    }

    .main-content {
        padding: 0;
        margin: 0;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }

    .chart-container {
        height: 200px;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success States */
.success-highlight {
    background: rgba(76, 175, 80, 0.1);
    border-left: 4px solid #4CAF50;
    padding: 15px;
    border-radius: 5px;
    margin: 10px 0;
}

/* Error States */
.error-highlight {
    background: rgba(244, 67, 54, 0.1);
    border-left: 4px solid #F44336;
    padding: 15px;
    border-radius: 5px;
    margin: 10px 0;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 80px;
}

.timeline-marker {
    position: absolute;
    left: 15px;
    top: 0;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.timeline-content {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 15px;
}

.timeline-header h4 {
    color: #333;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.timeline-date {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.timeline-subtitle {
    color: #667eea;
    font-weight: 600;
    font-size: 16px;
    margin: 0 0 8px 0;
}

.timeline-details {
    color: #666;
    font-size: 14px;
    margin: 0 0 15px 0;
}

.timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.gpa-badge,
.classification-badge,
.expiry-badge {
    background: #f8f9fa;
    color: #333;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.gpa-badge i {
    color: #4CAF50;
}

.classification-badge i {
    color: #FF9800;
}

.expiry-badge i {
    color: #2196F3;
}

/* GPA Analysis Styles */
.gpa-analysis {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-top: 20px;
}

.gpa-stats {
    display: grid;
    gap: 15px;
}

.gpa-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.gpa-stat label {
    color: #666;
    font-weight: 500;
    margin: 0;
}

/* GPA-related styles removed - not applicable for Kenyan University system */

/* Achievements Grid */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    transition: all 0.3s ease;
}

.achievement-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    padding: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
}

.achievement-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.achievement-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.achievement-content h4 {
    color: #333;
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 700;
}

.achievement-content p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

/* Text Danger */
.text-danger {
    color: #F44336 !important;
}

/* Enhanced Mobile Responsiveness for New Components */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline-marker {
        left: 5px;
        width: 25px;
        height: 25px;
        font-size: 12px;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .timeline-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .gpa-analysis {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .achievement-item {
        flex-direction: column;
        text-align: center;
    }
}

/* Institution Settings Styles */
.logo-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
    margin-top: 20px;
}

.current-logo {
    text-align: center;
}

.current-logo h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

.logo-preview {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 15px;
}

.logo-preview img {
    max-width: 200px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.logo-upload h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

.logo-guidelines {
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.logo-guidelines h5 {
    color: #333;
    margin-bottom: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-guidelines ul {
    margin: 0;
    padding-left: 20px;
}

.logo-guidelines li {
    color: #666;
    font-size: 13px;
    margin-bottom: 5px;
}

/* Institution Contact Info */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.contact-item i {
    color: #667eea;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.contact-item div {
    flex: 1;
}

.contact-item strong {
    color: #333;
    font-size: 14px;
    display: block;
    margin-bottom: 2px;
}

.contact-item span {
    color: #666;
    font-size: 13px;
}

/* Settings Preview */
.settings-preview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
    text-align: center;
}

.settings-preview h3 {
    margin-bottom: 15px;
    font-size: 24px;
}

.settings-preview p {
    opacity: 0.9;
    font-size: 16px;
    margin-bottom: 20px;
}

.preview-logo {
    max-width: 150px;
    max-height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
}

/* Mobile Responsiveness for Settings */
@media (max-width: 768px) {
    .logo-section {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .logo-preview {
        padding: 20px;
    }

    .settings-preview {
        padding: 20px;
    }

    .settings-preview h3 {
        font-size: 20px;
    }
}

/* Dashboard Specific Styles */
.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    animation: tooltipFadeIn 0.3s ease forwards;
}

@keyframes tooltipFadeIn {
    to {
        opacity: 1;
    }
}

.refresh-indicator {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 1000;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Enhanced Card Transitions */
.card,
.stat-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover,
.stat-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* Dashboard Grid Enhancements */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.quick-action {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-indicator.online {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.status-indicator.offline {
    background: rgba(244, 67, 54, 0.1);
    color: #F44336;
}

.status-indicator.pending {
    background: rgba(255, 152, 0, 0.1);
    color: #FF9800;
}

/* Dashboard Responsive Enhancements */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        flex-direction: column;
    }

    .refresh-indicator {
        top: 10px;
        right: 10px;
        font-size: 11px;
        padding: 8px 12px;
    }
}

/* Additional responsive styles for student dashboard */
@media (max-width: 768px) {
    .welcome-section {
        flex-direction: column;
        text-align: center;
        padding: 25px;
        gap: 25px;
    }

    .student-info {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .quick-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
        width: 100%;
    }

    .stat-item {
        min-width: 80px;
        padding: 15px 12px;
    }

    .stat-number {
        font-size: 20px;
    }

    .stat-label {
        font-size: 10px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* Alert Styles */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
}

.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 #ffeaa7;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Form Sections */
.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e5e9;
}

.form-section:last-child {
    border-bottom: none;
}

.form-section h3 {
    color: #333;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
    display: inline-block;
}

.student-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.student-form textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    color: white;
}

/* File Upload Styles */
.file-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-label {
    display: block;
    padding: 12px 15px;
    border: 2px dashed #e1e5e9;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.file-input-label:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.file-input-label.has-file {
    border-color: #28a745;
    background: #d4edda;
    color: #155724;
}

.file-preview {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
}

/* Navigation improvements - removed duplicate styling */

/* Student navigation specific improvements */
.nav-menu .nav-item {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Ensure user menu doesn't overlap */
.nav-menu .user-menu {
    flex-shrink: 0;
    min-width: fit-content;
}

/* Student dashboard table styling */
.qualification-info {
    line-height: 1.4;
    max-width: 100%;
}

.qualification-info strong {
    color: #2d3748;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.qualification-info .field-of-study {
    color: #4a5568;
    font-style: italic;
    display: block;
    margin-bottom: 2px;
}

.qualification-info .honors {
    color: #d69e2e;
    font-weight: 500;
    display: block;
    margin-bottom: 2px;
}

.qualification-info .thesis-title {
    color: #3182ce;
    display: block;
    margin-bottom: 2px;
}

.qualification-info .supervisor {
    color: #38a169;
    display: block;
}

/* Action buttons for manage degrees */
.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.btn-edit, .btn-delete {
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.btn-edit {
    background: #3182ce;
    color: white;
}

.btn-edit:hover {
    background: #2c5aa0;
    transform: translateY(-1px);
}

.btn-delete {
    background: #e53e3e;
    color: white;
}

.btn-delete:hover {
    background: #c53030;
    transform: translateY(-1px);
}

.btn-edit i, .btn-delete i {
    font-size: 11px;
}

/* Edit degree form styling */
.degree-form {
    max-width: none;
}

.form-section {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.form-section h3 {
    margin: 0 0 20px 0;
    color: #2d3748;
    font-size: 18px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .card {
        padding: 25px 20px;
        margin-bottom: 25px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 25px;
        padding-bottom: 20px;
    }

    .table-responsive {
        width: 100%;
        max-width: 100%;
    }

    .data-table {
        table-layout: auto;
    }

    .data-table th,
    .data-table td {
        padding: 12px 8px;
        font-size: 14px;
        white-space: normal;
    }

    .data-table {
        min-width: 700px;
    }

    /* Admin table responsive */
    .admin-table-container {
        overflow-x: auto;
    }

    .admin-table-container .data-table {
        min-width: 900px;
        table-layout: auto;
    }

    .admin-table-container .data-table th,
    .admin-table-container .data-table td {
        padding: 10px 6px;
        font-size: 13px;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .card {
        padding: 20px 15px;
        margin-bottom: 20px;
        border-radius: 15px;
    }

    .card-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .table-responsive {
        width: 100%;
        max-width: 100%;
    }

    .data-table {
        font-size: 13px;
        table-layout: auto;
    }

    .data-table th,
    .data-table td {
        padding: 10px 6px;
        font-size: 12px;
        white-space: normal;
    }

    .data-table {
        min-width: 600px;
    }

    /* Admin table mobile */
    .admin-table-container .data-table {
        min-width: 800px;
    }

    .admin-table-container .data-table th,
    .admin-table-container .data-table td {
        padding: 8px 4px;
        font-size: 11px;
    }

    .action-buttons {
        flex-direction: column;
        gap: 4px;
    }

    .btn-edit, .btn-delete {
        padding: 4px 8px;
        font-size: 10px;
        min-width: 28px;
        height: 28px;
    }
}

/* Compact navigation for student dashboard */
@media (max-width: 1100px) {
    .nav-container {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 0 15px;
    }

    .nav-brand {
        width: 100%;
        justify-content: center;
        margin-bottom: 0;
    }

    .nav-brand h2 {
        font-size: 16px;
        text-align: center;
    }

    .nav-menu {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
        position: relative;
        z-index: 10;
    }

    .nav-item {
        padding: 8px 12px;
        font-size: 12px;
        position: relative;
        z-index: 11;
    }

    .user-menu {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        padding-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        justify-content: center;
        position: relative;
        z-index: 11;
    }

    .navbar {
        padding: 15px 0;
    }

    .main-content {
        padding-top: 160px; /* Adjust for taller navbar */
    }
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 15px;
    padding-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    min-width: 0;
}

.user-menu span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

/* Loading spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fade in animation for dashboard elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .stat-card, .welcome-section {
    animation: fadeInUp 0.6s ease-out;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

/* Pulse animation for important elements */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.stat-icon:hover {
    animation: pulse 0.6s ease-in-out;
}

/* Gradient text animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.dashboard-header h1 {
    background: linear-gradient(-45deg, #667eea, #764ba2, #667eea, #764ba2);
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Additional responsive improvements */
@media (max-width: 480px) {
    .login-card {
        padding: 20px 15px;
        margin: 5px;
        width: calc(100% - 10px);
        border-radius: 15px;
    }

    .login-container {
        padding: 15px 5px;
    }

    .logo {
        max-width: 150px;
        max-height: 60px;
    }

    .login-logo {
        max-width: 180px;
        max-height: 70px;
    }

    .login-logo-section {
        margin-bottom: 25px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group input {
        padding: 12px 45px 12px 15px;
        font-size: 16px !important; /* Prevents zoom on iOS */
        border-radius: 10px;
        min-height: 44px; /* iOS touch target minimum */
        width: 100%;
        box-sizing: border-box;
        -webkit-appearance: none;
        appearance: none;
    }

    .login-btn {
        padding: 14px 20px;
        font-size: 16px;
        min-height: 44px;
        border-radius: 10px;
        width: 100%;
        touch-action: manipulation;
        -webkit-appearance: none;
        appearance: none;
    }

    .toggle-password {
        right: 15px;
        font-size: 16px;
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
        cursor: pointer;
    }

    .login-btn {
        padding: 14px 20px;
        font-size: 16px;
        min-height: 44px;
        border-radius: 10px;
        width: 100%;
        touch-action: manipulation; /* Improves touch responsiveness */
    }

    .toggle-password {
        right: 15px;
        font-size: 16px;
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .logo-section h1 {
        font-size: 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-card {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        min-height: auto;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .nav-container {
        padding: 0 10px;
        gap: 8px;
    }

    .nav-brand {
        gap: 8px;
    }

    .nav-brand h2 {
        font-size: 14px;
        max-width: 200px;
    }

    .nav-brand img {
        max-width: 80px;
        max-height: 25px;
        padding: 3px 6px;
        border-radius: 6px;
    }

    .nav-item {
        padding: 4px 6px;
        font-size: 9px;
        gap: 2px;
        flex: 0 0 auto;
        min-width: fit-content;
        text-align: center;
    }

    .nav-item i {
        font-size: 8px;
    }

    .nav-menu {
        gap: 2px;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        max-width: 100%;
    }

    .user-menu {
        margin-left: 0;
        padding-left: 0;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .user-menu span {
        font-size: 11px;
        max-width: 100px;
    }

    .logout-btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    .main-content {
        padding: 160px 10px 15px 10px; /* Increased top padding for smaller screens */
    }

    .navbar {
        padding: 10px 0;
    }

    .nav-brand img {
        max-width: 100px;
        max-height: 30px;
        padding: 3px 6px;
        border-radius: 6px;
    }

    .dashboard-header h1 {
        font-size: 22px;
    }

    .welcome-section {
        padding: 20px;
        gap: 20px;
    }

    .student-details h1 {
        font-size: 22px;
    }

    .student-avatar {
        width: 60px;
        height: 60px;
    }

    .avatar-placeholder {
        font-size: 24px;
    }

    .quick-stats {
        gap: 15px;
    }

    .stat-number {
        font-size: 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .login-btn,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Print styles */
@media print {
    .navbar,
    .form-actions,
    .quick-actions {
        display: none;
    }

    .main-content {
        padding: 0;
        max-width: none;
    }

    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }

    .dashboard-header {
        border-bottom: 2px solid #333;
        margin-bottom: 20px;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    /* This can be implemented later if needed */
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }

    .login-btn,
    .action-btn {
        border: 2px solid #000;
    }

    .status-badge {
        border: 1px solid #000;
    }
}

/* Passport Photo Upload Styles */
.passport-photo-section {
    padding: 30px;
}

.current-photo {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.current-photo h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.photo-container {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.passport-photo-display {
    width: 150px;
    height: 200px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid #e0e0e0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.passport-photo-display:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.photo-info {
    flex: 1;
}

.verification-status {
    margin-bottom: 15px;
}

.upload-date {
    color: #666;
    font-size: 14px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upload-guidelines {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    border-left: 4px solid #667eea;
}

.upload-guidelines h4 {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-guidelines h4::before {
    content: '📋';
    font-size: 18px;
}

.upload-guidelines ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.upload-guidelines li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: #555;
    font-size: 14px;
}

.upload-guidelines li i {
    color: #28a745;
    font-size: 12px;
}

.file-upload-container {
    position: relative;
    border: 2px dashed #667eea;
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-container:hover {
    border-color: #5a67d8;
    background: linear-gradient(135deg, #f0f4ff 0%, #fff 100%);
    transform: translateY(-2px);
}

.file-upload-container input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #667eea;
}

.file-upload-info i {
    font-size: 48px;
    color: #667eea;
}

.file-upload-info span {
    font-size: 16px;
    font-weight: 500;
}

.passport-upload-form h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.passport-upload-form h3::before {
    content: '📷';
    font-size: 20px;
}

/* File upload responsive */
@media (max-width: 768px) {
    .photo-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .passport-photo-display {
        width: 120px;
        height: 160px;
    }

    .file-upload-container {
        padding: 30px 15px;
    }

    .file-upload-info i {
        font-size: 36px;
    }

    .upload-guidelines {
        padding: 20px;
    }
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    border-bottom: 2px solid rgba(182, 135, 73, 0.1);
    padding-bottom: 10px;
}

.tab-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid transparent;
}

.tab-item:hover {
    background: rgba(182, 135, 73, 0.1);
    color: var(--primary);
    transform: translateY(-2px);
}

.tab-item.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(41, 51, 120, 0.2);
}

.tab-item.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(41, 51, 120, 0.3);
}

/* Filter Indicator */
.filter-indicator {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 14px;
    margin-top: 10px;
    padding: 8px 12px;
    background: rgba(182, 135, 73, 0.1);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
