/**
 * Main CSS file for Classroom Management System
 * Minimal and Material Design based styling
 */

/* Base styles */
body {
    font-family: 'Vazir', 'Tahoma', 'Arial', 'Helvetica', sans-serif;
    background-color: #f8fafc;
}

/* Card styles */
.card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.card-hover {
    transition: all 0.15s ease;
}

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

/* Button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background: #374151;
    color: white;
}

.btn-primary:hover {
    background: #1f2937;
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-success {
    background: #059669;
    color: white;
}

.btn-success:hover {
    background: #047857;
}

/* Form styles */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #6b7280;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
}

/* Navigation styles */
.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: #6b7280;
    transition: all 0.2s;
    border-radius: 8px;
    margin-bottom: 4px;
}

.nav-item:hover {
    background-color: #f1f5f9;
    color: #374151;
}

.nav-item.active {
    background-color: #f1f5f9;
    color: #374151;
}

/* Stats cards */
.stat-card {
    background: white;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
}

/* Tab styles */
.tab-button {
    flex: 1;
    padding: 12px 16px;
    text-align: center;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
}

.tab-button.active {
    color: #374151;
    border-bottom-color: #6b7280;
}

.tab-button:not(.active) {
    color: #6b7280;
}

/* Header styles */
.header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Footer styles */
.footer {
    background: white;
    border-top: 1px solid #e5e7eb;
    padding: 24px 0;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 50;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #6b7280;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
    .card {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .btn {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .stat-number {
        font-size: 20px;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #111827;
        color: #f9fafb;
    }
    
    .card {
        background: #1f2937;
        border-color: #374151;
    }
    
    .header {
        background: #1f2937;
        border-color: #374151;
    }
    
    .nav-item {
        color: #d1d5db;
    }
    
    .nav-item:hover {
        background-color: #374151;
        color: #f9fafb;
    }
}


