/* ================================================
   THEME 1: Modern Store Theme
   ================================================ */

:root {
    --color-primary: #ab27f4;
    --color-secondary: #f59e0b;
    --color-bg: #f5f5f5;
    --color-text: #1a1a1a;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
    --radius-card: 16px;
    --radius-btn: 28px;
}

/* ============================================
   RESET & BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Tajawal', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    -webkit-user-drag: none;
    user-drag: none;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-secondary);
}

/* ============================================
   HERO SLIDER
   ============================================ */
.carousel-item img {
    border-radius: 0;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0,0,0,0.4);
    border-radius: 50%;
    padding: 20px;
    background-size: 50%;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: rgba(0,0,0,0.6);
    transform: scale(1.1);
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
}

.carousel-indicators .active {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* ============================================
   CARDS - Glassmorphism
   ============================================ */
.card {
    border: none;
    border-radius: var(--radius-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    background: rgba(255,255,255,0.12) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-primary) !important;
}

.card-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.card-body {
    background: transparent !important;
}

.card-header {
    background: rgba(255,255,255,0.08) !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
}

.btn-primary:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: scale(1.02);
    color: white;
}

.btn-secondary {
    background: var(--color-secondary) !important;
    border: none !important;
    color: white !important;
    transition: all 0.2s;
    border-radius: 50px !important;
    font-weight: 600;
}

.btn-secondary:hover {
    transform: scale(1.02);
    opacity: 0.9;
    color: white !important;
}

.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-outline-secondary {
    border-color: var(--color-secondary) !important;
    color: var(--color-secondary) !important;
    transition: all 0.2s;
    border-radius: 50px !important;
}

.btn-outline-secondary:hover {
    background: var(--color-secondary) !important;
    color: white !important;
}

/* ============================================
   MODAL - Glassmorphism
   ============================================ */
.modal-content {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 24px !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid rgba(200, 200, 200, 0.2) !important;
}

.modal-footer {
    border-top: 1px solid rgba(200, 200, 200, 0.2) !important;
}

.btn-close {
    background: rgba(239, 68, 68, 0.1) !important;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: all 0.2s;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
}

.btn-close:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    transform: rotate(90deg);
}

/* ============================================
   FORMS
   ============================================ */
.form-control {
    background: rgba(200, 200, 200, 0.1) !important;
    border: 1px solid rgba(200, 200, 200, 0.25) !important;
    border-radius: 20px !important;
    color: #1a1a2e !important;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: #1a1a2e !important;
}

.form-control::placeholder {
    color: #9ca3af;
}

.form-control:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
}

/* ============================================
   SECTION DIVIDER
   ============================================ */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0 25px 0;
    gap: 16px;
}

.section-divider-line {
    flex: 1;
    height: 2px;
    max-width: 120px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0.3;
}

.section-divider-icon {
    color: var(--color-primary);
    font-size: 20px;
    opacity: 0.6;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: var(--color-primary) !important;
    margin-top: 2rem;
    color: white;
    padding: 16px 0;
    text-align: center;
    font-size: 14px;
}

footer p {
    opacity: 0.9;
    margin: 0;
}

.footer-minimal {
    background: var(--color-primary);
    color: white;
    padding: 16px 0;
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    border-radius: var(--radius-card);
    border: none !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.alert-success {
    background: rgba(46, 160, 67, 0.15) !important;
    color: #2ea043 !important;
    border-left: 4px solid #2ea043 !important;
}

.alert-danger {
    background: rgba(248, 81, 73, 0.15) !important;
    color: #f85149 !important;
    border-left: 4px solid #f85149 !important;
}

.alert-info {
    background: rgba(139, 92, 246, 0.15) !important;
    color: #8b5cf6 !important;
    border-left: 4px solid #8b5cf6 !important;
}

.alert-warning {
    background: rgba(210, 153, 34, 0.15) !important;
    color: #d29922 !important;
    border-left: 4px solid #d29922 !important;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    border-radius: 20px;
    font-weight: 600;
    padding: 4px 12px;
}

.badge-primary {
    background: var(--color-primary) !important;
    color: white !important;
}

.badge-secondary {
    background: var(--color-secondary) !important;
    color: white !important;
}

.badge-success {
    background: rgba(46, 160, 67, 0.2) !important;
    color: #2ea043 !important;
}

.badge-danger {
    background: rgba(248, 81, 73, 0.2) !important;
    color: #f85149 !important;
}

.badge-warning {
    background: rgba(210, 153, 34, 0.2) !important;
    color: #d29922 !important;
}

.badge-info {
    background: rgba(139, 92, 246, 0.2) !important;
    color: #8b5cf6 !important;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination .page-link {
    border-radius: 8px;
    border: 1px solid rgba(200, 200, 200, 0.2);
    background: rgba(200, 200, 200, 0.08);
    color: var(--color-text);
    transition: all 0.2s ease;
    font-size: 13px;
    padding: 6px 12px;
}

.pagination .page-link:hover {
    background: rgba(200, 200, 200, 0.15);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.pagination .page-item.active .page-link {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.pagination .page-item.disabled .page-link {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .carousel-item img {
        max-height: 200px !important;
        object-fit: cover;
    }
    
    .card-title {
        font-size: 0.85rem;
    }
    
    .navbar-brand span {
        font-size: 0.9rem;
    }
    
    .modal-content {
        border-radius: 16px !important;
    }
}

@media (max-width: 480px) {
    .modal-content {
        border-radius: 14px !important;
    }
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */
html.dark {
    --color-bg: #1a1a2e;
    --color-text: #e6e6e6;
}

html.dark .card {
    background: rgba(30, 30, 50, 0.8) !important;
    color: #e6e6e6;
    border-color: rgba(255,255,255,0.08) !important;
}

html.dark .card .text-secondary {
    color: #a0a0b8 !important;
}

html.dark .form-control {
    background: rgba(30, 30, 50, 0.6) !important;
    border-color: rgba(255,255,255,0.1) !important;
    color: #e6e6e6 !important;
}

html.dark .form-control:focus {
    background: rgba(40, 40, 60, 0.8) !important;
    color: #e6e6e6 !important;
}

html.dark .modal-content {
    background: rgba(30, 30, 50, 0.95) !important;
    border-color: rgba(255,255,255,0.08) !important;
    color: #e6e6e6 !important;
}

html.dark .modal-header,
html.dark .modal-footer {
    border-color: rgba(255,255,255,0.06) !important;
}

html.dark .btn-close {
    color: #f87171 !important;
    border-color: rgba(248, 113, 113, 0.2) !important;
}

html.dark .pagination .page-link {
    background: rgba(30, 30, 50, 0.6);
    border-color: rgba(255,255,255,0.08);
    color: #e6e6e6;
}

html.dark .pagination .page-link:hover {
    background: rgba(50, 50, 80, 0.8);
    border-color: var(--color-primary);
}

html.dark .alert-success {
    background: rgba(46, 160, 67, 0.2) !important;
}

html.dark .alert-danger {
    background: rgba(248, 81, 73, 0.2) !important;
}

html.dark .alert-info {
    background: rgba(139, 92, 246, 0.2) !important;
}

html.dark .alert-warning {
    background: rgba(210, 153, 34, 0.2) !important;
}