/* Minimalist Swiggy-inspired Design */

:root {
    --primary-color: #fc8019;
    --secondary-color: #60b246;
    --text-dark: #282c3f;
    --text-light: #686b78;
    --border-color: #e9e9eb;
    --bg-light: #f9f9f9;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    color: var(--text-dark);
    background-color: #fff;
}

.navbar-brand {
    font-weight: 600;
    color: var(--primary-color) !important;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #e07316;
    border-color: #e07316;
}

.btn-success {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-success:hover {
    background-color: #54a03f;
    border-color: #54a03f;
}

.card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 2px 16px rgba(0,0,0,.08);
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    padding: 1rem 1.25rem;
}

.table {
    color: var(--text-dark);
}

.table thead th {
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(252, 128, 25, 0.15);
}

.alert {
    border-radius: 8px;
}

.footer {
    margin-top: auto;
}

/* Stats Cards */
.stats-card {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #e07316 100%);
    color: white;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.stats-card h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-card p {
    margin: 0;
    opacity: 0.9;
}

/* Attendance Status Buttons */
.status-btn-group .btn {
    margin: 0.25rem;
}

/* Calendar View */
.calendar-day {
    min-height: 80px;
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    position: relative;
}

.calendar-day.today {
    background-color: rgba(252, 128, 25, 0.1);
}

.calendar-day .day-number {
    font-weight: 600;
    color: var(--text-dark);
}

/* Responsive Table */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.9rem;
    }
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Print Styles */
@media print {
    .navbar, .footer, .btn, .no-print {
        display: none !important;
    }
}

