:root {
    --sidebar-width: 260px;
    --primary-dark: #0b5ed7;
}

body {
    background: #f4f6f9;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%);
    padding: 1rem;
}

.login-card {
    width: 100%;
    max-width: 420px;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.admin-wrapper {
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: #0d6efd;
    color: #fff;
    position: sticky;
    top: 0;
    align-self: flex-start;
}

.sidebar-brand {
    padding: 1.25rem 1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin: 0.15rem 0.75rem;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-offcanvas {
    width: var(--sidebar-width);
}

.admin-content {
    min-width: 0;
}

.page-header h1 {
    font-weight: 600;
}

.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.stat-card {
    transition: transform 0.15s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.color-swatch {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.color-swatch:hover {
    transform: scale(1.08);
}

.color-swatch.active {
    border-color: #212529;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #212529;
}

.color-swatch[data-color="Red"] { background: #dc3545; }
.color-swatch[data-color="Green"] { background: #198754; }
.color-swatch[data-color="Yellow"] { background: #ffc107; }
.color-swatch[data-color="Blue"] { background: #0d6efd; }
.color-swatch[data-color="White"] { background: #f8f9fa; border: 1px solid #dee2e6; }
.color-swatch[data-color="Purple"] { background: #6f42c1; }

.table-responsive {
    border-radius: 0.75rem;
}

.badge-color {
    min-width: 70px;
}

.form-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6c757d;
    margin-bottom: 1rem;
}

.install-app-prompt {
    position: fixed;
    z-index: 1080;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 420px;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    background: #0d6efd;
    color: #fff;
    box-shadow: 0 0.75rem 2rem rgba(13, 110, 253, 0.3);
}

.install-app-icon {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.16);
    font-size: 1.2rem;
}

@media (max-width: 991.98px) {
    .admin-content {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .page-header .btn {
        width: 100%;
    }

    .color-swatch {
        width: 40px;
        height: 40px;
    }

    .install-app-prompt {
        right: 0.75rem;
        bottom: 0.75rem;
        left: 0.75rem;
        max-width: none;
    }
}
