/* ========================================
   PHOTOGRAPHY CRM - RESPONSIVE DARK THEME
   ======================================== */

/* Base Styles */
body {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #f5f5f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 48px 0 0;
    background: linear-gradient(180deg, #1e1e1e 0%, #2a2a2a 100%);
    border-right: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    /* Enable vertical scrolling */
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: 0.5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Brand Logo */
.brand-logo {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #d4af37 !important;
    text-decoration: none;
    letter-spacing: 2px;
}

.brand-logo i {
    color: #d4af37;
}

/* Navigation Links */
.sidebar .nav-link {
    font-weight: 500;
    color: #adb5bd;
    padding: 0.75rem 1rem;
    margin: 0.25rem 0.5rem;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
    border-left-color: #d4af37;
    transform: translateX(5px);
}

.sidebar .nav-link.active {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.15);
    border-left-color: #d4af37;
    font-weight: 600;
}

.sidebar .nav-link i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

/* Main Content */
main {
    margin-left: 250px;
    min-height: 100vh;
}

/* Cards */
.card {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.card-header {
    background: rgba(212, 175, 55, 0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    color: #d4af37;
    font-weight: 600;
    padding: 1rem 1.25rem;
}

.card-body {
    color: #f5f5f5;
}

/* Stats Cards */
.stat-card {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
}

.stat-label {
    color: #adb5bd;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.stat-value {
    color: #d4af37;
    font-size: 2rem;
    font-weight: 700;
}

/* Buttons */
.btn-warning {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    border: none;
    color: #000;
    font-weight: 600;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #b8941f 0%, #9a7a1a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(212, 175, 55, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border: none;
}

/* Tables */
.table {
    color: #f5f5f5;
}

.table-dark {
    background: rgba(30, 30, 30, 0.5);
}

.table thead th {
    border-bottom: 2px solid rgba(212, 175, 55, 0.5);
    color: #d4af37;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.table-hover tbody tr:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* Forms */
.form-control,
.form-select {
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #f5f5f5;
}

.form-control:focus,
.form-select:focus {
    background: rgba(30, 30, 30, 0.9);
    border-color: #d4af37;
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
    color: #f5f5f5;
}

.form-label {
    color: #adb5bd;
    font-weight: 500;
}

/* Mobile Menu Toggle - Hidden by default */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1050;
    background: #d4af37;
    border: none;
    border-radius: 8px;
    padding: 10px 15px;
    color: #000;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.mobile-menu-toggle:hover {
    background: #b8941f;
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(30, 30, 30, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.7);
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Tablets and below (< 992px) */
@media (max-width: 991px) {

    /* Show mobile menu button */
    .mobile-menu-toggle {
        display: block;
    }

    /* Hide sidebar by default */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
    }

    /* Show sidebar when active */
    .sidebar.show {
        transform: translateX(0);
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    }

    /* Show overlay when sidebar is open */
    .sidebar-overlay.show {
        display: block;
    }

    /* Remove main margin */
    main {
        margin-left: 0;
        padding-top: 60px;
    }

    /* Adjust stat cards */
    .stat-value {
        font-size: 1.75rem;
    }
}

/* Mobile devices (< 768px) */
@media (max-width: 767px) {

    /* Typography */
    h1,
    .h1 {
        font-size: 1.75rem;
    }

    h2,
    .h2 {
        font-size: 1.5rem;
    }

    h3,
    .h3 {
        font-size: 1.25rem;
    }

    /* Stat cards */
    .stat-card {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* Cards */
    .card-body {
        padding: 1rem;
    }

    /* Tables - Make them responsive */
    .table-responsive {
        border: 0;
    }

    /* Buttons */
    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-group .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Small mobile (< 576px) */
@media (max-width: 575px) {

    h1,
    .h1 {
        font-size: 1.5rem;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .card {
        margin-bottom: 0.75rem;
    }

    /* Avatar size */
    .avatar-md {
        width: 40px !important;
        height: 40px !important;
    }

    .avatar-md i {
        font-size: 1.25rem !important;
    }
}

/* Print styles */
@media print {

    .sidebar,
    .mobile-menu-toggle,
    .btn-toolbar,
    .sidebar-overlay {
        display: none !important;
    }

    main {
        margin-left: 0;
    }

    body {
        background: white;
        color: black;
    }
}

/* Utility Classes */
.text-gold {
    color: #d4af37 !important;
}

.bg-gold {
    background-color: #d4af37 !important;
}

.border-gold {
    border-color: #d4af37 !important;
}