/* ============================================================
   assets/css/style.css
   Custom styles for CateringOps
   These layer on top of Bootstrap — keep it simple
   ============================================================ */

/* ----- Base / Layout ----- */
body {
    background-color: #f5f6fa;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

main.container-fluid {
    max-width: 1400px;
    margin: 0 auto;
}

/* ----- Navbar ----- */
.navbar-brand {
    font-size: 1.25rem;
    letter-spacing: 0.02em;
}

/* ----- Dashboard Summary Cards ----- */
.summary-card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.summary-card .card-body {
    padding: 1.5rem;
}
.summary-card .stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
}
.summary-card .stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.75;
    margin-top: 0.25rem;
}
.summary-card .stat-icon {
    font-size: 2rem;
    opacity: 0.2;
}

/* ----- Tables ----- */
.table-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    overflow: hidden;
}
.table-card .card-header {
    background: #fff;
    border-bottom: 2px solid #f0f0f0;
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 1rem;
}
.table thead th {
    background-color: #f8f9fa;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
}

/* ----- Employee Clock-in Cards ----- */
.shift-card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    margin-bottom: 1.25rem;
}
.shift-card .shift-event-name {
    font-size: 1.15rem;
    font-weight: 600;
}
.shift-card .shift-meta {
    font-size: 0.875rem;
    color: #6c757d;
}
.shift-card .shift-meta i {
    width: 16px;
}

/* Clock-in button — big and easy to tap on mobile */
.btn-clock-in {
    background: #198754;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.65rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
}
.btn-clock-in:hover {
    background: #157347;
    color: #fff;
}
.btn-clock-out {
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.65rem 2rem;
    font-size: 1.05rem;
    font-weight: 600;
}
.btn-clock-out:hover {
    background: #b02a37;
    color: #fff;
}

/* ----- Page title bar ----- */
.page-title-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.page-title-bar h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

/* ----- Badges (override Bootstrap slightly for legibility) ----- */
.badge {
    font-size: 0.78rem;
    padding: 0.4em 0.75em;
    border-radius: 50px;
}

/* ----- Login page ----- */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
}
.login-card {
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    background: white;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    margin: 1rem;
}
.login-card .card-header {
    background: transparent;
    border: none;
    text-align: center;
    padding: 2rem 2rem 1rem;
}
.login-card .card-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1a1a2e;
}
.login-card .card-body {
    padding: 1rem 2rem 2rem;
}

/* ----- Responsive tweaks ----- */
@media (max-width: 576px) {
    .page-title-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .table-responsive {
        font-size: 0.875rem;
    }
}
/* ── Mobile polish ── */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }

    .card {
        border-radius: 10px;
    }

    .card-header {
        font-size: 0.9rem;
        padding: 10px 14px;
    }

    .card-body {
        padding: 12px;
    }

    .btn-lg {
        font-size: 1rem;
        padding: 12px;
    }

    .table th,
    .table td {
        font-size: 0.8rem;
        padding: 8px 6px;
    }

    h1.h3 {
        font-size: 1.3rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-card .stat-number {
        font-size: 1.5rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .badge {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .btn-sm {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    /* Stack form rows on mobile */
    .row.g-3 > [class*="col-md"] {
        margin-bottom: 4px;
    }

    /* Make tables scrollable on mobile */
    .table-responsive {
        border-radius: 8px;
    }

    /* Full width buttons on mobile */
    .d-flex.gap-2 .btn {
        font-size: 0.9rem;
    }
}
