/* ===================================
   UD Camera Rent - Custom Styles
   Color Scheme: Navy #0a1628, Gold #f5a623
   =================================== */

:root {
    --primary: #0a1628;
    --primary-light: #132240;
    --primary-dark: #060e1a;
    --accent: #f5a623;
    --accent-hover: #e6951a;
    --accent-light: rgba(245, 166, 35, 0.15);
    --text-primary: #1a1a2e;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border: #e9ecef;
    --sidebar-width: 260px;
    --topbar-height: 60px;
    --transition: all 0.3s ease;
    --shadow: 0 2px 15px rgba(10, 22, 40, 0.08);
    --shadow-lg: 0 5px 30px rgba(10, 22, 40, 0.12);
}

* { box-sizing: border-box; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background: var(--bg-light);
}
html,
body {
    overflow-x: hidden;
}

/* ===== BUTTONS ===== */
.btn-accent {
    background: var(--accent);
    color: var(--primary);
    border: none;
    font-weight: 600;
    transition: var(--transition);
}
.btn-accent:hover {
    background: var(--accent-hover);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.35);
}
.btn-outline-accent {
    border: 2px solid var(--accent);
    color: var(--accent);
    font-weight: 600;
}
.btn-outline-accent:hover {
    background: var(--accent);
    color: var(--primary);
}
.bg-accent { background-color: var(--accent) !important; }
.text-accent { color: var(--accent) !important; }

/* ===== CUSTOMER NAVBAR ===== */
.customer-navbar {
    background: var(--primary);
    backdrop-filter: blur(10px);
    padding: 0.8rem 0;
    border-bottom: 2px solid var(--accent);
    z-index: 1050;
}
.customer-navbar .navbar-brand {
    color: var(--white);
    font-size: 1.3rem;
}
.customer-navbar .navbar-brand i {
    color: var(--accent);
}
.navbar-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}
.customer-navbar .nav-link {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition);
    position: relative;
}
.customer-navbar .nav-link:hover,
.customer-navbar .nav-link.active {
    color: var(--accent);
}
.customer-navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}
.cart-badge {
    font-size: 0.65rem;
    padding: 0.2em 0.5em;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #1a2d50 100%);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}
.hero-overlay {
    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"><circle cx="50" cy="30" r="20" fill="none" stroke="rgba(245,166,35,0.05)" stroke-width="0.5"/><circle cx="80" cy="70" r="30" fill="none" stroke="rgba(245,166,35,0.03)" stroke-width="0.5"/></svg>');
    background-size: 200px;
    opacity: 0.5;
}
/* Hero ambient glow */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
}
.hero-glow-1 {
    width: 500px; height: 500px;
    background: var(--accent);
    top: -100px; right: 5%;
    animation: glowPulse 6s ease-in-out infinite;
}
.hero-glow-2 {
    width: 300px; height: 300px;
    background: #3498db;
    bottom: -50px; right: 25%;
    animation: glowPulse 8s ease-in-out 2s infinite;
}
@keyframes glowPulse {
    0%, 100% { opacity: 0.12; transform: scale(1); }
    50% { opacity: 0.22; transform: scale(1.1); }
}

/* Hero Visual (right side) */
.hero-visual {
    position: relative;
    width: 100%;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Center camera icon */
.hero-center-icon {
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--accent), #e67e22);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    color: #fff;
    z-index: 3;
    box-shadow: 0 20px 60px rgba(245, 166, 35, 0.35);
    animation: centerFloat 4s ease-in-out infinite;
    overflow: hidden;
}
.hero-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@keyframes centerFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(3deg); }
}

/* Orbit rings */
.hero-orbit {
    position: absolute;
    width: 340px;
    height: 340px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.hero-orbit-ring {
    position: absolute;
    inset: 0;
    border: 1.5px solid rgba(245, 166, 35, 0.15);
    border-radius: 50%;
    animation: orbitSpin 25s linear infinite;
}
.hero-orbit-ring::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 12px rgba(245, 166, 35, 0.6);
}
.hero-orbit-ring-2 {
    inset: -40px;
    border-color: rgba(52, 152, 219, 0.1);
    animation-duration: 35s;
    animation-direction: reverse;
}
.hero-orbit-ring-2::before {
    background: #3498db;
    box-shadow: 0 0 12px rgba(52, 152, 219, 0.6);
}
@keyframes orbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Floating cards */
.hero-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 14px 20px;
    z-index: 4;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}
.hero-float-card:hover {
    transform: translateY(-4px) scale(1.03) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(245, 166, 35, 0.3);
}
.hero-float-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.hero-float-text strong {
    display: block;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}
.hero-float-text small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

/* Card positions & individual styles */
.hero-float-1 {
    top: 30px; right: 40px;
    animation: floatCard1 5s ease-in-out infinite;
}
.hero-float-1 .hero-float-icon {
    background: rgba(245, 166, 35, 0.2);
    color: var(--accent);
}
.hero-float-2 {
    top: 50%; left: 0;
    transform: translateY(-50%);
    animation: floatCard2 6s ease-in-out 0.5s infinite;
}
.hero-float-2 .hero-float-icon {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}
.hero-float-3 {
    bottom: 30px; right: 20px;
    animation: floatCard3 5.5s ease-in-out 1s infinite;
}
.hero-float-3 .hero-float-icon {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}
.hero-float-4 {
    bottom: 130px; left: 20px;
    animation: floatCard4 6.5s ease-in-out 1.5s infinite;
}
.hero-float-4 .hero-float-icon {
    background: rgba(155, 89, 182, 0.2);
    color: #9b59b6;
}

@keyframes floatCard1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@keyframes floatCard2 {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(calc(-50% + 10px)) translateX(6px); }
}
@keyframes floatCard3 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}
@keyframes floatCard4 {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-8px) translateX(-6px); }
}

/* Decorative dots */
.hero-dot {
    position: absolute;
    border-radius: 50%;
    z-index: 2;
}
.hero-dot-1 {
    width: 8px; height: 8px;
    background: var(--accent);
    top: 80px; left: 30%;
    opacity: 0.6;
    animation: dotBlink 3s ease-in-out infinite;
}
.hero-dot-2 {
    width: 6px; height: 6px;
    background: #3498db;
    bottom: 80px; left: 45%;
    opacity: 0.5;
    animation: dotBlink 4s ease-in-out 1s infinite;
}
.hero-dot-3 {
    width: 10px; height: 10px;
    background: #2ecc71;
    top: 45%; right: 10px;
    opacity: 0.4;
    animation: dotBlink 3.5s ease-in-out 0.5s infinite;
}
@keyframes dotBlink {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.4); }
}
.min-vh-75 { min-height: 75vh; }
.hero-badge {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(245,166,35,0.3);
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    max-width: 500px;
    line-height: 1.7;
    margin-bottom: 2rem;
}
.hero-stats {
    display: flex;
    gap: 2.5rem;
}
.hero-stat {
    display: flex;
    flex-direction: column;
}
.hero-stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
}
.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== SECTION HEADERS ===== */
.section-badge {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== CATEGORY CARDS ===== */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: center;
}
.category-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.category-card:hover .category-icon {
    background: var(--accent);
    color: var(--primary);
}
.category-card h6 {
    color: var(--text-primary);
    margin-top: 0.75rem;
    margin-bottom: 0;
    font-weight: 600;
    font-size: 0.85rem;
}
.category-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: var(--accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent);
    transition: var(--transition);
}

/* ===== EQUIPMENT CARDS ===== */
.equipment-card {
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    transition: var(--transition);
    height: 100%;
}
.equipment-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.equipment-card-img {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
    background: #eee;
}
.equipment-card-img a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.equipment-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.equipment-card:hover .equipment-card-img img {
    transform: scale(1.05);
}
.equipment-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}
.equipment-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}
.equipment-status-badge.available {
    background: #27ae60;
    color: var(--white);
}
.equipment-status-badge.unavailable {
    background: #e74c3c;
    color: var(--white);
}
.equipment-card-body {
    padding: 1.25rem;
}
.equipment-card-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.3rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.equipment-card-brand {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}
.equipment-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}

/* ===== HOW IT WORKS ===== */
.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    height: 100%;
}
.step-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.step-number {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}
.step-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* ===== TESTIMONIALS ===== */
.testimonial-card {
    padding: 1.5rem;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid var(--border);
    height: 100%;
}
.testimonial-stars {
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.testimonial-text {
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.7;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}
.testimonial-avatar {
    font-size: 2rem;
    color: var(--primary);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.8);
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}
.site-footer .text-muted {
    color: rgba(255,255,255,0.6) !important;
}
.footer-brand h5 {
    color: var(--white);
}
.footer-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}
.footer-heading {
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}
.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li {
    padding: 0.25rem 0;
    font-size: 0.9rem;
}
.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--accent);
}
.footer-social a {
    color: rgba(255,255,255,0.6);
    font-size: 1.2rem;
    transition: var(--transition);
}
.footer-social a:hover {
    color: var(--accent);
}
.payment-info-box {
    background: var(--primary-light);
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.85rem;
}
.footer-divider {
    border-color: rgba(255,255,255,0.1);
}

/* ===== AUTH PAGES ===== */
.auth-page {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    min-height: 100vh;
}
.auth-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}
.auth-icon {
    width: 70px;
    height: 70px;
    background: var(--accent-light);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--accent);
    overflow: hidden;
}
.auth-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== DETAIL PAGE ===== */
.detail-gallery .main-image-wrapper {
    background: #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.detail-gallery .main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.thumbnail-item {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}
.thumbnail-item:hover,
.thumbnail-item.active {
    border-color: var(--accent);
}
.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.detail-price-box {
    background: var(--accent-light);
    padding: 1rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent);
}
.detail-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
}
.spec-item {
    background: var(--bg-light);
    padding: 0.75rem;
    border-radius: 8px;
}
.add-to-cart-box {
    background: var(--bg-light);
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

/* ===== CART ===== */
.cart-item-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
}
.cart-item-card:hover {
    box-shadow: var(--shadow);
}
.cart-summary-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    position: sticky;
    top: 100px;
}

/* ===== FILTER BAR ===== */
.filter-bar {
    background: var(--white);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

/* ===== ADMIN LAYOUT ===== */
.admin-layout {
    background: var(--bg-light);
}
.admin-sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--primary);
    z-index: 1060;
    overflow-y: auto;
    transition: var(--transition);
}
.sidebar-brand {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-brand i { color: var(--accent); font-size: 1.3rem; }
.sidebar-logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
}
.sidebar-nav {
    padding: 0.5rem 0;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.5rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
}
.sidebar-link:hover {
    color: var(--white);
    background: rgba(255,255,255,0.05);
}
.sidebar-link.active {
    color: var(--accent);
    background: rgba(245, 166, 35, 0.08);
    border-left-color: var(--accent);
}
.sidebar-link i { font-size: 1.1rem; width: 22px; text-align: center; }
.sidebar-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 0.5rem 1.5rem;
}
.admin-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: var(--transition);
}
.admin-topbar {
    height: var(--topbar-height);
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1040;
}
.sidebar-toggle {
    color: var(--text-primary);
    font-size: 1.3rem;
    text-decoration: none;
}

/* ===== STAT CARDS ===== */
.stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-left: 4px solid;
    text-align: center;
    transition: var(--transition);
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.stat-primary { border-left-color: #3498db; }
.stat-success { border-left-color: #27ae60; }
.stat-info { border-left-color: #2980b9; }
.stat-warning { border-left-color: #f39c12; }
.stat-accent { border-left-color: var(--accent); }
.stat-danger { border-left-color: #e74c3c; }
.stat-icon { font-size: 1.5rem; color: var(--text-muted); }
.stat-value { font-size: 1.8rem; font-weight: 800; color: var(--text-primary); }
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ===== CARDS ===== */
.card {
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.card-header {
    font-weight: 600;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 1.25rem;
}

/* ===== TABLES ===== */
.table th {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.table td {
    vertical-align: middle;
}
.table-responsive {
    -webkit-overflow-scrolling: touch;
}

/* ===== BADGES ===== */
.badge {
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

/* ===== PROGRESS ===== */
.progress { border-radius: 8px; }
.progress-bar.bg-accent { background: var(--accent) !important; }

/* ===== PAGINATION ===== */
.page-link { color: var(--primary); }
.page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
}

/* ===== FORMS ===== */
.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(245, 166, 35, 0.25);
}
.input-group-text {
    background: var(--bg-light);
    border-color: var(--border);
    color: var(--text-muted);
}

/* ===== FULLCALENDAR OVERRIDES ===== */
.fc .fc-button-primary {
    background: var(--primary);
    border-color: var(--primary);
}
.fc .fc-button-primary:hover {
    background: var(--primary-light);
}
.fc .fc-button-primary.fc-button-active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
}
.fc .fc-today-button { background: var(--accent); border-color: var(--accent); color: var(--primary); }
.fc .fc-daygrid-day.fc-day-today { background: var(--accent-light); }

/* ===== RESPONSIVE ===== */

/* ── Tablet (≤992px) ── */
@media (max-width: 992px) {
    /* Admin sidebar: off-canvas with overlay */
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.show {
        transform: translateX(0);
    }
    .admin-sidebar.show ~ .sidebar-overlay {
        display: block;
    }
    .admin-content {
        margin-left: 0;
    }
    .admin-main-content {
        padding: 1rem !important;
    }

    /* Hero */
    .hero-title { font-size: 2.5rem; }
    .hero-stats { gap: 1.5rem; }
    .hero-visual { height: 380px; }
    .hero-float-card { padding: 10px 14px; }
    .hero-orbit { width: 260px; height: 260px; }
    .hero-orbit-ring-2 { inset: -30px; }

    /* Filter forms: 2 columns on tablet */
    .filter-form-row .col-md-2,
    .filter-form-row .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Tables: smaller text */
    .table th, .table td { font-size: 0.8rem; }
    .table .btn-sm { padding: 0.2rem 0.4rem; font-size: 0.75rem; }

    /* Reports quick range buttons */
    .quick-range-group {
        flex-wrap: wrap;
    }
    .quick-range-group .btn-group {
        flex-wrap: wrap;
    }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {
    /* Hero */
    .hero-section { padding: 60px 0; }
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-actions {
        display: flex;
        flex-direction: column !important;
        gap: 0.5rem;
    }
    .hero-actions .btn {
        width: 100%;
        margin-left: 0 !important;
    }
    .hero-stats { flex-wrap: wrap; gap: 1rem; }
    .hero-stat-number { font-size: 1.4rem; }
    .hero-badge { font-size: 0.75rem; }

    /* Stat cards */
    .stat-value { font-size: 1.3rem; }
    .stat-card { padding: 1rem; }

    /* Page titles */
    h2.fw-bold { font-size: 1.5rem; }
    h4.fw-bold { font-size: 1.2rem; }

    /* Cards */
    .card-body { padding: 0.85rem; }
    .card-header { padding: 0.65rem 0.85rem; font-size: 0.9rem; }

    /* Footer */
    .site-footer { padding: 2rem 0 1rem; }
    .footer-brand h5 { font-size: 1rem; }
    .footer-heading { margin-top: 0.5rem; }

    /* Auth pages */
    .auth-card { padding: 1.5rem; }
    .auth-icon { width: 56px; height: 56px; }

    /* Admin topbar */
    .admin-topbar {
        padding: 0 0.75rem;
        font-size: 0.85rem;
    }
    .admin-topbar .text-muted { display: none; }

    /* Equipment card */
    .equipment-card-body { padding: 0.85rem; }
    .equipment-card-title { font-size: 0.9rem; }
    .equipment-card-price { font-size: 1rem; }

    /* Detail page */
    .detail-price { font-size: 1.4rem; }
    .thumbnail-item { width: 60px; height: 60px; }

    /* Cart items: stack layout */
    .cart-item-details .col-4,
    .cart-item-details .col-2 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 0.25rem;
    }

    /* Filter bar: tighter */
    .filter-bar { padding: 0.75rem; }

    /* Payment filter buttons */
    .payment-filters { flex-wrap: wrap; gap: 0.25rem !important; }
    .payment-filters .btn-sm { font-size: 0.75rem; padding: 0.25rem 0.5rem; }

    /* Reports btn-group wrap */
    .btn-group.flex-wrap-mobile {
        display: flex;
        flex-wrap: wrap;
        border-radius: 0;
    }
    .btn-group.flex-wrap-mobile .btn {
        border-radius: 4px !important;
        margin: 2px;
    }

    /* Modals */
    .modal-dialog { margin: 0.5rem; }
    .modal-lg { max-width: 100%; }

    /* Pagination */
    .pagination { flex-wrap: wrap; }
    .page-link { padding: 0.3rem 0.6rem; font-size: 0.8rem; }

    /* Booking detail header */
    .booking-detail-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start !important;
    }

    /* Forms */
    .form-control, .form-select { font-size: 0.9rem; }
    .form-label { font-size: 0.8rem; }

    /* Generic page toolbars */
    .page-toolbar {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.75rem;
    }
    .page-toolbar > * {
        width: 100%;
    }

    /* Admin quick filters */
    .admin-filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    .admin-filter-form .btn {
        width: 100%;
    }

    /* Customer navbar collapse */
    .customer-navbar .navbar-nav {
        align-items: flex-start !important;
        gap: 0.25rem;
    }
    .customer-navbar .nav-item,
    .customer-navbar .nav-item .btn,
    .customer-navbar .dropdown {
        width: 100%;
    }
    .customer-navbar .dropdown-menu {
        width: 100%;
    }

    /* Reports tabs */
    .report-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        white-space: nowrap;
    }
    .report-tab {
        display: inline-flex;
        white-space: nowrap;
        padding: 10px 14px;
    }
}

/* ── Small Mobile (≤576px) ── */
@media (max-width: 576px) {
    /* Hero */
    .hero-section { padding: 40px 0; }
    .hero-title { font-size: 1.5rem; }
    .hero-subtitle { font-size: 0.9rem; margin-bottom: 1.5rem; }
    .hero-stats { gap: 0.75rem; }
    .hero-stat-number { font-size: 1.2rem; }
    .hero-stat-label { font-size: 0.7rem; }
    .hero-section .btn { font-size: 0.85rem; padding: 0.5rem 1rem; }

    /* Container padding */
    .container { padding-left: 12px; padding-right: 12px; }
    .admin-main-content { padding: 0.75rem !important; }

    /* Stat cards: 2 per row */
    .stat-card .stat-value { font-size: 1.1rem; }
    .stat-card .stat-label { font-size: 0.65rem; }

    /* Customer navbar */
    .customer-navbar { padding: 0.5rem 0; }
    .customer-navbar .navbar-brand { font-size: 1rem; }
    .navbar-logo { width: 28px; height: 28px; }

    /* Cart */
    .cart-item-card .row.g-0 { flex-direction: column; }
    .cart-item-card .col-md-3,
    .cart-item-card .col-md-9 { width: 100%; }
    .cart-item-card img { height: 200px; object-fit: cover; width: 100%; }

    /* Table action buttons: stack vertically */
    .action-btns {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    .action-btns .btn-sm, .action-btns form { width: 100%; }
    .action-btns .btn-sm { font-size: 0.7rem; }

    /* My Bookings table action buttons */
    .table .btn-sm { padding: 0.15rem 0.35rem; font-size: 0.7rem; }

    /* Equipment grid: 2 per row on small */
    .equipment-card-body { padding: 0.65rem; }
    .equipment-card-title { font-size: 0.82rem; }
    .equipment-card-brand { font-size: 0.75rem; margin-bottom: 0.4rem; }
    .equipment-card-price { font-size: 0.9rem; }

    /* Category cards */
    .category-card { padding: 1rem 0.5rem; }
    .category-icon { width: 42px; height: 42px; font-size: 1.1rem; }
    .category-card h6 { font-size: 0.75rem; }

    /* Step cards */
    .step-card { padding: 1.25rem 1rem; }
    .step-icon { font-size: 2rem; }

    /* Testimonials */
    .testimonial-card { padding: 1rem; }
    .testimonial-text { font-size: 0.85rem; }

    /* Footer */
    .site-footer { text-align: center; }
    .footer-social { justify-content: center; }
    .payment-info-box { font-size: 0.8rem; }

    /* Fixed bottom checkout bar for cart */
    .cart-summary-card {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1030;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
        padding: 1rem;
    }
    .cart-summary-spacer { height: 200px; }

    /* Booking detail: tighter spacing */
    .card .card-body p { font-size: 0.85rem; margin-bottom: 0.4rem; }

    /* Modal table */
    .modal .table th, .modal .table td { font-size: 0.75rem; padding: 0.4rem; }

    /* Invoice / action buttons in booking list */
    .booking-actions { display: flex; gap: 2px; flex-wrap: wrap; }

    /* Hero CTA buttons */
    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    .hero-actions .btn {
        width: 100%;
        margin-left: 0 !important;
    }

    .booking-actions .btn,
    .booking-actions form {
        flex: 1 1 calc(50% - 2px);
    }
}

/* ===== SIDEBAR OVERLAY (all sizes) ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1055;
}
.sidebar-overlay.show { display: block; }

/* ===== UTILITY: Truncate text in table cells ===== */
.text-truncate-cell {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 768px) {
    .text-truncate-cell { max-width: 100px; }
}

/* ===== UTILITY: Hide on mobile ===== */
@media (max-width: 576px) {
    .d-mobile-none { display: none !important; }
}
@media (max-width: 768px) {
    .d-tablet-none { display: none !important; }
}

/* ===== LOADING SPINNER ===== */
.spinner-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.spinner-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--accent);
}

/* ===== SCROLLBAR ===== */
.admin-sidebar::-webkit-scrollbar { width: 4px; }
.admin-sidebar::-webkit-scrollbar-track { background: transparent; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.equipment-card,
.stat-card,
.step-card,
.category-card,
.testimonial-card {
    animation: fadeIn 0.5s ease forwards;
}

/* ===== CUSTOMER MAIN ===== */
.customer-main {
    min-height: calc(100vh - 76px);
}
