@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-gradient: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #533483 100%);
    --text-color: #ffffff;
    --muted: #a0a0a0;
    --primary-start: #667eea;
    --primary-end: #764ba2;
    --success-start: #00d4aa;
    --success-end: #00b894;
    --success-strong-start: #2ecc71;
    --success-strong-end: #27ae60;
    --warning-start: #feca57;
    --warning-end: #ff9ff3;
    --danger-start: #e74c3c;
    --danger-end: #c0392b;
    --info-start: #3498db;
    --info-end: #2980b9;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    color: var(--text-color);
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-end) 0%, var(--primary-start) 100%);
}

.animate-slide-in {
    animation: slideInUp 0.6s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.btn[href] {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-success {
    background: linear-gradient(135deg, var(--success-start) 0%, var(--success-end) 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.4);
}

.btn-lg {
    padding: 15px 30px;
    font-size: 16px;
    gap: 10px;
}

.close {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    float: right;
}

.close:hover {
    color: #f0f0f0;
    transform: scale(1.1);
}

.fab,
.floating-action {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
}

.fab:hover,
.floating-action:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.filter-chips {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-chip:hover,
.filter-chip.active {
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    border-color: transparent;
}

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

.form-label,
.filter-label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
}

.form-input,
.filter-input,
.filter-select,
.fancy-search-input,
.fancy-select-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.fancy-search-input,
.fancy-select-input {
    padding: 20px 24px;
    font-size: 18px;
    font-weight: 500;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.form-input:focus,
.filter-input:focus,
.filter-select:focus,
.fancy-search-input:focus,
.fancy-select-input:focus {
    outline: none;
    border-color: var(--primary-start);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.form-input option,
.filter-select option,
.fancy-select-input option {
    background: #1a1a2e;
    color: #fff;
    padding: 12px;
    font-size: 14px;
}

.form-input option:hover,
.filter-select option:hover,
.fancy-select-input option:hover {
    background: #2d2d2d;
}

.form-input option:checked,
.filter-select option:checked,
.fancy-select-input option:checked {
    background: var(--primary-start);
    color: #fff;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-body {
    padding: 30px;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    margin: auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-content.purple {
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    color: #fff;
    padding: 25px 30px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.search-container {
    position: relative;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 15px 20px 15px 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-start);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0a0a0;
    font-size: 18px;
}

.stats-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.stats-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-5px);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    max-width: 100%;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-label {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.status-present {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.status-absent,
.status-absence {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.status-tardy {
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.status-late {
    background: rgba(255, 159, 243, 0.2);
    color: #ff9ff3;
    border: 1px solid rgba(255, 159, 243, 0.3);
}

.student-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.student-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.student-card:hover::before {
    left: 100%;
}

.student-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.student-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    max-width: 100%;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
}

.activity-icon.success {
    background: linear-gradient(135deg, var(--success-strong-start) 0%, var(--success-strong-end) 100%);
}

.activity-icon.warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.activity-icon.info {
    background: linear-gradient(135deg, var(--info-start) 0%, var(--info-end) 100%);
}

.activity-icon.danger {
    background: linear-gradient(135deg, var(--danger-start) 0%, var(--danger-end) 100%);
}

.analytics-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.analytics-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.analytics-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.analytics-content {
    flex: 1;
}

.analytics-title {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.analytics-value {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.analytics-change {
    font-size: 0.8rem;
    font-weight: 500;
}

.analytics-change.positive {
    color: #10b981;
}

.analytics-change.negative {
    color: #ef4444;
}

.analytics-table {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

.analytics-table th {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 600;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.analytics-table td {
    color: #fff;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.analytics-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.result-table {
    overflow: hidden;
    width: 100%;
    border-collapse: separate;
    border-radius: 12px;
    border-spacing: 0;
    margin-top: 20px;
}

.result-table th {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #fff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.result-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.result-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.attendance-rate {
    font-weight: 600;
    color: #10b981;
}

.chart-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    height: 400px;
    overflow: hidden;
    position: relative;
}

.chart-container canvas {
    max-height: 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
}

.charts-grid {
    min-height: 400px;
}

.class-option,
.grade-option {
    cursor: pointer;
    transition: all 0.3s ease;
}

.class-option:hover,
.grade-option:hover {
    transform: translateY(-5px);
}

.class-card,
.grade-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.class-card:hover,
.grade-card:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

.class-card.selected,
.grade-card.selected {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.class-icon,
.grade-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 20px;
    color: #fff;
}

.class-name,
.grade-name {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 5px;
}

.class-teacher,
.class-students,
.grade-label {
    color: var(--muted);
    font-size: 0.85rem;
}

.fancy-search-input::placeholder,
.fancy-select-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.home-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 25%;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.home-btn:hover {
    background: rgba(0, 0, 0, 1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.02);
}

.home-btn i {
    font-size: 16px;
}

.home-btn span {
    font-size: 14px;
}

.loading,
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-start);
    animation: spin 1s ease-in-out infinite;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background: linear-gradient(135deg, var(--success-strong-start) 0%, var(--success-strong-end) 100%);
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.3);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    background: linear-gradient(135deg, var(--danger-start) 0%, var(--danger-end) 100%);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.quick-action {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.quick-action:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.quick-action-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-end) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: #fff;
}

.quick-action-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.quick-action-desc {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.recent-activity {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 25px;
}

.square-home-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.square-home-btn:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.square-home-btn i {
    font-size: 16px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.excellent {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-badge.good {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-badge.average {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-tardy-badge {
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.student-name {
    font-weight: 600;
    color: #fff;
}

.advanced-filters {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
}

.advanced-filters h4 {
    color: var(--success-start);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 25px;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.export-options,
.filter-summary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    margin-top: 25px;
}

.export-options h4,
.filter-summary h3 {
    color: var(--info-start);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.export-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-tag {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(52, 152, 219, 0.3);
}



.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.page-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover,
.page-btn.active {
    background: rgba(52, 152, 219, 0.3);
    border-color: rgba(52, 152, 219, 0.5);
}

.histogram-bar {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.9));
    border-radius: 4px 4px 0 0;
    min-width: 30px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.histogram-bar:hover {
    transform: scaleY(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.histogram-bar.absence-bar {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.8), rgba(238, 90, 82, 0.9));
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.histogram-bar.tardy-bar {
    background: linear-gradient(135deg, rgba(254, 202, 87, 0.8), rgba(255, 159, 243, 0.9));
    box-shadow: 0 2px 8px rgba(254, 202, 87, 0.3);
}

.record-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    border-left: 4px solid;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.record-item:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.15);
    margin-right: 5px;
}

.absence-item {
    border-left-color: #ff6b6b;
}

.tardy-item {
    border-left-color: #feca57;
}

.present-item {
    border-left-color: #00d4aa;
}

.student-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

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

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

.present-status {
    color: #00d4aa;
    font-weight: 600;
    font-size: 16px;
    margin-top: 15px;
    padding: 8px 16px;
    background: rgba(0, 212, 170, 0.2);
    border-radius: 20px;
    display: inline-block;
    border: 2px solid rgba(0, 212, 170, 0.3);
    animation: pulse 2s infinite;
}

.bar-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: 500;
    color: #ffffff;
}

.bar-value {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.7);
    padding: 2px 6px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.y-axis {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 0 30px 0;
}

.y-tick {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0; }
    50% { opacity: 1; }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .fab,
    .floating-action {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .student-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 12px;
    }

    .chart-container {
        height: 300px;
    }

    .charts-grid {
        min-height: 300px;
        grid-template-columns: 1fr;
    }

    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .result-table {
        font-size: 0.8rem;
    }

    .result-table th,
    .result-table td {
        padding: 10px 8px;
    }
}









.g-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
}

.g-modal-content {
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid #ccc;
    min-width: 500px;
    z-index: 1051;
}

.g-modal-header {
    padding: 20px;
    border-bottom: 1px solid #ccc;
}

.g-modal-body {
    padding: 20px;
    font-size: 16px;
}

.g-modal-footer {
    padding: 20px;
    border-top: 1px solid #ccc;
    text-align: right;
    font-size: 16px;
}

.btn-secondary {
    border: none;
    background-color: #6c757d;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #5a6268;
    color: #fff;
}