/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --primary-color: #4f46e5;
    --secondary-color: #7c3aed;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Modern Minimal LMS UI --- */
body {
    font-family: 'Inter', sans-serif;
    background: #f6f7fb;
    color: #222;
    min-height: 100vh;
}
.lms-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 1.5rem;
}
.lms-logo {
    font-size: 2.2rem;
    color: var(--primary-color, #4f46e5);
}
.lms-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 0.1rem;
}
.lms-subtitle {
    color: #555;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.lms-main {
    max-width: 1200px;
}
.lms-entry-card {
    max-width: 900px;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border: 1px solid #e5e7eb;
    background: #fff;
}
.lms-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #222;
}
.lms-stats {
    margin-bottom: 1.5rem;
}
.lms-stat-card {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 1.1rem 0.5rem;
}
.lms-stat-icon {
    width: 44px;
    height: 44px;
    margin: 0 auto 0.4rem auto;
    border-radius: 50%;
    background: #f4f6fa;
    color: var(--primary-color, #4f46e5);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lms-stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #222;
}
.lms-stat-label {
    color: #666;
    font-size: 0.98rem;
}

/* Leaderboard Styles */
.lms-leaderboard-section {
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border: 1px solid #e5e7eb;
    background: #fff;
}

.leaderboard-card {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 1.2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.leaderboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.leaderboard-card.rank-1 {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-color: #ffc107;
}

.leaderboard-card.rank-2 {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    border-color: #6c757d;
}

.leaderboard-card.rank-3 {
    background: linear-gradient(135deg, #cd7f32, #daa520);
    border-color: #b8860b;
}

.rank-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.rank-badge.rank-1 {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
}

.rank-badge.rank-2 {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.rank-badge.rank-3 {
    background: linear-gradient(135deg, #8b4513, #a0522d);
}

.student-info-leaderboard {
    margin-bottom: 0.8rem;
}

.student-name-leaderboard {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    margin-bottom: 0.2rem;
}

.student-details-leaderboard {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-top: 0.8rem;
}

.stat-item {
    text-align: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #222;
    display: block;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.2rem;
}

.total-time-display {
    font-size: 1.2rem;
    font-weight: 700;
    color: #222;
    text-align: center;
    margin: 0.8rem 0;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.no-data-message {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.no-data-message i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .leaderboard-card {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .student-name-leaderboard {
        font-size: 1rem;
    }
    
    .total-time-display {
        font-size: 1rem;
    }
}
.lms-table-section {
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border: 1px solid #e5e7eb;
    background: #fff;
    margin-bottom: 2rem;
}
.table {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}
.table thead th {
    background: #f5f5f5;
    color: #222;
    font-weight: 700;
    font-size: 1rem;
    border-bottom: 2px solid #e5e7eb;
    padding: 0.8rem 0.5rem;
}
.table tbody td, .table tbody tr {
    color: #222;
    background: #fff;
    font-size: 1rem;
    padding: 0.7rem 0.5rem;
}
.table tbody tr:hover {
    background: #f0f4f8;
}
.table tbody tr.selected, .table tbody tr.dt-row-selected {
    background: #e0e7ef;
    color: #222;
}
.table tbody tr.odd {
    background: #fafbfc;
}
.table tbody tr.even {
    background: #fff;
}
.form-label, .form-control, .form-select, .form-control:focus, .form-select:focus {
    color: #222;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: none;
}
.form-control, .form-select {
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    background: #fff;
    color: #222;
}
.form-control::placeholder {
    color: #888;
    opacity: 1;
}
.form-select option {
    background: #fff;
    color: #222;
}
input[type="text"], input[type="number"], input[type="email"], input[type="password"], select, textarea {
    background: #fff;
    color: #222;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: none;
}
input[type="text"]:focus, input[type="number"]:focus, input[type="email"]:focus, input[type="password"]:focus, select:focus, textarea:focus {
    border-color: var(--primary-color, #4f46e5);
    outline: none;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.08);
}
.btn, .btn-primary, .btn-outline-light {
    color: #fff;
    background: linear-gradient(90deg, var(--primary-color, #4f46e5), var(--secondary-color, #7c3aed));
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: background 0.2s, box-shadow 0.2s;
}
.btn-primary:hover, .btn-outline-light:hover {
    background: var(--secondary-color, #7c3aed);
    color: #fff;
}
@media (max-width: 900px) {
    .lms-main { max-width: 100%; }
    .lms-entry-card { max-width: 100%; }
}
@media (max-width: 600px) {
    .lms-header { padding: 0.7rem 0.2rem; }
    .lms-title { font-size: 1.1rem; }
    .lms-subtitle { font-size: 0.9rem; }
    .lms-section-title { font-size: 1.05rem; }
    .lms-stat-card { padding: 0.7rem 0.2rem; }
    .lms-stat-value { font-size: 1.05rem; }
    .lms-table-section { margin-bottom: 1rem; }
}
/* --- End Modern Minimal LMS UI --- */

/* Background Overlay */
.background-overlay {
    display: none !important;
}

/* Glass Morphism Effect */
.glass-card, .stat-card, .entry-form, .table-section .card, .table, .table-responsive, .main-content {
    background: #fff !important;
    color: #222 !important;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    border: 1px solid #e5e7eb;
    margin-bottom: 1.2rem !important;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

/* Header Section */
.header-section {
    background: #fff !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 1.2rem 0 0.7rem 0 !important;
    margin-bottom: 0.5rem !important;
}

.header-section h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-shadow: none !important;
    color: #222 !important;
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.current-time-display {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.time-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.25rem;
}

.date-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Main Content */
.main-content {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* Entry Form Section */
.entry-form-section {
    margin-bottom: 1.2rem !important;
}

.entry-form {
    padding: 1.2rem 1.5rem !important;
    border-radius: 12px;
    border: 1px solid #e5e7eb !important;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.form-label {
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.form-label, .form-control, .form-select, .form-control:focus, .form-select:focus {
    color: #222 !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: none !important;
}

.form-control, .form-select {
    border-radius: 8px !important;
    padding: 0.6rem 1rem !important;
    font-size: 1rem !important;
    background: #fff !important;
    color: #222 !important;
}

.form-control::placeholder {
    color: #888 !important;
    opacity: 1 !important;
}

.form-select option {
    background: #fff !important;
    color: #222 !important;
}

input[type="text"], input[type="number"], input[type="email"], input[type="password"], select, textarea {
    background: #fff !important;
    color: #222 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    box-shadow: none !important;
}

input[type="text"]:focus, input[type="number"]:focus, input[type="email"]:focus, input[type="password"]:focus, select:focus, textarea:focus {
    border-color: var(--primary-color) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.08) !important;
}

.btn, .btn-primary, .btn-outline-light {
    color: #fff !important;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 8px !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.6rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: background 0.2s, box-shadow 0.2s;
}

.btn-primary:hover, .btn-outline-light:hover {
    background: var(--secondary-color) !important;
    color: #fff !important;
}

/* Student Info Display */
.student-info {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    padding: 0.5rem;
    color: #10b981;
    font-weight: 500;
    display: none;
}

.student-info.show {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.student-details {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.student-details small {
    color: rgba(255, 255, 255, 0.8);
}

/* Statistics Cards */
.stats-section {
    display: flex;
    gap: 1.2rem;
    justify-content: space-between;
    margin-bottom: 1.2rem !important;
}

.stat-card {
    flex: 1 1 0;
    min-width: 160px;
    padding: 1.2rem 0.7rem;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #e5e7eb;
    margin: 0 0.2rem;
    background: #fff !important;
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 0.5rem auto;
    border-radius: 50%;
    background: #f4f6fa;
    color: var(--primary-color);
    font-size: 2rem;
}

.stat-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222 !important;
    margin-bottom: 0.2rem;
}

.stat-content p {
    color: #666 !important;
    font-size: 1rem;
    margin-bottom: 0;
}

/* Table Section */
.table-section {
    margin-bottom: 2rem;
}

.table {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
}

.table thead th {
    background: #f5f5f5 !important;
    color: #222 !important;
    font-weight: 600;
    border: none;
    padding: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.table thead {
    background: #f5f5f5 !important;
    color: #222 !important;
    border-bottom: 2px solid #e5e7eb;
}

.table tbody tr {
    background: #fff !important;
    color: #222 !important;
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: #f0f4f8 !important;
    transform: scale(1.01);
}

.table tbody td {
    color: white;
    border: none;
    padding: 1rem;
    vertical-align: middle;
}

/* Buttons */
.btn {
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

/* Response Messages */
.alert {
    border-radius: 10px;
    border: none;
    font-weight: 500;
    color: #222 !important;
    background: #f5f5f5 !important;
    border: 1px solid #e5e7eb !important;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Footer */
.footer-section {
    background: var(--dark-color);
    color: white;
    padding: 1rem 0;
    position: relative;
    z-index: 10;
}

.footer-section a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
}

.footer-section a:hover {
    color: #93c5fd;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* Loading Animation */
.spinner-border {
    width: 1rem;
    height: 1rem;
}

/* DataTables Customization */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    color: white;
}

.dataTables_wrapper .dataTables_filter input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 5px;
    padding: 0.25rem 0.5rem;
}

.dataTables_wrapper .dataTables_filter input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    outline: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white !important;
    border-radius: 5px;
    margin: 0 2px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* DataTables row and cell visibility fixes */
.table tbody td, .table tbody tr, .dataTable tbody td, .dataTable tbody tr {
    color: #222 !important;
    background: #fff !important;
}

.table tbody tr:hover, .dataTable tbody tr:hover {
    background: #f0f4f8 !important;
    color: #222 !important;
}

.table tbody tr.selected, .dataTable tbody tr.selected,
.table tbody tr.dt-row-selected, .dataTable tbody tr.dt-row-selected {
    background: #e0e7ef !important;
    color: #222 !important;
}

.table tbody tr.odd, .dataTable tbody tr.odd {
    background: #fafbfc !important;
    color: #222 !important;
}

.table tbody tr.even, .dataTable tbody tr.even {
    background: #fff !important;
    color: #222 !important;
}

.table thead th, .dataTable thead th {
    background: #f5f5f5 !important;
    color: #222 !important;
}

/* Action buttons in table */
.table .btn, .dataTable .btn {
    color: #fff !important;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 8px !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.4rem 1.1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: background 0.2s, box-shadow 0.2s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-section h1 {
        font-size: 1.5rem;
    }
    
    .entry-form {
        padding: 1rem;
    }
    
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .stat-content h3 {
        font-size: 1.5rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding: 1rem 0;
    }
    
    .entry-form .row {
        margin: 0;
    }
    
    .entry-form .col-md-2,
    .entry-form .col-md-3,
    .entry-form .col-md-4 {
        margin-bottom: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        font-size: 2rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Focus Styles */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .background-overlay,
    .header-section,
    .footer-section,
    .btn {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .glass-card {
        background: white !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
} 

.subtitle {
    color: #444 !important;
    font-size: 1.05rem;
    font-weight: 500;
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
    letter-spacing: 0.01em;
} 

.student-camel-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #4f46e5;
    letter-spacing: 0.01em;
    margin-right: 0.5rem;
}

.thanks-visit {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #10b981;
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
} 