/**
 * custom.css — Dashboard layout and polish (Bootstrap 5 companion)
 */

:root {
    --sidebar-width: 260px;
    --page-max: 1200px;
}

body.app-body {
    min-height: 100vh;
    background: #f4f6f9;
}

/* Auth page */
.auth-body {
    background: linear-gradient(135deg, #0d6efd12 0%, #6610f414 100%);
    min-height: 100vh;
}

.auth-card {
    border-radius: 1rem;
}

.auth-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(13, 110, 253, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* App shell */
.sidebar-desktop {
    width: var(--sidebar-width);
    min-height: 100vh;
    position: sticky;
    top: 0;
}

.sidebar-logo {
    width: 36px;
    height: 36px;
}

.sidebar-link {
    color: rgba(255, 255, 255, 0.75);
    border-radius: 0.5rem;
    padding: 0.65rem 1rem;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-link.active {
    color: #fff;
    background: rgba(13, 110, 253, 0.35);
}

.main-wrap {
    flex: 1;
    min-width: 0;
}

.stat-card {
    border-radius: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.08) !important;
}

/* Clickable stat card (Total Sales → entries list) */
.stat-card-link {
    cursor: pointer;
    border-radius: 0.75rem;
    outline-offset: 2px;
}

.stat-card-link:focus-visible {
    outline: 2px solid rgba(13, 110, 253, 0.6);
}

.stat-card-link:hover .stat-card {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.25rem rgba(13, 110, 253, 0.12) !important;
    border-color: rgba(13, 110, 253, 0.35) !important;
}

.entries-table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6c757d;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chart-card {
    border-radius: 0.75rem;
}

.w-20 {
    width: 1.25rem;
}
