/* 
 * Consolidated Blade View Styles
 * This file contains all CSS extracted from Blade view files.
 * Styles are organized by category for better maintainability.
 */

/* ============================================
   Tooltip Styles
   ============================================ */

   div.tooltip-inner {
    max-width: max-content;
}
.tooltip.bs-tooltip-auto {
    inset: unset !important;
}

/* ============================================
   Table Styles
   ============================================ */

/* Consolidated allocation table styles */
.roll-no-table,
.club-allocation-table,
.co-curricular-allocation-table,
.house-allocation-table,
.sports-allocation-table {
    max-height: 500px;
    overflow-y: auto;
}

.roll-no-table table,
.club-allocation-table table,
.co-curricular-allocation-table table,
.house-allocation-table table,
.sports-allocation-table table {
    width: 100%;
}

.roll-no-table thead,
.club-allocation-table thead,
.co-curricular-allocation-table thead,
.house-allocation-table thead,
.sports-allocation-table thead {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 10;
}

.optional-subject-table {
    max-height: 600px;
    overflow-y: auto;
}

.optional-subject-table table {
    width: 100%;
}

.optional-subject-table thead {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 10;
}

.optional-subject-table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    padding: 12px 10px;
    white-space: nowrap;
}

.optional-subject-table tbody td {
    padding: 10px 8px;
    vertical-align: middle;
}

/* General table styles for attendance and other modules */
.table thead th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #475569;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
}

.table-sm th, 
.table-sm td {
    padding: 8px 10px;
    font-size: 0.875rem;
}

/* ============================================
   Calendar Styles
   ============================================ */

.calendar-view {
    display: none;
}

.calendar-view.active {
    display: block;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: #e0e0e0;
    border: 1px solid #e0e0e0;
}

.calendar-day-header {
    background-color: rgb(35, 73, 133);
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9em;
}

.calendar-day {
    background-color: white;
    min-height: 100px;
    padding: 8px;
    position: relative;
    cursor: pointer;
}

.calendar-day:hover {
    background-color: #f8f9fa;
}

.calendar-day.other-month {
    background-color: #f5f5f5;
    color: #999;
}

.calendar-day.today {
    background-color: #e3f2fd;
    border: 2px solid #2196F3;
}

.calendar-day-number {
    font-weight: 600;
    margin-bottom: 5px;
}

.calendar-event-item,
.calendar-lesson-item {
    font-size: 0.75em;
    padding: 2px 4px;
    margin: 2px 0;
    color: white;
    border-radius: 3px;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-lesson-item {
    background-color: #007bff;
}

.calendar-lesson-item:hover {
    background-color: #0056b3;
}

.calendar-event-item:hover {
    opacity: 0.8;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.calendar-month-year {
    font-size: 1.2em;
    font-weight: 600;
}

/* ============================================
   Lesson Styles
   ============================================ */

.lesson-subject-card {
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.lesson-subject-header {
    background-color: #f8f9fa;
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
    font-size: 0.95em;
}

.lesson-list {
    padding: 10px 12px;
}

.lesson-item {
    padding: 8px 10px;
    margin-bottom: 6px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lesson-item:hover {
    background-color: #f8f9fa;
}

.lesson-info {
    flex: 1;
}

.lesson-name {
    color: #333;
    margin-bottom: 3px;
    font-size: 0.9em;
}

.lesson-description {
    color: #666;
    font-size: 0.8em;
    margin-bottom: 3px;
    line-height: 1.3;
}

.lesson-date {
    color: #999;
    font-size: 0.75em;
}

.lesson-actions {
    display: flex;
    gap: 6px;
}

.lesson-actions .btn {
    padding: 4px 8px;
    font-size: 0.8em;
}

/* ============================================
   Form and Select Styles
   ============================================ */

.select2-container {
    min-width: 400px;
}

.select2-results__option {
    padding-right: 20px;
    vertical-align: middle;
}

.select2-results__option:before {
    content: "";
    display: inline-block;
    position: relative;
    height: 20px;
    width: 20px;
    border: 2px solid #e9e9e9;
    border-radius: 4px;
    background-color: #fff;
    margin-right: 20px;
    vertical-align: middle;
}

.select2-results__option[aria-selected=true]:before {
    font-family: fontAwesome;
    content: "\f00c";
    color: #fff;
    background-color: #0F65CD;
    border: 0;
    display: inline-block;
    padding-left: 3px;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #fff;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #eaeaeb;
    color: #272727;
}

.select2-container--default .select2-selection--multiple {
    margin-bottom: 0px;
    border-width: 1px;
    line-height: 23px;
    height: auto;
    min-height: 38px;
}

.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple {
    border-radius: 4px;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-width: 1px;
}

.select2-container--open .select2-dropdown--below {
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.select-icon .select2-selection__placeholder .badge {
    display: none;
}

.select-icon .select2-results__option:before,
.select-icon .select2-results__option[aria-selected=true]:before {
    display: none !important;
}

.select-icon .select2-search--dropdown {
    display: none;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice[title="Select All"] {
    display: none;
}

.sidebar .sidebar-menu > ul li .submenu.submenu-two ul li a {
    width: calc(100% - 20px);
}

.sidebar .sidebar-menu > ul li .submenu.submenu-three ul li a {
    width: calc(100% - 35px);
    margin-left: 35px;
}

.sidebar .sidebar-menu > ul > li ul > li.active a {
    color: #3D5EE1;
}

/* ============================================
   Other Styles
   ============================================ */

.fc-event-main {
    display: none !important;
}

body, table, td, a {
    font-family: Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

#preview, .crop-preview {
    width: 150px;
    height: 200px;
    overflow: hidden;
}

img {
    max-width: 100%;
}

.status-on_leave {
    background-color: #17a2b8;
}

.phone-input-wrapper {
    display: flex;
    position: relative;
}
.phone-country-wrapper {
    flex-shrink: 0;
    min-width: 100px;
    max-width: 150px;
}
.phone-input-wrapper .select2-dropdown {
    width: 100% !important;
}
.select2-results__option .phone-flag-option img, .select2-selection--single .phone-flag-option img {
    width: 15px;
    height: 10px;
    object-fit: cover;
    margin-right: 5px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* ============================================
   Attendance Styles
   ============================================ */

/* Attendance Filter Styles */

.filter-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
    display: block;
}

.filter-info-text {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.filter-info-text i {
    font-size: 0.7rem;
}

.filter-section {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.filter-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-header h6 {
    color: white;
    margin: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-header .action-buttons {
    display: flex;
    gap: 8px;
}

.filter-header .action-buttons .btn {
    padding: 6px 14px;
    font-size: 0.8rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-header .action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.filter-body {
    padding: 20px;
    background: #f8fafc;
}

.date-preset-btn {
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.date-preset-btn.active {
    background: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.date-preset-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.quick-filter-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.quick-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ============================================
   Attendance Dashboard Styles
   ============================================ */

.dashboard-stat-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
    border-left: 3px solid;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.dashboard-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    opacity: 0.08;
    transform: translate(20px, -20px);
}

.dashboard-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.dashboard-stat-card.present-card {
    border-left-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.dashboard-stat-card.present-card::before {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.dashboard-stat-card.absent-card {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

.dashboard-stat-card.absent-card::before {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.dashboard-stat-card.late-card {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.dashboard-stat-card.late-card::before {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.dashboard-stat-card.halfday-card {
    border-left-color: #06b6d4;
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
}

.dashboard-stat-card.halfday-card::before {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.dashboard-stat-card.onleave-card {
    border-left-color: #8b5cf6;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
}

.dashboard-stat-card.onleave-card::before {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

/* Upload & Download dashboard (matches attendance dashboard card theme) */
.dashboard-stat-card.ud-card-syllabus {
    border-left-color: #2563eb;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.dashboard-stat-card.ud-card-syllabus::before {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

.dashboard-stat-card.ud-card-timetable {
    border-left-color: #7c3aed;
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
}

.dashboard-stat-card.ud-card-timetable::before {
    background: linear-gradient(135deg, #6d28d9 0%, #8b5cf6 100%);
}

.dashboard-stat-card.ud-card-photos {
    border-left-color: #db2777;
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
}

.dashboard-stat-card.ud-card-photos::before {
    background: linear-gradient(135deg, #be185d 0%, #ec4899 100%);
}

.dashboard-stat-card.ud-card-assignments {
    border-left-color: #ea580c;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
}

.dashboard-stat-card.ud-card-assignments::before {
    background: linear-gradient(135deg, #c2410c 0%, #f97316 100%);
}

.stat-icon.ud-icon-syllabus {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.stat-icon.ud-icon-timetable {
    background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.stat-icon.ud-icon-photos {
    background: linear-gradient(135deg, #be185d 0%, #db2777 100%);
    box-shadow: 0 4px 12px rgba(219, 39, 119, 0.3);
}

.stat-icon.ud-icon-assignments {
    background: linear-gradient(135deg, #c2410c 0%, #ea580c 100%);
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
}

.stat-icon {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    margin-bottom: 10px;
}

.stat-icon.present-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.stat-icon.absent-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.stat-icon.late-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.stat-icon.halfday-icon {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.stat-icon.onleave-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 5px 0;
    line-height: 1.1;
    color: #1e293b;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #64748b;
    margin-bottom: 3px;
}

.stat-change {
    font-size: 0.7rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Card Styles */
.chart-card {
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-bottom: 15px;
}

.attendance-table-row {
    transition: all 0.2s ease;
    cursor: pointer;
}

.attendance-table-row:hover {
    background: linear-gradient(90deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Badge Styles */
.badge {
    font-size: 0.7rem;
    padding: 3px 8px;
    font-weight: 600;
}

.badge.bg-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.badge.bg-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: white;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.badge.bg-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: white;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.badge.bg-info {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
    color: white;
    box-shadow: 0 2px 4px rgba(6, 182, 212, 0.2);
}

.badge.bg-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
    color: white;
    box-shadow: 0 2px 4px rgba(100, 116, 139, 0.2);
}

.progress-bar.bg-success {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%) !important;
}

.percentage-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.percentage-badge.excellent {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.percentage-badge.good {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.percentage-badge.poor {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.percentage-badge.high {
    background-color: #d1fae5;
    color: #065f46;
}

.percentage-badge.medium {
    background-color: #fef3c7;
    color: #92400e;
}

.percentage-badge.low {
    background-color: #fee2e2;
    color: #991b1b;
}

/* ============================================
   Attendance Analysis Styles
   ============================================ */

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
}

.summary-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.summary-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: white;
}

.summary-stat-icon.days {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.summary-stat-icon.average {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.summary-stat-icon.percent100 {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.summary-stat-icon.above75 {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.summary-stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 5px;
}

.summary-stat-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.stat-box {
    background: white;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    border-left: 4px solid;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-box.present {
    border-left-color: #10b981;
}

.stat-box.absent {
    border-left-color: #ef4444;
}

.stat-box.late {
    border-left-color: #f59e0b;
}

.student-list-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #475569;
}

/* ============================================
   Attendance Post Styles
   ============================================ */
.attendance-table-wrapper {
    position: relative;
}

.attendance-row {
    transition: all 0.2s ease;
}

.attendance-row:hover {
    background-color: #f8f9fa !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.attendance-row.saved {
    background-color: #d4edda !important;
    animation: fadeOut 2s ease-out forwards;
}

@keyframes fadeOut {
    0% { background-color: #d4edda; }
    100% { background-color: transparent; }
}

.status-btn {
    font-size: 0.75rem;
    padding: 6px 12px;
    font-weight: 500;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

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

.status-btn.active {
    border: 2px solid #000;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.1);
    font-weight: 700;
    transform: scale(1.1);
}

.status-btn.btn-success.active {
    border-color: #155724;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

.status-btn.btn-danger.active {
    border-color: #721c24;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.status-btn.btn-warning.active {
    border-color: #856404;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

.status-btn.btn-info.active {
    border-color: #0c5460;
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.2);
}

.status-btn[data-status="on_leave"].active {
    border-color: #17a2b8;
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.2);
}

.student-name {
    font-weight: 500;
    color: #495057;
}

.roll-no {
    font-weight: 600;
    font-size: 1.1rem;
    color: #dc3545;
}

.remark-input {
    border: 1px solid #ced4da;
    transition: all 0.2s ease;
}

.remark-input:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.attendance-summary {
    margin-bottom: 25px;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 4px solid;
    height: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

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

.summary-card:hover::before {
    transform: translateX(100%);
}

.summary-card.present-card {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.summary-card.absent-card {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

.summary-card.late-card {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
}

.summary-card.halfday-card {
    border-left-color: #17a2b8;
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
}

.summary-card.onleave-card {
    border-left-color: #6c757d;
    background: linear-gradient(135deg, #e2e3e5 0%, #d6d8db 100%);
}

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

.summary-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.summary-card-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.summary-card-icon.present-icon {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

.summary-card-icon.absent-icon {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

.summary-card-icon.late-icon {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.summary-card-icon.halfday-icon {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.summary-card-icon.onleave-icon {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
}

.summary-card-icon.total-icon {
    background: rgba(255,255,255,0.2);
}

.summary-card-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    opacity: 0.9;
}

.summary-card-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 10px 0;
    line-height: 1;
}

.summary-card-value.animate {
    animation: countUp 0.5s ease;
}

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

.summary-card-percentage {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.8;
}

.summary-card-progress {
    height: 6px;
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
    margin-top: 12px;
    overflow: hidden;
}

.summary-card-progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

.summary-card-progress-bar.present-bar {
    background: linear-gradient(90deg, #28a745, #20c997);
}

.summary-card-progress-bar.absent-bar {
    background: linear-gradient(90deg, #dc3545, #c82333);
}

.summary-card-progress-bar.late-bar {
    background: linear-gradient(90deg, #ffc107, #ff9800);
}

.summary-card-progress-bar.halfday-bar {
    background: linear-gradient(90deg, #17a2b8, #138496);
}

.summary-card-progress-bar.onleave-bar {
    background: linear-gradient(90deg, #6c757d, #5a6268);
}

.summary-card-progress-bar.total-bar {
    background: rgba(255,255,255,0.3);
}

.summary-card-footer {
    margin-top: 12px;
    font-size: 0.75rem;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 5px;
}

.summary-card.active {
    border-width: 6px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.summary-card.clickable {
    cursor: pointer;
}

.search-box {
    position: relative;
}

.search-box input {
    padding-left: 40px;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

.quick-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.quick-action-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 4px;
}

/* Table Responsive - Custom max-height for attendance tables */
.attendance-table-wrapper .table-responsive,
.student-list-table.table-responsive {
    max-height: 600px;
    overflow-y: auto;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.keyboard-hint {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 5px;
}

.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-indicator.present { background-color: #28a745; }
.status-indicator.absent { background-color: #dc3545; }
.status-indicator.late { background-color: #ffc107; }
.status-indicator.half_day { background-color: #17a2b8; }
.status-indicator.on_leave { background-color: #6c757d; }

.attendance-row.focused {
    background-color: #e7f3ff !important;
    border-left: 4px solid #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.1);
}

.keyboard-shortcuts-modal .shortcut-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #e9ecef;
}

.keyboard-shortcuts-modal .shortcut-item:last-child {
    border-bottom: none;
}

.keyboard-shortcuts-modal .shortcut-key {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 4px 8px;
    font-family: monospace;
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    min-width: 80px;
    text-align: center;
}

.keyboard-hint-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.75rem;
    z-index: 1000;
    display: none;
    animation: fadeIn 0.3s ease;
}

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

/* ============================================
   Attendance Report Styles
   ============================================ */

.report-card {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.report-card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 15px 20px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.report-card-header h5 {
    margin: 0;
    color: #1e293b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-card-body {
    padding: 20px;
}

/* Report Card Table Styles - More specific than general table styles */
.report-card .table {
    margin-bottom: 0;
}

.report-card .table th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #475569;
    font-weight: 600;
    padding: 12px 15px;
    border-bottom: 2px solid #e2e8f0;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.report-card .table td {
    padding: 12px 15px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
}

.report-card .table tbody tr {
    transition: all 0.2s ease;
}

.report-card .table tbody tr:hover {
    background-color: #f8fafc;
}

.report-card .table-bordered {
    border: 1px solid #e2e8f0;
}

.report-card .table-bordered th,
.report-card .table-bordered td {
    border: 1px solid #e2e8f0;
}

.badge-present {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.badge-absent {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.badge-late {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2);
}

.badge-half_day {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(6, 182, 212, 0.2);
}

.badge-on_leave {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.2);
}

.date-header {
    color: black;
    padding: 12px 20px;
    border-radius: 8px;
    margin: 20px 0 15px 0;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.2);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.empty-state i {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 20px;
    display: block;
}

.empty-state p {
    font-size: 1.1rem;
    margin: 0;
}

/* ============================================
   Attendance Muster Styles
   ============================================ */

.info-box {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.info-box h6 {
    color: #667eea;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-box p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
}

.muster-type-section {
    display: none;
}

.muster-type-section.active {
    display: block;
}

/* ============================================
   Enquiry & Registration Form Styles
   ============================================ */

.enquiry-resume-view {
    width: 100%;
    max-width: 100%;
}

.resume-header {
    background: linear-gradient(135deg, #667eea 0%,rgb(49, 77, 202) 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 10px 10px 0 0;
    position: relative;
    overflow: hidden;
}

.resume-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.resume-header-content {
    position: relative;
    z-index: 1;
}

.student-photo-large {
    width: 150px;
    height: 180px;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.resume-section {
    background: white;
    border-radius: 8px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid #667eea;
    transition: transform 0.2s, box-shadow 0.2s;
}

.resume-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title i {
    color: #667eea;
    font-size: 1.5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.25rem;
}

@media (min-width: 1400px) {
    .info-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

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

.info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #718096;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.info-value {
    font-size: 0.95rem;
    color: #2d3748;
    font-weight: 500;
    word-break: break-word;
}

.info-value.badge-value {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.two-column-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.photo-gallery {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.photo-item {
    text-align: center;
}

.photo-item img {
    width: 120px;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.photo-item label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #718096;
    font-weight: 600;
}

.status-badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    border-radius: 20px;
    font-size: 0.813rem;
    font-weight: 600;
}

/* ============================================
   Document Detail Styles
   ============================================ */

.document-upload-wrapper {
    width: 100%;
}

.custom-file-upload {
    position: relative;
    width: 100%;
}

.document-file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    overflow: hidden;
}

.file-upload-label {
    display: block;
    width: 100%;
    cursor: pointer;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 12px 16px;
    background-color: #f9fafb;
    transition: all 0.3s ease;
    position: relative;
}

.file-upload-label:hover {
    border-color: #3d5ee1;
    background-color: #f0f4ff;
}

.file-upload-label.dragover {
    border-color: #3d5ee1;
    background-color: #e8efff;
    border-style: solid;
}

.file-upload-content {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.file-upload-icon {
    font-size: 24px;
    color: #6b7280;
    flex-shrink: 0;
}

.file-upload-label:hover .file-upload-icon {
    color: #3d5ee1;
}

.file-upload-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.file-name {
    font-weight: 500;
    color: #111827;
    word-break: break-all;
}

.file-placeholder {
    color: #6b7280;
    font-size: 14px;
}

.file-hint {
    color: #9ca3af;
    font-size: 12px;
}

.file-status {
    font-size: 12px;
    font-weight: 500;
}

.btn-remove-file {
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 18px;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-file:hover {
    background-color: #fee2e2;
    color: #dc2626;
}

.file-upload-label.has-file {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.file-upload-label.has-file .file-upload-icon {
    color: #10b981;
}

/* ============================================
   Responsive Styles
   ============================================ */

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .dashboard-stat-card {
        padding: 12px;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .two-column-section {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .table th,
    .table td {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    
    .content {
        padding: 20px;
    }
}