body {
    background-color: #f8f9fa;
}

.navbar-brand {
    font-weight: 600;
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 600;
}

.table th {
    font-weight: 600;
    color: #495057;
    border-top: none;
}

.form-control:focus,
.form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.alert {
    border: none;
    border-radius: 0.5rem;
}

.badge {
    font-weight: 500;
}

.pagination {
    margin-bottom: 0;
}

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

.opacity-50 {
    opacity: 0.5;
}

.nav-link {
    padding: 0.5rem 1rem;
}

.nav-link i {
    margin-right: 0.25rem;
}

@media (max-width: 768px) {
    .card-body h3 {
        font-size: 1.25rem;
    }
}


/* ===== COLOR THEMES ===== */

/* Theme 1: Classic Saffron (Default - traditional temple feel) */
.theme-saffron .navbar.bg-primary { background-color: #e65100 !important; }
.theme-saffron .navbar.bg-dark { background-color: #bf360c !important; }
.theme-saffron .btn-primary { background-color: #e65100; border-color: #e65100; }
.theme-saffron .btn-primary:hover { background-color: #bf360c; border-color: #bf360c; }
.theme-saffron .dropdown-item:active { background-color: #e65100; }
.theme-saffron .form-control:focus, .theme-saffron .form-select:focus { border-color: #ffab91; box-shadow: 0 0 0 0.25rem rgba(230, 81, 0, 0.25); }
.theme-saffron .nav-tabs .nav-link.active { color: #e65100; border-bottom-color: #e65100; }
.theme-saffron .text-primary { color: #e65100 !important; }
.theme-saffron { background-color: #fff8f0; }

/* Theme 2: Royal Maroon */
.theme-maroon .navbar.bg-primary { background-color: #880e4f !important; }
.theme-maroon .navbar.bg-dark { background-color: #4a0028 !important; }
.theme-maroon .btn-primary { background-color: #880e4f; border-color: #880e4f; }
.theme-maroon .btn-primary:hover { background-color: #6a0039; border-color: #6a0039; }
.theme-maroon .dropdown-item:active { background-color: #880e4f; }
.theme-maroon .form-control:focus, .theme-maroon .form-select:focus { border-color: #f48fb1; box-shadow: 0 0 0 0.25rem rgba(136, 14, 79, 0.25); }
.theme-maroon .nav-tabs .nav-link.active { color: #880e4f; border-bottom-color: #880e4f; }
.theme-maroon .text-primary { color: #880e4f !important; }
.theme-maroon { background-color: #fdf2f8; }

/* Theme 3: Temple Gold */
.theme-gold .navbar.bg-primary { background-color: #795548 !important; }
.theme-gold .navbar.bg-dark { background-color: #3e2723 !important; }
.theme-gold .btn-primary { background-color: #795548; border-color: #795548; }
.theme-gold .btn-primary:hover { background-color: #5d4037; border-color: #5d4037; }
.theme-gold .dropdown-item:active { background-color: #795548; }
.theme-gold .form-control:focus, .theme-gold .form-select:focus { border-color: #d7ccc8; box-shadow: 0 0 0 0.25rem rgba(121, 85, 72, 0.25); }
.theme-gold .nav-tabs .nav-link.active { color: #795548; border-bottom-color: #795548; }
.theme-gold .text-primary { color: #795548 !important; }
.theme-gold { background-color: #faf6f3; }

/* Theme 4: Sacred Green */
.theme-green .navbar.bg-primary { background-color: #2e7d32 !important; }
.theme-green .navbar.bg-dark { background-color: #1b5e20 !important; }
.theme-green .btn-primary { background-color: #2e7d32; border-color: #2e7d32; }
.theme-green .btn-primary:hover { background-color: #1b5e20; border-color: #1b5e20; }
.theme-green .dropdown-item:active { background-color: #2e7d32; }
.theme-green .form-control:focus, .theme-green .form-select:focus { border-color: #a5d6a7; box-shadow: 0 0 0 0.25rem rgba(46, 125, 50, 0.25); }
.theme-green .nav-tabs .nav-link.active { color: #2e7d32; border-bottom-color: #2e7d32; }
.theme-green .text-primary { color: #2e7d32 !important; }
.theme-green { background-color: #f1f8f1; }

/* Theme 5: Divine Purple */
.theme-purple .navbar.bg-primary { background-color: #6a1b9a !important; }
.theme-purple .navbar.bg-dark { background-color: #38006b !important; }
.theme-purple .btn-primary { background-color: #6a1b9a; border-color: #6a1b9a; }
.theme-purple .btn-primary:hover { background-color: #4a148c; border-color: #4a148c; }
.theme-purple .dropdown-item:active { background-color: #6a1b9a; }
.theme-purple .form-control:focus, .theme-purple .form-select:focus { border-color: #ce93d8; box-shadow: 0 0 0 0.25rem rgba(106, 27, 154, 0.25); }
.theme-purple .nav-tabs .nav-link.active { color: #6a1b9a; border-bottom-color: #6a1b9a; }
.theme-purple .text-primary { color: #6a1b9a !important; }
.theme-purple { background-color: #f8f0fc; }

/* Theme 6: Ocean Blue */
.theme-ocean .navbar.bg-primary { background-color: #01579b !important; }
.theme-ocean .navbar.bg-dark { background-color: #002f6c !important; }
.theme-ocean .btn-primary { background-color: #01579b; border-color: #01579b; }
.theme-ocean .btn-primary:hover { background-color: #014f8c; border-color: #014f8c; }
.theme-ocean .dropdown-item:active { background-color: #01579b; }
.theme-ocean .form-control:focus, .theme-ocean .form-select:focus { border-color: #81d4fa; box-shadow: 0 0 0 0.25rem rgba(1, 87, 155, 0.25); }
.theme-ocean .nav-tabs .nav-link.active { color: #01579b; border-bottom-color: #01579b; }
.theme-ocean .text-primary { color: #01579b !important; }
.theme-ocean { background-color: #f0f7fc; }

/* Theme 7: Teal Serenity */
.theme-teal .navbar.bg-primary { background-color: #00695c !important; }
.theme-teal .navbar.bg-dark { background-color: #004d40 !important; }
.theme-teal .btn-primary { background-color: #00695c; border-color: #00695c; }
.theme-teal .btn-primary:hover { background-color: #004d40; border-color: #004d40; }
.theme-teal .dropdown-item:active { background-color: #00695c; }
.theme-teal .form-control:focus, .theme-teal .form-select:focus { border-color: #80cbc4; box-shadow: 0 0 0 0.25rem rgba(0, 105, 92, 0.25); }
.theme-teal .nav-tabs .nav-link.active { color: #00695c; border-bottom-color: #00695c; }
.theme-teal .text-primary { color: #00695c !important; }
.theme-teal { background-color: #f0faf8; }

/* Theme 8: Vermillion Red */
.theme-vermillion .navbar.bg-primary { background-color: #c62828 !important; }
.theme-vermillion .navbar.bg-dark { background-color: #8e0000 !important; }
.theme-vermillion .btn-primary { background-color: #c62828; border-color: #c62828; }
.theme-vermillion .btn-primary:hover { background-color: #b71c1c; border-color: #b71c1c; }
.theme-vermillion .dropdown-item:active { background-color: #c62828; }
.theme-vermillion .form-control:focus, .theme-vermillion .form-select:focus { border-color: #ef9a9a; box-shadow: 0 0 0 0.25rem rgba(198, 40, 40, 0.25); }
.theme-vermillion .nav-tabs .nav-link.active { color: #c62828; border-bottom-color: #c62828; }
.theme-vermillion .text-primary { color: #c62828 !important; }
.theme-vermillion { background-color: #fef2f2; }

/* Theme 9: Indigo Night */
.theme-indigo .navbar.bg-primary { background-color: #283593 !important; }
.theme-indigo .navbar.bg-dark { background-color: #1a237e !important; }
.theme-indigo .btn-primary { background-color: #283593; border-color: #283593; }
.theme-indigo .btn-primary:hover { background-color: #1a237e; border-color: #1a237e; }
.theme-indigo .dropdown-item:active { background-color: #283593; }
.theme-indigo .form-control:focus, .theme-indigo .form-select:focus { border-color: #9fa8da; box-shadow: 0 0 0 0.25rem rgba(40, 53, 147, 0.25); }
.theme-indigo .nav-tabs .nav-link.active { color: #283593; border-bottom-color: #283593; }
.theme-indigo .text-primary { color: #283593 !important; }
.theme-indigo { background-color: #f0f1fa; }

/* Theme 10: Copper Earth */
.theme-copper .navbar.bg-primary { background-color: #6d4c41 !important; }
.theme-copper .navbar.bg-dark { background-color: #4e342e !important; }
.theme-copper .btn-primary { background-color: #6d4c41; border-color: #6d4c41; }
.theme-copper .btn-primary:hover { background-color: #4e342e; border-color: #4e342e; }
.theme-copper .dropdown-item:active { background-color: #6d4c41; }
.theme-copper .form-control:focus, .theme-copper .form-select:focus { border-color: #bcaaa4; box-shadow: 0 0 0 0.25rem rgba(109, 76, 65, 0.25); }
.theme-copper .nav-tabs .nav-link.active { color: #6d4c41; border-bottom-color: #6d4c41; }
.theme-copper .text-primary { color: #6d4c41 !important; }
.theme-copper { background-color: #faf5f3; }


/* ===== THEME PREVIEW CARDS ===== */
.theme-preview-card {
    cursor: pointer;
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.2s ease;
    position: relative;
}
.theme-preview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
.theme-preview-card.selected {
    border-color: #198754;
    border-width: 3px;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.25);
}
.theme-preview-card .preview-header,
.theme-preview-card .preview-menu,
.theme-preview-card .preview-body,
.theme-preview-card .preview-btn,
.theme-preview-card .preview-card-box,
.theme-preview-card .theme-name {
    pointer-events: none;
}
.theme-preview-card .preview-header {
    height: 28px;
    display: flex;
    align-items: center;
    padding: 0 8px;
}
.theme-preview-card .preview-header span {
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
}
.theme-preview-card .preview-menu {
    height: 16px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    gap: 8px;
}
.theme-preview-card .preview-menu span {
    color: rgba(255,255,255,0.8);
    font-size: 0.5rem;
}
.theme-preview-card .preview-body {
    height: 50px;
    padding: 6px 8px;
    display: flex;
    gap: 4px;
}
.theme-preview-card .preview-btn {
    height: 14px;
    width: 40px;
    border-radius: 2px;
    border: none;
}
.theme-preview-card .preview-card-box {
    flex: 1;
    background: #fff;
    border-radius: 3px;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.1);
}
.theme-preview-card .theme-name {
    text-align: center;
    padding: 6px 4px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #fff;
    border-top: 1px solid #dee2e6;
}
.theme-preview-card.selected .theme-name {
    background: #d1e7dd;
    color: #0f5132;
}
