@import "tailwindcss";

@theme {
  --color-nskblue: #1e40af;
  --color-nsklightblue: #3b82f6;
  --color-nsknavy: #1e3a8a;
  --color-nskgold: #f59e0b;
  --color-nsklight: #f0f9ff;
  --color-nskgreen: #10b981;
  --color-nskred: #ef4444;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background: #f8fafc;
}

.logo-container {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
}

.attendance-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.attendance-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.nav-item {
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #f59e0b;
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

.sidebar {
    transition: all 0.3s ease;
    width: 250px;
}

.sidebar.collapsed {
    width: 80px;
}

.main-content {
    transition: all 0.3s ease;
    margin-left: 250px;
    width: calc(100% - 250px);
}

.main-content.expanded {
    margin-left: 80px;
    width: calc(100% - 80px);
}

@media (max-width: 768px) {
    .sidebar {
        margin-left: -250px;
    }
    
    .sidebar.mobile-show {
        margin-left: 0;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
}

.notification-dot {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 12px;
    height: 12px;
    background-color: #ef4444;
    border-radius: 50%;
}

.attendance-table {
    border-collapse: separate;
    border-spacing: 0;
}

.attendance-table th {
    background-color: #f8fafc;
}

.attendance-table tr:last-child td {
    border-bottom: 0;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

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

.present-dot {
    background-color: #10b981;
}

.absent-dot {
    background-color: #ef4444;
}

.late-dot {
    background-color: #f59e0b;
}

.attendance-checkbox {
    transform: scale(1.5);
    accent-color: #10b981;
}

.modal {
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: scale(0.9);
    opacity: 0;
    pointer-events: none;
}

.modal.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.tab-button {
    transition: all 0.3s ease;
}

.tab-button.active {
    background-color: #1e40af;
    color: white;
}

.progress-bar {
    height: 8px;
    background-color: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}

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

.fade-in {
    animation: fadeIn 0.5s ease;
}

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

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.floating-action-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

.student-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.filter-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
}

.attendance-summary {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
    border-radius: 12px;
}

.export-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.export-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.filter-btn {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    color: white;
}

.filter-btn:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
}
