/* public/css/dashboard.css */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
    --primary: #4f46e5;
    --secondary: #7c3aed;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --background: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border: #e2e8f0;
}

* {
    transition: all 0.3s ease-in-out;
}

body {
    background-color: var(--background);
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    margin: 0;
    padding-top: 2rem;
}

button {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 1.5rem 2rem;
    border-radius: 15px;
    color: white;
}

.user-welcome h1 {
    margin: 0;
}

.school-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-top: 0.5rem;
    display: inline-block;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.stats-grid, .actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card, .action-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover, .action-card:hover {
    transform: translateY(-5px);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label, .action-content p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.action-content h3 {
    font-size: 1.1rem;
    margin: 0 0 0.25rem 0;
}

.section-header {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 1rem;
    }
    .top-bar {
        flex-direction: column;
        text-align: center;
    }
    .logout-btn {
        margin-top: 1rem;
    }
}
