
html {
    height: 100%;
    margin: 0;
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f5f5f5;
    font-size: 0.9rem;
}

body {
    background: linear-gradient(to right, #eef2f3, #d9e4f5);
    font-family: 'Segoe UI', sans-serif;
    padding: 0px;
}

.dashboard-card {
    border-radius: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.table th i {
    font-size: 1rem;
    vertical-align: middle;
}
.list-group-item {
    border: none;
    background: #f9fbff;
    border-radius: 0.5rem;
    margin-bottom: 0.4rem;
    padding: 0.7rem 1rem;
}

#app-container {
    display: flex;
    height: 100%;
    overflow: hidden;
}

#content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar styles */
#sidebarMenu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1045;
    transition: transform 0.3s ease-in-out, width 0.3s ease-in-out;
    overflow: hidden;
}

#sidebarMenu .offcanvas-body {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

#sidebarMenu .offcanvas-body::-webkit-scrollbar {
    width: 6px;
}
#sidebarMenu .offcanvas-body::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

/* Table Header */
.custom-thead th {
    background-color: #fff3cd;
    color: #856404;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-bottom: 2px solid #ffecb5;
}
.table-sm td, .table-sm th {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.85rem;
    background-color: #fff3cd;
    color: #856404;
    font-weight: 600;
    border-bottom: 2px solid #ffecb5;
}

.card-header {
    font-size: 0.9rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e5e5;
}

.badge {
    font-size: 0.8rem;
    padding: 0.35rem 0.55rem;
    font-weight: 500;
}

/* Container Box */
.container-box {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    padding: 20px;
    animation: fadeIn 0.6s ease-in-out;
}

/* Date Navigation */
.date-nav {
    background: linear-gradient(90deg, #36d1dc, #5b86e5);
    padding: 10px 16px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.date-nav a {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 18px;
    transition: 0.3s ease;
}
.date-nav a:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}
.date-nav input[type="date"] {
    background: white;
    border: none;
    border-radius: 8px;
    padding: 6px 10px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

/* Table */
table.table {
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
thead {
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    color: #fff;
    text-align: center;
    font-size: 1rem;
    letter-spacing: 0.5px;
}
tbody tr:hover {
    background-color: #f3faff;
    transition: background-color 0.3s;
}
tbody tr:nth-child(odd) {
    background: #f8f9fa;
}
tbody tr:nth-child(even) {
    background: #e3f2fd;
}

/* Buttons */
.btn-outline-primary {
    border-color: #2575fc;
    color: #2575fc;
    transition: 0.3s;
}
.btn-outline-primary:hover {
    background: #2575fc;
    color: #fff;
    transform: scale(1.1);
}

/* Alerts */
.alert-success {
    background: linear-gradient(45deg, #56ab2f, #a8e063);
    color: white;
}
.alert-danger {
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    color: white;
}

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

/* Mobile Sidebar */
@media (max-width: 767.98px) {
    #sidebarMenu {
        transform: translateX(-100%);
        width: 100%;
    }
    #sidebarMenu.show {
        transform: translateX(0%);
    }
    .offcanvas-backdrop {
        z-index: 1040;
    }
    #content-wrapper {
        margin-left: 0;
    }
}

/* Desktop Sidebar */
@media (min-width: 768px) {
    #sidebarMenu {
        width: 260px;
        transform: translateX(0%) !important;
        visibility: visible !important;
        border-right: 1px solid rgba(0, 0, 0, 0.1);
        flex-shrink: 0;
    }
    #content-wrapper {
        margin-left: 250px;
        transition: margin-left 0.3s ease-in-out;
    }
}

/* Layout */
header, footer {
    flex-shrink: 0;
    background-color: #f8f9fa;
    padding: 0;
    border-bottom: 1px solid #dee2e6;
}
footer {
    border-top: 1px solid #dee2e6;
}
main {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
}

/* Form */
label, .form-label {
    font-size: 0.85rem;
    font-weight: 500;
}
.form-control, textarea.form-control, select.form-select {
    font-size: 0.8rem;
    padding: 4px 8px;
    height: auto;
    border-radius: 4px;
    max-width: 100%;
}
textarea.form-control { resize: vertical; }
input, select { font-size: 0.8rem; }
.form-check-label { font-size: 0.8rem; }
.btn { padding: 0.5rem 1rem; font-size: 0.8rem; }
.text-muted-sm { font-size: 0.8rem; }
.form-section {
    border: 1px solid #dee2e6;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    background-color: #f8f9fa;
}
.form-heading {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: bold;
    color: #007bff;
}

/* ===========================================
   ATTENDANCE MODULE STYLES
   =========================================== */

/* Attendance Cards */
.attendance-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.history-card, .status-card, .settings-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
}

/* Verification Options */
.verification-option {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.verification-option:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,123,255,0.15);
}

.verification-option.selected {
    border-color: #007bff;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.verification-option input[type="checkbox"] {
    transform: scale(1.2);
    margin-right: 10px;
}

/* Status Badges */
.status-badge {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.verification-method-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
}

/* Attendance Buttons */
.btn-attendance {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

.btn-attendance:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    color: white;
}

.btn-attendance:disabled {
    background: #6c757d;
    transform: none;
    box-shadow: none;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
}

/* Messages */
.message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Location and WiFi Info */
.location-info {
    background: #e8f5e8;
    border: 1px solid #c3e6cb;
    border-radius: 10px;
    padding: 15px;
    margin-top: 10px;
}

.wifi-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 15px;
    margin-top: 10px;
}

/* QR Code Container */
.qr-code-container {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-top: 10px;
}

/* Photo Preview */
.photo-preview {
    max-width: 200px;
    max-height: 200px;
    border-radius: 10px;
    margin-top: 10px;
}

/* Attendance Status */
.attendance-status {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

/* Dashboard Stats Cards */
.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stats-card h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
}

.stats-card p {
    margin: 5px 0 0 0;
    opacity: 0.9;
}

/* Quick Actions */
.quick-actions {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.action-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 10px;
    padding: 15px 25px;
    color: white;
    text-decoration: none;
    display: inline-block;
    margin: 5px;
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    color: white;
}

/* Recent Activity */
.recent-activity {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.activity-item {
    padding: 15px;
    border-left: 4px solid #007bff;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 0 10px 10px 0;
}

/* Settings Preview */
.settings-preview {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

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

.status-enabled {
    background: #d4edda;
    color: #155724;
}

.status-disabled {
    background: #f8d7da;
    color: #721c24;
}

/* Settings Sections */
.settings-section {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
}

.settings-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    margin: -20px -20px 20px -20px;
}

/* Attendance Items */
.attendance-item {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
}

.attendance-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Status Indicators */
.status-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
}

.status-present { background-color: #28a745; }
.status-absent { background-color: #dc3545; }
.status-late { background-color: #ffc107; }
.status-pending { background-color: #6c757d; }

/* Verification Badges */
.verification-badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 12px;
}

/* Time Display */
.time-display {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #007bff;
}

/* Responsive Design for Attendance */
@media (max-width: 768px) {
    .verification-option {
        padding: 15px;
        margin-bottom: 10px;
    }
    
    .stats-card h3 {
        font-size: 2rem;
    }
    
    .action-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .attendance-card, .history-card, .status-card, .settings-card {
        border-radius: 15px;
        padding: 15px;
    }
}
