/* Custom Styles for Salon Management System */

:root {
    --primary-color: #d63384;
    --secondary-color: #f8bbd9;
    --accent-color: #ff4081;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Global button fixes for consistent styling */
.btn-outline-secondary {
    background-color: white;
    border-color: #6c757d;
    color: #6c757d;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-outline-secondary:active {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

/* Top Bar Styles */
.top-bar {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
}

.social-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Main Navigation Styles */
.main-navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-top: 2px;
}

.main-navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(255,255,255,0.98) !important;
}

/* Brand Styles */
.brand-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.brand-logo {
    height: 50px;
    width: auto;
    margin-right: 1rem;
    border-radius: 8px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: 'Great Vibes', cursive;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--primary-color);
    margin: 0;
    line-height: 1;
}

.brand-tagline {
    font-size: 0.75rem;
    color: #6c757d;
    margin: 0;
    font-style: italic;
    line-height: 1.4;
}

/* Navigation Links */
.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: #2c3e50 !important;
    padding: 0.75rem 1.25rem;
    margin: 0 0.25rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(214, 51, 132, 0.1);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    color: var(--button-text) !important;
    background: var(--button-bg);
}

/* Cart Link Styles */
.cart-link {
    position: relative;
    padding: 0.75rem 1rem !important;
}

.cart-link i {
    font-size: 1.2rem;
}

.cart-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    border: 2px solid white;
}

/* User Menu Styles */
.user-menu {
    background: rgba(214, 51, 132, 0.1);
    border-radius: 25px;
}

.user-dropdown {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.user-dropdown .dropdown-item {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.user-dropdown .dropdown-item:hover {
    background: rgba(214, 51, 132, 0.1);
    color: var(--primary-color);
}

/* Login/Register Buttons */
.login-link {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.register-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-left: 0.5rem;
    background: var(--button-bg);
    border: none;
    transition: all 0.3s ease;
    color: var(--button-text);
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--primary-rgba-20);
    background: var(--button-hover);
    color: var(--button-text);
}

/* Mobile Navbar Toggle */
.navbar-toggler {
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(214, 51, 132, 0.1);
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Fix mobile dropdown dark overlay */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: white !important;
    }
    
    .navbar-nav {
        background: transparent !important;
    }
    
    .navbar-nav .nav-link {
        background: rgba(248, 249, 250, 0.8) !important;
        color: #2c3e50 !important;
    }
    
    .dropdown-menu {
        background: white !important;
        position: relative !important;
        transform: none !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        border: 1px solid rgba(214, 51, 132, 0.1);
        border-radius: 12px;
        margin-top: 0.5rem;
        display: block;
        width: 100%;
    }
    
    .dropdown-item {
        background: white !important;
        color: #2c3e50 !important;
        padding: 0.75rem 1.5rem;
        display: block;
        width: 100%;
        border: none;
    }
    
    .dropdown-item:hover {
        background: rgba(214, 51, 132, 0.1) !important;
        color: var(--primary-color) !important;
    }
    
    .dropdown-menu.show {
        display: block !important;
    }
    
    /* Ensure all buttons in mobile view have white background */
    .btn-outline-secondary {
        background: white !important;
        color: #6c757d !important;
        border-color: #6c757d !important;
    }
    
    .btn-outline-secondary:hover,
    .btn-outline-secondary:focus,
    .btn-outline-secondary:active {
        background: #6c757d !important;
        color: white !important;
        border-color: #6c757d !important;
    }
}

/* Enhanced Mobile Responsive Design */
@media (max-width: 991.98px) {
    /* Prevent horizontal scrolling */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    .container {
        max-width: 100%;
        padding: 0 15px;
        margin: 0 auto;
    }
    
    /* Top Bar Mobile Optimization */
    .top-bar {
        font-size: 0.75rem;
        padding: 0.5rem 0;
        text-align: center;
    }
    
    .top-bar .container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    .top-bar .col-md-8,
    .top-bar .col-md-4 {
        text-align: center;
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .top-bar .d-flex {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .top-bar span {
        font-size: 0.7rem;
        margin-right: 0 !important;
    }
    
    .social-links {
        justify-content: center;
        gap: 0.5rem;
    }
    
    .social-link {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    /* Navigation Mobile Optimization */
    .main-navbar {
        padding: 0.75rem 0;
        position: fixed;
        top: 0;
        z-index: 1050;
        background: rgba(255,255,255,0.98) !important;
        backdrop-filter: blur(15px);
        box-shadow: 0 2px 20px rgba(0,0,0,0.1);
        width: 100%;
        left: 0;
    }
    
    .main-navbar .container {
        padding: 0 15px;
        max-width: 100%;
        margin: 0 auto;
    }
    
    /* Brand Mobile Optimization */
    .brand-container {
        align-items: center;
        justify-content: flex-start;
        width: auto;
        max-width: calc(100vw - 120px);
    }
    
    .brand-logo {
        height: 40px;
        margin-right: 0.75rem;
        flex-shrink: 0;
    }
    
    .brand-text {
        overflow: hidden;
    }
    
    .brand-name {
        font-size: 1.3rem;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .brand-tagline {
        font-size: 0.65rem;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Mobile Menu Toggle */
    .navbar-toggler {
        padding: 0.4rem 0.6rem;
        border: 2px solid rgba(214, 51, 132, 0.2);
        border-radius: 8px;
        background: rgba(214, 51, 132, 0.05);
        transition: all 0.3s ease;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(214, 51, 132, 0.25);
    }
    
    .navbar-toggler:hover {
        background: rgba(214, 51, 132, 0.1);
        border-color: rgba(214, 51, 132, 0.3);
    }
    
    /* Mobile Navigation Menu */
    .navbar-collapse {
        background: white;
        border-radius: 15px;
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        border: 1px solid rgba(214, 51, 132, 0.1);
        width: 100%;
        max-width: 100%;
        text-align: center;
    }
    
    .navbar-nav {
        text-align: center;
        gap: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
        padding: 0.75rem 1.5rem;
        border-radius: 12px;
        font-weight: 500;
        transition: all 0.3s ease;
        background: rgba(248, 249, 250, 0.8);
        border: 1px solid transparent;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(214, 51, 132, 0.1);
        border-color: rgba(214, 51, 132, 0.2);
        transform: translateY(-1px);
    }
    
    .navbar-nav .nav-link.active {
        background: var(--button-bg);
        color: var(--button-text) !important;
        box-shadow: 0 4px 15px rgba(214, 51, 132, 0.3);
    }
    
    /* Cart Link Mobile */
    .cart-link {
        background: rgba(214, 51, 132, 0.1);
        border-radius: 12px;
        margin: 0.5rem 0;
        position: relative;
    }
    
    .cart-badge {
        top: 0.5rem;
        right: 0.5rem;
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
    }
    
    /* User Menu Mobile */
    .user-menu {
        background: rgba(214, 51, 132, 0.1);
        border-radius: 12px;
        margin: 0.5rem 0;
    }
    
    .user-dropdown {
        position: static !important;
        transform: none !important;
        box-shadow: none;
        border: 1px solid rgba(214, 51, 132, 0.1);
        border-radius: 12px;
        margin-top: 0.5rem;
    }
    
    /* Auth Buttons Mobile */
    .login-link {
        background: rgba(214, 51, 132, 0.1);
        border-radius: 12px;
        margin: 0.25rem 0;
    }
    
    .register-btn {
        margin: 0.5rem 0;
        padding: 0.75rem 2rem;
        font-size: 0.9rem;
        border-radius: 25px;
        box-shadow: 0 4px 15px rgba(214, 51, 132, 0.3);
    }
    
    /* Content Spacing */
    .main-content {
        margin-top: 80px;
        padding: 1rem 15px;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    /* Hero Section Mobile */
    .hero-section {
        padding: 60px 0 40px;
        margin-top: 0;
    }
    
    .hero-title {
        font-size: 4rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Cards Mobile */
    .card {
        margin-bottom: 1.5rem;
        border-radius: 12px;
    }
    
    .service-card {
        margin-bottom: 1.5rem;
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Buttons Mobile */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        border-radius: 25px;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    /* Admin page body fix */
    body.admin-page {
        padding-top: 70px !important;
    }
    
    /* Force mobile sidebar toggle below header */
    .mobile-sidebar-toggle {
        top: 90px !important;
    }
    
    /* Tablet Specific Adjustments */
    .container {
        padding: 0 1rem;
    }
    
    .row {
        margin: 0 -0.5rem;
    }
    
    .col, [class*="col-"] {
        padding: 0 0.5rem;
    }
    
    /* Admin Sidebar Mobile */
    .admin-page .admin-sidebar {
        transform: translateX(-100%);
        width: 280px;
        z-index: 1055;
        top: 80px;
        height: calc(100vh - 80px);
        box-shadow: 4px 0 30px rgba(0,0,0,0.2);
        position: fixed;
    }
    
    .admin-page .admin-sidebar.show {
        transform: translateX(0);
    }
    
    .admin-page .main-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        padding: 1rem;
    }
    
    .admin-page .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.6);
        z-index: 1050;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(2px);
    }
    
    .admin-page .sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }
    
    .admin-page .mobile-sidebar-toggle {
        display: block !important;
        position: fixed;
        top: 90px;
        left: 1rem;
        z-index: 1060;
        background: linear-gradient(135deg, #2c3e50, #34495e);
        color: white;
        border: none;
        padding: 0.75rem;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        transition: all 0.3s ease;
    }
    
    .admin-page .mobile-sidebar-toggle:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 25px rgba(0,0,0,0.4);
    }
    
    .admin-page .mobile-admin-header {
        display: none !important;
    }
    
    .admin-page .admin-sidebar:not(.show) .sidebar-toggle {
        display: none !important;
    }
    
    .admin-page .admin-sidebar.show .sidebar-toggle {
        display: block !important;
    }
    
    /* Tables Mobile */
    .table-responsive {
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
        white-space: nowrap;
    }
    
    /* Forms Mobile */
    .form-control,
    .form-select {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .form-label {
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    /* Modal Mobile */
    .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
    
    .modal-content {
        border-radius: 15px;
    }
    
    /* Stats Cards Mobile */
    .stats-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    .stats-label {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    /* Small Mobile Devices */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    /* Force mobile sidebar toggle below header on small screens */
    .mobile-sidebar-toggle {
        top: 90px !important;
    }
    
    .container {
        padding: 0 15px;
        max-width: 100%;
        margin: 0 auto;
    }
    
    /* Top Bar Small Mobile */
    .top-bar {
        padding: 0.25rem 0;
        font-size: 0.7rem;
    }
    
    .top-bar .d-flex {
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }
    
    .top-bar span {
        font-size: 0.65rem;
        display: block;
        margin-bottom: 0.25rem;
    }
    
    .social-links {
        margin-top: 0.25rem;
    }
    
    .social-link {
        width: 24px;
        height: 24px;
        font-size: 0.7rem;
    }
    
    /* Brand Small Mobile */
    .brand-container {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        max-width: calc(100vw - 100px);
        width: auto;
    }
    
    .brand-logo {
        height: 35px;
        margin-right: 0.5rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .brand-name {
        font-size: 1.1rem;
        line-height: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .brand-tagline {
        font-size: 0.6rem;
        line-height: 1.1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Navigation Small Mobile */
    .main-navbar {
        padding: 0.5rem 0;
        width: 100%;
    }
    
    .navbar-collapse {
        margin-top: 0.75rem;
        padding: 0.75rem;
        border-radius: 12px;
        width: 100%;
        max-width: 100%;
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        margin: 0.2rem 0;
        text-align: center;
        width: 100%;
    }
    
    .register-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.85rem;
    }
    
    /* Content Small Mobile */
    .main-content {
        margin-top: 70px;
        padding: 15px;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    /* Hero Section Small Mobile */
    .hero-section {
        padding: 40px 0 30px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
        line-height: 1.1;
    }
    
    .hero-welcome {
        font-size: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
        line-height: 1.4;
    }
    
    /* Cards Small Mobile */
    .card {
        border-radius: 10px;
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .service-card {
        padding: 1.25rem;
        text-align: center;
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    /* Buttons Small Mobile */
    .btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
        border-radius: 20px;
    }
    
    .btn-lg {
        padding: 0.8rem 1.75rem;
        font-size: 0.9rem;
    }
    
    /* Forms Small Mobile */
    .form-control,
    .form-select {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
        border-radius: 8px;
    }
    
    .form-label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    /* Admin Small Mobile */
    .admin-sidebar {
        width: 100%;
        max-width: 300px;
    }
    
    .mobile-sidebar-toggle {
        padding: 0.6rem;
        top: 10000px;
        left: 0.75rem;
    }
    
    .main-content {
        padding: 0.5rem;
    }
    
    /* Tables Small Mobile */
    .table {
        font-size: 0.75rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
    }
    
    /* Stats Small Mobile */
    .stats-card {
        padding: 1rem;
    }
    
    .stats-number {
        font-size: 1.5rem;
    }
    
    .stats-label {
        font-size: 0.75rem;
    }
    
    /* Modal Small Mobile */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    
    /* Typography Small Mobile */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.9rem; }
    
    .display-1 { font-size: 3rem; }
    .display-2 { font-size: 2.5rem; }
    .display-3 { font-size: 2rem; }
    .display-4 { font-size: 1.75rem; }
    .display-5 { font-size: 1.5rem; }
    .display-6 { font-size: 1.25rem; }
    
    .lead {
        font-size: 1rem;
        font-weight: 400;
    }
}

/* Touch-Friendly Improvements */
@media (hover: none) and (pointer: coarse) {
    /* Touch devices */
    .btn,
    .nav-link,
    .card,
    .form-control,
    .form-select {
        min-height: 44px;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1.5rem;
        margin: 0.25rem 0;
    }
    
    .social-link {
        min-width: 44px;
        min-height: 44px;
    }
    
    .cart-link {
        min-width: 44px;
        min-height: 44px;
    }
    

    
    /* Focus states for accessibility */
    .btn:focus,
    .nav-link:focus,
    .form-control:focus,
    .form-select:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Landscape Mobile Optimization */
@media (max-width: 896px) and (orientation: landscape) {
    .hero-section {
        padding: 30px 0 20px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .main-navbar {
        padding: 0.4rem 0;
    }
    
    .brand-logo {
        height: 30px;
    }
    
    .brand-name {
        font-size: 1rem;
    }
    
    .brand-tagline {
        font-size: 0.55rem;
    }
}

/* High DPI Display Optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .brand-logo,
    .service-icon,
    .social-link {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support for Mobile */
@media (prefers-color-scheme: dark) {
    @media (max-width: 768px) {
        .navbar-collapse {
            background: #2c3e50;
            border-color: rgba(255,255,255,0.1);
        }
        
        .navbar-nav .nav-link {
            color: rgba(255,255,255,0.9) !important;
            background: rgba(255,255,255,0.05);
        }
        
        .navbar-nav .nav-link:hover {
            background: rgba(214, 51, 132, 0.2);
        }
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #fdf2f8 0%, #f3e8ff 50%, #fef7ff 100%);
    color: #2c3e50;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

/* Call to Action */
.cta-section {
    background: linear-gradient(135deg, #fdf2f8 0%, #f3e8ff 50%, #fef7ff 100%);
    color: #2c3e50;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Great Vibes', cursive;
    font-size: 8rem;
    font-weight: 400;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero-welcome {
    font-family: 'Great Vibes', cursive;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Buttons */
.btn-primary {
    background: var(--button-bg);
    border: none;
    color: var(--button-text);
    font-weight: 500;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--primary-rgba-20);
    color: var(--button-text);
}

.btn-outline-primary {
    background: var(--button-bg);
    border: none;
    color: var(--button-text);
    font-weight: 500;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--primary-rgba-20);
    color: var(--button-text);
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Service Cards */
.service-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--button-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--button-text);
    font-size: 2rem;
}

/* Product Cards */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(253, 242, 248, 0.9) 0%, rgba(243, 232, 255, 0.9) 50%, rgba(254, 247, 255, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.price-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
}

/* Forms */
.form-control {
    border-radius: 10px;
    border: 2px solid #2c3e50;
    padding: 12px 15px;
    transition: all 0.3s ease;
    background: white !important;
}

.form-select {
    background: white !important;
    border: 2px solid #2c3e50;
}

.products-page .form-control,
.products-page .form-select {
    background: white !important;
    border: 2px solid #2c3e50;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(233, 30, 99, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Modern Admin Styles */
.admin-sidebar {
    background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
    min-height: calc(100vh - 120px);
    padding: 0;
    transition: all 0.3s ease;
    position: fixed;
    top: 120px;
    left: 0;
    width: 200px;
    z-index: 1000;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
    overflow: hidden;
    box-sizing: border-box;
}

@media (min-width: 769px) {
    .admin-sidebar {
        top: 114px;
        min-height: calc(100vh - 115px);
    }
}

.sidebar-header {
    padding: 1.5rem 1rem 1rem;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sidebar-toggle {
    position: relative;
    top: auto;
    right: auto;
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.5rem auto 0;
}

.admin-sidebar.collapsed .sidebar-toggle {
    margin: 0.5rem auto 0;
    align-self: center;
}

.sidebar-toggle:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.sidebar-brand {
    transition: all 0.3s ease;
    text-align: center;
    margin-top: 0.5rem;
}

.sidebar-brand img {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.sidebar-brand h6 {
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
    font-size: 0.8rem;
}

.admin-nav-link {
    color: rgba(255,255,255,0.8);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0.2rem 0.5rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    font-size: 0.85rem;
    max-width: calc(100% - 1rem);
    box-sizing: border-box;
}

.admin-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.admin-nav-link:hover::before {
    left: 100%;
}

.admin-nav-link:hover {
    color: white;
    background: rgba(214, 51, 132, 0.2);
    backdrop-filter: blur(10px);
}

.admin-nav-link.active {
    color: white;
    background: var(--primary-rgba-30);
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--primary-color);
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.admin-nav-link.active i {
    background: var(--primary-rgba-20);
    border-radius: 6px;
    color: white;
}

.admin-nav-link i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.admin-nav-link span {
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logout-btn:hover {
    background: rgba(220, 53, 69, 0.2) !important;
    color: #ff6b6b !important;
}

/* Collapsed sidebar styles */
.admin-sidebar.collapsed {
    width: 60px !important;
    min-width: 60px;
}

.admin-sidebar.collapsed .sidebar-brand {
    transform: scale(0.8);
}

.admin-sidebar.collapsed .sidebar-brand h6 {
    display: none;
}

.admin-sidebar.collapsed .admin-nav-link {
    padding: 0.75rem 0.5rem;
    justify-content: center;
    margin: 0.2rem 0.25rem;
}

.admin-sidebar.collapsed .admin-nav-link i {
    margin-right: 0;
}

.admin-sidebar.collapsed .admin-nav-link span {
    display: none;
}

.admin-sidebar.collapsed hr {
    margin: 0.5rem 1rem;
}

.main-content {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0;
    min-height: 100vh;
    margin-left: 200px;
    margin-right: 5rem;
    padding: 2rem;
}

.main-content.expanded {
    margin-left: 60px;
    margin-right: 5rem;
}

/* Admin Layout Adjustments */
.container-fluid .row .col-md-9,
.container-fluid .row .col-lg-10 {
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: none;
}



/* Tooltip for collapsed sidebar */
.admin-sidebar.collapsed .admin-nav-link {
    position: relative;
}

.admin-sidebar.collapsed .admin-nav-link:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 15px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    white-space: nowrap;
    z-index: 1000;
    font-size: 0.875rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.admin-sidebar.collapsed .admin-nav-link:hover::before {
    content: '';
    position: absolute;
    left: calc(100% + 5px);
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid rgba(0,0,0,0.9);
    z-index: 1001;
}

/* Stats Cards */
.stats-card {
    background: var(--button-bg);
    color: var(--button-text);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: rotate(45deg);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Cart Styles */
.cart-item {
    border-bottom: 1px solid #e9ecef;
    padding: 1rem 0;
}

.cart-item:last-child {
    border-bottom: none;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #dee2e6;
    background: white;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Payment Methods */
.payment-method {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: white;
    position: relative;
    overflow: hidden;
}

.payment-method::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(214, 51, 132, 0.1), transparent);
    transition: left 0.5s ease;
}

.payment-method:hover::before {
    left: 100%;
}

.payment-method:hover,
.payment-method.active {
    border-color: var(--primary-color);
    background-color: rgba(214, 51, 132, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(214, 51, 132, 0.15);
}

.payment-method.active {
    border-width: 3px;
    background: linear-gradient(135deg, rgba(214, 51, 132, 0.1), rgba(214, 51, 132, 0.05));
}

.payment-method i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.payment-method:hover i,
.payment-method.active i {
    transform: scale(1.1);
    color: var(--accent-color);
}

.payment-method h6 {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.payment-method.active h6 {
    color: var(--primary-color);
}

.payment-method small {
    color: #6c757d;
    font-size: 0.8rem;
    line-height: 1.3;
}

/* Stripe Elements Styling */
#stripe-card-element {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: white;
    transition: all 0.3s ease;
}

#stripe-card-element:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(214, 51, 132, 0.25);
}

#stripe-card-errors {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Payment Fields Animation */
.payment-fields {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Checkout Button */
.checkout-form .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.checkout-form .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.checkout-form .btn-primary:hover::before {
    left: 100%;
}

.checkout-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(214, 51, 132, 0.3);
}

/* Security Badges */
.security-badges .card {
    background: transparent;
    border: none;
}

.security-badges i {
    transition: all 0.3s ease;
}

.security-badges .card:hover i {
    transform: scale(1.1);
}

/* Mobile Responsive Payment Methods */
@media (max-width: 768px) {
    .payment-method {
        padding: 1rem 0.75rem;
        margin-bottom: 1rem;
    }
    
    .payment-method i {
        font-size: 2rem;
    }
    
    .payment-method h6 {
        font-size: 0.9rem;
    }
    
    .payment-method small {
        font-size: 0.75rem;
    }
}

/* Cart Page Modal Fixes - Ensure consistent white background */
.modal-content {
    background-color: white !important;
}

.modal-header {
    background-color: white !important;
}

.modal-body {
    background-color: white !important;
}

.modal-footer {
    background-color: white !important;
}

/* Order History and Receipt Modal Button Fixes */
.btn-outline-secondary {
    background-color: white !important;
    border-color: #6c757d !important;
    color: #6c757d !important;
}

.btn-outline-secondary:hover {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: white !important;
}

/* Mobile specific modal fixes */
@media (max-width: 768px) {
    .modal-dialog {
        background-color: white !important;
    }
    
    .modal-content {
        background-color: white !important;
        border: none;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        background-color: white !important;
        color: #333 !important;
    }
    
    .btn-outline-secondary {
        background-color: white !important;
        color: #6c757d !important;
        border-color: #6c757d !important;
    }
    
    .btn-outline-secondary:hover,
    .btn-outline-secondary:focus,
    .btn-outline-secondary:active {
        background-color: #6c757d !important;
        color: white !important;
        border-color: #6c757d !important;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Tablet Landscape Optimization (1024x824) */
@media (min-width: 992px) and (max-width: 1200px) {
    .container {
        max-width: 95%;
        padding: 0 1.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 6rem;
    }
    
    .admin-sidebar {
        width: 180px;
    }
    
    .main-content {
        margin-left: 180px;
        margin-right: 2rem;
    }
    
    .main-content.expanded {
        margin-left: 60px;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .table {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .service-card {
        margin-bottom: 2rem;
    }
    
    .admin-sidebar {
        transform: translateX(-100%);
        width: 280px;
        z-index: 1050;
    }
    
    .admin-sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 1rem;
    }
    
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }
    
    .mobile-sidebar-toggle {
        display: block;
        position: fixed;
        top: 90px;
        left: 1rem;
        z-index: 1060;
        background: #2c3e50;
        color: white;
        border: none;
        padding: 0.75rem;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }
}

.mobile-sidebar-toggle {
    display: none;
}

@media (max-width: 991.98px) {
    .admin-page .mobile-sidebar-toggle {
        display: block !important;
        position: fixed;
        top: 90px;
        left: 1rem;
        z-index: 1070;
        background: #2c3e50;
        color: white;
        border: none;
        padding: 0.75rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .admin-page .admin-sidebar.show .mobile-sidebar-toggle {
        left: calc(280px - 3rem);
    }
    
    .products-page .form-control,
    .products-page .form-select {
        color: black !important;
    }
    
    .products-page .form-select option {
        color: black !important;
        background: white !important;
    }
    
    .products-page select {
        color: black !important;
    }
    
    .products-page select option:not(:checked) {
        color: black !important;
        background-color: white !important;
    }
    
    .products-page select option {
        color: black !important;
        background-color: white !important;
    }
}

@media (max-width: 768px) {
    .mobile-sidebar-toggle {
        display: block !important;
        position: fixed;
        top: 90px;
        left: 1rem;
        z-index: 1060;
        background: linear-gradient(135deg, #2c3e50, #34495e);
        color: white;
        border: none;
        padding: 0.75rem;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        transition: all 0.3s ease;
    }
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.shadow-custom {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1) !important;
}

.rounded-custom {
    border-radius: 15px !important;
}

/* Table Styles */
.table-custom {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.table-custom th {
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: 500;
}

.table-custom td {
    border-color: #f8f9fa;
    vertical-align: middle;
}

/* Badge Styles */
.badge-status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 500;
}

.badge-pending {
    background-color: var(--warning-color);
    color: #333;
}

.badge-confirmed {
    background-color: var(--info-color);
    color: white;
}

.badge-completed {
    background-color: var(--success-color);
    color: white;
}

.badge-cancelled {
    background-color: var(--danger-color);
    color: white;
}

/* Settings Page Styles */
.nav-tabs .nav-link {
    border-radius: 10px 10px 0 0;
    border: none;
    background: #f8f9fa;
    color: #6c757d;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    background: #e9ecef;
    color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tab-content {
    background: white;
    border-radius: 0 10px 10px 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.settings-section {
    margin-bottom: 2rem;
}

.settings-section h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f8f9fa;
}

.form-control-color {
    width: 60px;
    height: 40px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(233, 30, 99, 0.25);
}

/* Feature Toggle Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.feature-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: var(--primary-color);
    background: rgba(233, 30, 99, 0.05);
}

.feature-item .form-check-input:checked + .form-check-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* Maintenance Mode Alert */
.maintenance-alert {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 1rem;
}

.maintenance-alert .alert-heading {
    font-weight: 600;
}

/* Color Picker Preview */
.color-preview {
    width: 100%;
    height: 40px;
    border-radius: 10px;
    margin-top: 0.5rem;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Color input styling */
input[pattern="^#[0-9A-Fa-f]{6}$"] {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    text-transform: uppercase;
}

input[pattern="^#[0-9A-Fa-f]{6}$"]:focus {
    box-shadow: 0 0 0 0.2rem rgba(214, 51, 132, 0.25);
}

input[pattern="^#[0-9A-Fa-f]{6}$"]:invalid {
    border-color: #dc3545;
}

input[pattern="^#[0-9A-Fa-f]{6}$"]:valid {
    border-color: #28a745;
}

.form-control-color {
    min-width: 50px;
    flex-shrink: 0;
}

/* Settings Save Button */
.settings-save-btn {
    position: sticky;
    bottom: 20px;
    z-index: 100;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

/* Responsive Settings */
@media (max-width: 768px) {
    .nav-tabs {
        flex-wrap: wrap;
    }

    .nav-tabs .nav-link {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
        margin-bottom: 5px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    /* Stack color inputs on mobile */
    .d-flex.align-items-center.gap-2 {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.5rem !important;
    }
    
    .form-control-color {
        min-width: 100%;
    }
}

/* Custom overrides for home page text colors */
.cta-section h2,
.cta-section p {
    color: black !important;
}

.btn-outline-light {
    color: black !important;
    border-color: black !important;
    background-color: transparent !important;
}

.btn-outline-light:hover {
    color: white !important;
    background-color: black !important;
    border-color: black !important;
}
/* Client-side specific pages margins (Services, Products, Transformations, Course, Contact) */
body.services-page .main-content,
body.products-page .main-content,
body.transformations-page .main-content,
body.course-page .main-content,
body.contact-page .main-content {
    margin-top: 100px;
    margin-left: 0;
}

/* Admin Body Styles */
body.admin-page {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-family: 'Poppins', sans-serif;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #d63384, #6f42c1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #c0266d, #5a32a3);
}

/* Admin Page Improvements */
.admin-page .container-fluid {
    padding: 0;
    margin: 0;
    max-width: none;
}

.admin-page .card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.admin-page .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1.5rem 2rem;
}

.admin-page .card-body {
    padding: 2rem;
}

.admin-page .table {
    width: 100%;
    margin-bottom: 0;
}

.admin-page .table th {
    background: #f8f9fa;
    border: none;
    font-weight: 600;
    color: #2c3e50;
    padding: 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-page .table td {
    padding: 1rem;
    border-color: rgba(0,0,0,0.05);
    vertical-align: middle;
}

.admin-page .table tbody tr:hover {
    background: rgba(214, 51, 132, 0.02);
}

/* Desktop Admin Table Display - Force desktop view on large screens */
@media (min-width: 769px) {
    .mobile-card-view .table-responsive {
        display: block !important;
    }
    
    .mobile-card-view .mobile-cards {
        display: none !important;
    }
    
    .admin-page .table-responsive {
        display: block !important;
        overflow-x: auto;
    }
    
    .admin-page .table {
        min-width: 100%;
        font-size: 0.9rem;
    }
    
    .admin-page .table th,
    .admin-page .table td {
        white-space: nowrap;
        padding: 0.75rem 1rem;
    }
}

/* Enhanced Product View Styles */
.product-image-container {
    position: sticky;
    top: 20px;
}

.main-image-wrapper {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.main-image-wrapper:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
    transform: translateY(-5px);
}

.product-details {
    animation: fadeInUp 0.6s ease-out;
}

.price-section {
    border: 2px solid rgba(214, 51, 132, 0.1);
    transition: all 0.3s ease;
}

.price-section:hover {
    border-color: rgba(214, 51, 132, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(214, 51, 132, 0.1);
}

.quantity-controls {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.quantity-controls input {
    background: transparent;
    font-weight: 600;
}

.quantity-controls button {
    transition: all 0.3s ease;
}

.quantity-controls button:hover {
    background: var(--primary-color) !important;
    color: white !important;
    transform: scale(1.1);
}

.action-buttons .btn {
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feature-item {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(214, 51, 132, 0.2);
}

.breadcrumb {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.breadcrumb-item a {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--accent-color);
    text-decoration: underline !important;
}

/* Responsive Product View */
@media (max-width: 991.98px) {
    .product-image-container {
        position: static;
        margin-bottom: 2rem;
    }
    
    .main-image-wrapper {
        margin-bottom: 1rem;
    }
    
    .product-details {
        margin-top: 0;
    }
}

@media (max-width: 576px) {
    .display-5 {
        font-size: 1.8rem;
    }
    
    .price-section {
        padding: 1.5rem !important;
    }
    
    .action-buttons .btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    .features-section .row {
        gap: 0.5rem;
    }
    
    .feature-item {
        padding: 1rem !important;
    }
}

/* Loading Animation for Product Images */
.main-image-wrapper img {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Badge Animations */
.badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Special Offer Badge Glow Effect */
.badge.bg-gradient {
    position: relative;
    overflow: hidden;
}

.badge.bg-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
    100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
}

/* Enhanced Product Image Display */
.product-image-container .main-image-wrapper {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-container img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 12px;
}

/* Enhanced Offer Badge */
.position-absolute .badge {
    z-index: 10;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.position-absolute .badge:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Reports Dashboard Styles */
.admin-content {
    padding: 2rem;
    background: transparent;
}

.admin-content .card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.admin-content .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.admin-content .card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    border-radius: 15px 15px 0 0 !important;
    padding: 1.5rem;
}

.admin-content .card-header h5 {
    margin: 0;
    font-weight: 600;
    color: #2c3e50;
}

.admin-content .card-body {
    padding: 1.5rem;
}

/* Stats Cards */
.col-md-2-4 .card {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    height: 100%;
}

.col-md-2-4 .card.bg-success {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
}

.col-md-2-4 .card.bg-info {
    background: linear-gradient(135deg, #17a2b8, #6f42c1) !important;
}

.col-md-2-4 .card.bg-warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14) !important;
}

.col-md-2-4 .card.bg-secondary {
    background: linear-gradient(135deg, #6c757d, #495057) !important;
}

.col-md-2-4 .card-body {
    padding: 1.5rem;
}

.col-md-2-4 .card h6 {
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.col-md-2-4 .card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
}

.col-md-2-4 .card i {
    opacity: 0.7;
}

/* Chart Containers */
canvas {
    max-height: 400px;
}

/* Table Styles in Reports */
.admin-content .table {
    margin: 0;
}

.admin-content .table th {
    background: #f8f9fa;
    border: none;
    font-weight: 600;
    color: #2c3e50;
    padding: 0.75rem;
    font-size: 0.875rem;
    border-bottom: 2px solid #dee2e6;
}

.admin-content .table td {
    padding: 0.75rem;
    border-color: rgba(0,0,0,0.05);
    vertical-align: middle;
}

.admin-content .table tbody tr:hover {
    background: rgba(214, 51, 132, 0.02);
}

/* Export Dropdown */
.dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(214, 51, 132, 0.1);
    color: var(--primary-color);
}

.dropdown-item i {
    width: 20px;
}

/* Filter Form */
.admin-content .form-select,
.admin-content .form-control {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.admin-content .form-select:focus,
.admin-content .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(214, 51, 132, 0.25);
}

.admin-content .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* Low Stock Alert */
.card.border-warning {
    border-width: 2px !important;
}

.card.border-warning .card-header {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7) !important;
    color: #856404 !important;
}

/* Badge Styles */
.badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #dc3545, #c82333) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800) !important;
    color: #212529 !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .admin-content {
        padding: 1rem;
    }
    
    .col-md-2-4 {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .col-md-2-4 .card h3 {
        font-size: 1.5rem;
    }
    
    .admin-content .card-header {
        padding: 1rem;
    }
    
    .admin-content .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}


/* Enhanced Booking Page Styles */
.booking-hero-section {
    background: linear-gradient(135deg, #fdf2f8 0%, #f3e8ff 50%, #fef7ff 100%);
    position: relative;
    overflow: hidden;
}

.booking-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="booking-grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23booking-grain)"/></svg>');
    opacity: 0.1;
}

.booking-steps {
    position: relative;
}

.booking-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.step-item {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.step-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.2rem;
    color: #6c757d;
    transition: all 0.3s ease;
    border: 3px solid white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.step-item.active .step-circle {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(214, 51, 132, 0.3);
}

.step-item.completed .step-circle {
    background: #28a745;
    color: white;
}

.step-item h6 {
    font-weight: 600;
    color: #6c757d;
    transition: color 0.3s ease;
}

.step-item.active h6 {
    color: var(--primary-color);
}

.booking-card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.booking-step {
    animation: fadeInSlide 0.5s ease-out;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.service-card {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    background: white;
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(214, 51, 132, 0.2);
}

.service-card.selected {
    border-color: var(--primary-color);
    background: rgba(214, 51, 132, 0.05);
    box-shadow: 0 8px 25px rgba(214, 51, 132, 0.25);
}

.service-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

.service-placeholder {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #6c757d;
}

.service-info {
    padding: 1rem;
}

.service-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-size: 1rem;
}

.service-description {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.service-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.service-duration {
    font-size: 0.8rem;
    color: #6c757d;
    display: flex;
    align-items: center;
}

.service-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(214, 51, 132, 0.5);
}

.service-card.selected .service-overlay {
    opacity: 1;
    transform: scale(1);
}

.time-slots {
    margin-top: 1rem;
}

.time-slots .btn-check:checked + .btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(214, 51, 132, 0.3);
}

.time-slots .btn {
    transition: all 0.3s ease;
    font-weight: 500;
}

.time-slots .btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.booking-summary {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(214, 51, 132, 0.1);
}

.summary-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
    position: relative;
}

.summary-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.summary-section h6 {
    color: #2c3e50;
    margin-bottom: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.summary-section p {
    margin-bottom: 0.5rem;
    color: #495057;
}

.booking-total {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 2px solid rgba(214, 51, 132, 0.1);
    text-align: center;
}

.total-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
    text-shadow: 0 2px 4px rgba(214, 51, 132, 0.2);
}

.input-group-text {
    background: rgba(214, 51, 132, 0.1);
    border-color: #e9ecef;
    color: var(--primary-color);
    font-weight: 500;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(214, 51, 132, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(214, 51, 132, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    border: none;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
    font-weight: 500;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background: #6c757d;
    border-color: #6c757d;
    transform: translateY(-2px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .booking-steps::before {
        display: none;
    }
    
    .booking-steps .col-md-3 {
        margin-bottom: 1rem;
    }
    
    .step-circle {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .service-card {
        margin-bottom: 1rem;
    }
    
    .booking-summary {
        padding: 1rem;
    }
    
    .total-price {
        font-size: 1.5rem;
    }
    
    .booking-card .card-body {
        padding: 1.5rem;
    }
    
    .time-slots .row {
        gap: 0.5rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .booking-hero-section .display-4 {
        font-size: 2rem;
    }
    
    .booking-hero-section .lead {
        font-size: 1rem;
    }
    
    .step-item h6 {
        font-size: 0.875rem;
    }
    
    .service-info {
        padding: 0.75rem;
    }
    
    .service-name {
        font-size: 0.9rem;
    }
    
    .service-description {
        font-size: 0.8rem;
    }
    
    .booking-summary {
        padding: 1rem;
    }
    
    .summary-section h6 {
        font-size: 0.9rem;
    }
    
    .summary-section p {
        font-size: 0.875rem;
    }
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.service-card.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Smooth transitions for step changes */
.booking-step.d-none {
    display: none !important;
}

.booking-step:not(.d-none) {
    display: block;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Enhanced form styling */
.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.form-control, .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(214, 51, 132, 0.25);
    transform: translateY(-1px);
}

/* Progress line animation */
.booking-steps::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 12.5%;
    height: 2px;
    background: var(--primary-color);
    z-index: 1;
    transition: width 0.5s ease;
    width: 0%;
}

.step-item:nth-child(1).completed ~ .booking-steps::after,
.step-item:nth-child(1).active ~ .booking-steps::after {
    width: 25%;
}

.step-item:nth-child(2).completed ~ .booking-steps::after,
.step-item:nth-child(2).active ~ .booking-steps::after {
    width: 50%;
}

.step-item:nth-child(3).completed ~ .booking-steps::after,
.step-item:nth-child(3).active ~ .booking-steps::after {
    width: 75%;
}

.step-item:nth-child(4).active ~ .booking-steps::after {
    width: 100%;
}
.edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.edit-btn:hover {
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(214, 51, 132, 0.3);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Settings Password Protection Styles */
.settings-password-card {
    background: white;
    border: none;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    overflow: hidden;
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.settings-password-card .card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-bottom: none;
    padding: 2rem;
}

.settings-password-card .card-header h4 {
    margin: 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.settings-password-card .card-body {
    padding: 2.5rem;
}

.settings-password-card .card-footer {
    background: #f8f9fa;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 2.5rem;
}

.password-icon {
    color: var(--primary-color);
    filter: drop-shadow(0 4px 8px var(--primary-rgba-30));
    animation: pulse 2s infinite;
}

.password-input-group {
    position: relative;
}

.password-input-group .input-group-text {
    background: var(--primary-rgba-10);
    border-color: #e9ecef;
    color: var(--primary-color);
    font-weight: 600;
}

.password-input-group .form-control {
    border-left: none;
    padding-left: 0;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.password-input-group .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem var(--primary-rgba-20);
}

.password-toggle-btn {
    background: transparent;
    border: 1px solid #e9ecef;
    border-left: none;
    color: #6c757d;
    transition: all 0.3s ease;
}

.password-toggle-btn:hover {
    background: var(--primary-rgba-10);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.access-settings-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: var(--button-text);
}

.access-settings-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.access-settings-btn:hover::before {
    left: 100%;
}

.access-settings-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-rgba-30);
    background: linear-gradient(135deg, var(--button-hover), var(--accent-color));
    color: var(--button-text);
}

.access-settings-btn:disabled {
    opacity: 0.7;
    transform: none;
    box-shadow: none;
}

.settings-error-alert {
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.settings-info-footer {
    font-size: 0.875rem;
    color: #6c757d;
}

.settings-info-footer i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Lock icon in sidebar */
.admin-nav-link .fa-lock {
    font-size: 0.7em;
    opacity: 0.8;
    animation: lockGlow 2s infinite alternate;
}

@keyframes lockGlow {
    from {
        text-shadow: 0 0 5px var(--primary-rgba-20);
    }
    to {
        text-shadow: 0 0 10px var(--primary-rgba-30);
    }
}

/* Settings buttons mobile spacing */
@media (max-width: 768px) {
    .mt-4 .btn {
        margin-bottom: 0.75rem;
        width: 100%;
    }
    
    .mt-4 .btn:last-child {
        margin-bottom: 0;
    }
}

/* Mobile responsiveness for password modal */
@media (max-width: 576px) {
    .settings-password-card .card-header {
        padding: 1.5rem;
    }
    
    .settings-password-card .card-body {
        padding: 1.5rem;
    }
    
    .settings-password-card .card-footer {
        padding: 1rem 1.5rem;
    }
    
    .password-icon {
        font-size: 2.5rem;
    }
    
    .access-settings-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}
/* BRANDS FILTER COMPLETE FIX */
select[name="brand"] {
    color: #000 !important;
    background-color: #fff !important;
    background: #fff !important;
    border: 2px solid #2c3e50 !important;
    -webkit-appearance: menulist !important;
    -moz-appearance: menulist !important;
    appearance: menulist !important;
    -webkit-text-fill-color: #000 !important;
    opacity: 1 !important;
}

select[name="brand"] option {
    color: #000 !important;
    background-color: #fff !important;
    background: #fff !important;
}

.form-select[name="brand"] {
    color: #000 !important;
    background-color: #fff !important;
    background: #fff !important;
    border: 2px solid #2c3e50 !important;
    -webkit-text-fill-color: #000 !important;
    opacity: 1 !important;
}

.form-select[name="brand"] option {
    color: #000 !important;
    background-color: #fff !important;
    background: #fff !important;
}

/* CART PAGE MOBILE FIXES - Complete white background enforcement */
@media (max-width: 768px) {
    /* Cart page specific fixes */
    .cart-page .btn-outline-secondary,
    .modal .btn-outline-secondary,
    #orderHistoryModal .btn-outline-secondary,
    #receiptModal .btn-outline-secondary {
        background-color: white !important;
        color: #6c757d !important;
        border-color: #6c757d !important;
    }
    
    .cart-page .btn-outline-secondary:hover,
    .modal .btn-outline-secondary:hover,
    #orderHistoryModal .btn-outline-secondary:hover,
    #receiptModal .btn-outline-secondary:hover {
        background-color: #6c757d !important;
        color: white !important;
        border-color: #6c757d !important;
    }
    
    /* Ensure modal content is always white */
    .modal-content,
    .modal-header,
    .modal-body,
    .modal-footer {
        background-color: white !important;
        color: #333 !important;
    }
    
    /* Order History button specific fix */
    button[data-bs-target="#orderHistoryModal"] {
        background-color: white !important;
        color: #6c757d !important;
        border-color: #6c757d !important;
    }
    
    button[data-bs-target="#orderHistoryModal"]:hover {
        background-color: #6c757d !important;
        color: white !important;
        border-color: #6c757d !important;
    }
}
/* Admin Orders Desktop View Fix */
@media (min-width: 769px) {
    /* Force desktop table view */
    .mobile-card-view .table-responsive {
        display: block !important;
    }
    
    .mobile-card-view .mobile-cards {
        display: none !important;
    }
    
    /* Ensure proper table styling on desktop */
    .admin-page .table-responsive {
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        overflow-x: auto;
    }
    
    .admin-page .table {
        margin-bottom: 0;
        font-size: 0.9rem;
    }
    
    .admin-page .table th {
        background-color: #f8f9fa;
        border: none;
        font-weight: 600;
        color: #2c3e50;
        padding: 1rem;
        white-space: nowrap;
    }
    
    .admin-page .table td {
        padding: 1rem;
        border-color: rgba(0,0,0,0.05);
        vertical-align: middle;
        white-space: nowrap;
    }
    
    .admin-page .table tbody tr:hover {
        background: rgba(214, 51, 132, 0.02);
    }
}

/* Mobile View - Show cards, hide table */
@media (max-width: 768px) {
    .mobile-card-view .table-responsive {
        display: none !important;
    }
    
    .mobile-card-view .mobile-cards {
        display: block !important;
    }
}
/* Global Admin Table Desktop Fix - Apply to all admin pages */
@media (min-width: 769px) {
    /* Ensure all admin pages show desktop tables on desktop */
    .admin-page .mobile-card-view .table-responsive,
    .mobile-card-view .table-responsive {
        display: block !important;
        overflow-x: auto;
    }
    
    .admin-page .mobile-card-view .mobile-cards,
    .mobile-card-view .mobile-cards {
        display: none !important;
    }
    
    /* Enhanced desktop table styling */
    .admin-page .table-responsive {
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        background: white;
    }
    
    .admin-page .table {
        margin-bottom: 0;
        font-size: 0.9rem;
        background: white;
    }
    
    .admin-page .table thead th {
        background-color: #f8f9fa !important;
        border: none;
        font-weight: 600;
        color: #2c3e50;
        padding: 1rem;
        white-space: nowrap;
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .admin-page .table tbody td {
        padding: 1rem;
        border-color: rgba(0,0,0,0.05);
        vertical-align: middle;
        white-space: nowrap;
        background: white;
    }
    
    .admin-page .table tbody tr:hover {
        background: rgba(214, 51, 132, 0.02) !important;
    }
    
    /* Ensure proper button styling in tables */
    .admin-page .table .btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        border-radius: 6px;
    }
    
    /* Form controls in tables */
    .admin-page .table .form-select {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
        border-radius: 6px;
        min-width: 120px;
    }
}

/* Tablet specific adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .admin-page .table {
        font-size: 0.85rem;
    }
    
    .admin-page .table th,
    .admin-page .table td {
        padding: 0.75rem 0.5rem;
    }
    
    .admin-page .table .btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

/* Large desktop optimizations */
@media (min-width: 1200px) {
    .admin-page .table {
        font-size: 1rem;
    }
    
    .admin-page .table th,
    .admin-page .table td {
        padding: 1.2rem 1rem;
    }
}