/* Client Dashboard V3 - Dark Theme */
/* Based on V2 but with darker colors as shown in the image */

/* Apply base background to HTML element */
html {
    background-color: #1A1A1A; /* Dark background (almost black) */
    min-height: 100vh; /* Ensure HTML covers viewport */
}

/* Reset and Base Styles for Body */
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    color: #E0E0E0; /* Light text */
    min-height: 100vh; /* Ensure body takes full viewport height */
    position: relative; /* Needed for positioning the pseudo-element */
    overflow-x: hidden; /* Prevent potential horizontal scrollbar from pseudo-element */
    letter-spacing: 0.02em; /* 2% letter spacing */
}

/* Background styling - mountain image removed */
body::before {
    content: none; /* Removed the mountain image */
}

*, *:before, *:after {
    box-sizing: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Header Styles */
.dashboard-header {
    /* background-color: #121212; - REMOVED: Background now controlled by Tailwind */
    padding: 0; /* REMOVED: Padding now controlled by Tailwind min-h classes */
    position: fixed; /* Mobile-first: keep header fixed on mobile */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000; /* Above banner gallery but below content */
    color: #FFF;
}

/* Desktop: header should not be fixed */
@media (min-width: 768px) {
  .dashboard-header { position: relative; top: auto; left: auto; right: auto; }
}

/* Removed desktop stickiness: header will not follow on scroll on desktop */

.header-inner {
    /* All positioning and layout now handled by Tailwind classes in universal_header.html */
    max-width: 1400px;
}

.header-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
}

.header-logo img {
    height: 40px;
}

/* .header-user positioning now handled by Tailwind in universal_header.html */

.profile-dropdown {
    position: relative;
}

.profile-trigger {
    display: flex;
    align-items: center;
    background-color: #2a2a2a;
    border-radius: 25px;
    transition: background-color 0.2s ease;
    cursor: pointer;
    user-select: none;
    /* gap and padding now handled by Tailwind classes */
}

.profile-trigger:hover {
    background-color: #3a3a3a;
}

.user-name {
    color: #ffffff;
    font-size: 16px;
    font-weight: 300;
    margin: 0;
}

/* Hide user name on mobile - button positioning handled by Tailwind */
@media (max-width: 768px) {
    .user-name {
        display: none !important;
    }
}

.profile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #ffffff;
    flex-shrink: 0;
}

.profile-icon svg {
    width: 24px;
    height: 24px;
}

.dropdown-arrow {
    transition: transform 0.2s ease;
}

.profile-dropdown.show .dropdown-arrow {
    transform: rotate(180deg);
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    border: 1px solid #e0e0e0;
}

.profile-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dropdown-profile-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dropdown-user-details {
    flex: 1;
    min-width: 0;
}

.dropdown-user-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.25rem;
}

.dropdown-user-email {
    font-size: 0.85rem;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-divider {
    height: 1px;
    background-color: #f0f0f0;
    margin: 0;
}

.dropdown-menu-items {
    padding: 0.5rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease;
    font-size: 14px;
    font-weight: 300;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: #333;
}

.dropdown-item svg {
    color: #666;
    flex-shrink: 0;
}

.logout-item:hover {
    background-color: #fef2f2;
    color: #dc2626;
}

.logout-item:hover svg {
    color: #dc2626;
}

.login-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 300;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background-color: #ff6b35;
    transition: background-color 0.2s ease;
}

.login-link:hover {
    background-color: #e55a2b;
    color: #ffffff;
}

/* Header buttons styling for login/signup buttons */
.header-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Mobile login avatar - show only on mobile */
.mobile-login-avatar {
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    width: 44px; /* Minimum touch target */
    height: 44px;
    border-radius: 50%;
    transition: all 0.3s ease;
    background-color: transparent;
    text-decoration: none;
}

.mobile-login-avatar:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.mobile-login-avatar:active {
    transform: scale(0.95);
    background-color: rgba(255, 255, 255, 0.2);
}

/* Show mobile avatar on mobile, hide desktop buttons */
@media (max-width: 768px) {
    .mobile-login-avatar {
        display: flex; /* Show on mobile */
        padding: 0.5rem !important; /* Add padding to avatar */
        min-width: 44px !important;
        height: 44px !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .header-buttons {
        display: none; /* Hide desktop buttons */
    }
    
    /* Header button positioning now handled by Tailwind in universal_header.html */
    
    /* Profile trigger positioning now handled by Tailwind in universal_header.html */
}

.header-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #A99C67; /* Gold/tan background */
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 300;
    font-size: 16px;
    border: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header-button:hover {
    background-color: #706643; /* Much darker gold/tan (35% darker) */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.header-button.secondary {
    background-color: #ffffff;
    border: none;
    color: #A99C67; /* Gold/tan text on white background */
    transition: all 0.3s ease;
}

.header-button.secondary:hover {
    background-color: #cccccc; /* Much darker white (20% darker) */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

/* Responsive header buttons */
@media (max-width: 768px) {
    .header-buttons {
        gap: 10px;
    }
    
    .header-button {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .header-buttons {
        gap: 8px;
    }
    
    .header-button {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

.header-user span {
    margin-right: 0;
}

.header-user i {
    display: none; /* Hide the old icon */
}

.menu-toggle {
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1005;
    /* Positioning now handled by Tailwind in universal_header.html */
}

/* Version toggle button */
.version-toggle {
    background-color: #4285F4; /* Google blue */
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 10px;
    font-size: 14px;
}

.version-toggle:hover {
    background-color: #3367D6; /* Darker blue on hover */
}

/* Main Layout */
.dashboard-container {
    display: flex;
    flex-direction: row; /* Force horizontal layout */
    flex-wrap: nowrap; /* Prevent wrapping */
    width: 80%;
    max-width: 1400px;
    margin: calc(2rem - 10px) auto 2rem auto;
    padding: 0 2rem;
    gap: 2rem;
    justify-content: center; /* Center the content horizontally */
}

.left-column {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 0;
    order: 1; /* Ensure left column appears first */
    width: 66%; /* Explicit width */
    margin: 0 auto; /* Center the left column content */
}

.right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    order: 2; /* Ensure right column appears second */
    width: 33%; /* Explicit width */
}

/* Ensure layout works on all screen sizes */
@media screen and (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .left-column,
    .right-column {
        width: 100%;
    }
}

/* Dashboard Top Section - Welcome and Points Container */
.dashboard-top-section {
    width: 100%;
    max-width: min(calc(6 * 200px + 5 * 15px), calc(100% - 40px)); /* Match category cards width constraint */
    margin: 0 auto 2rem auto; /* Center and add bottom margin */
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Welcome and Points */
.welcome-section h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 0.1rem;
    color: #FFF;
}

.welcome-section p {
    font-size: 16px;
    color: #E0E0E0;
    font-weight: 300;
    margin-top: 0;
    margin-bottom: calc(2rem - 10px);
}

.welcome-section {
    margin-bottom: calc(2rem - 10px);
}

/* Total Rewards Section */
.total-rewards-section {
    margin-bottom: calc(2rem - 10px);
}

.total-rewards-label {
    font-size: 16px;
    color: #B1A678;
    margin-bottom: 0.5rem;
    display: block;
    padding-right: 5px; /* Add 5px right padding */
    font-weight: 300;
}

.total-rewards-value {
    font-size: 4rem;
    font-weight: bold;
    color: #FFF;
    line-height: 1;
    margin-bottom: calc(2rem - 10px);
    padding-right: 5px; /* Add 5px right padding */
}

.total-points-section .label {
    font-size: 16px;
    color: #B1A678;
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 300;
}

.total-points-section .value {
    font-size: 4rem;
    font-weight: bold;
    color: #FFF;
    line-height: 1;
    margin-bottom: calc(2rem - 10px);
}

.total-points-section {
    margin-bottom: calc(2rem - 10px);
}

/* Spend On Categories */
.spend-on-section .label {
    font-size: 16px;
    color: #B1A678;
    margin-bottom: 1rem;
    display: block;
    font-weight: 300;
    max-width: calc(6 * 200px + 5 * 15px); /* Match category cards width */
    margin-left: 0; /* Align to left */
    margin-right: auto; /* Allow natural flow */
}

.spend-on-section {
    margin-bottom: 2rem;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.category-button {
    background-color: #333333; /* Darker button background */
    color: #FFF;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, color 0.2s ease;
    border: none;
    cursor: pointer;
}

.category-button:hover {
    background-color: #FFF;
    color: #2D2D2D;
}

.category-button.active {
    background-color: #FFF;
    color: #2D2D2D;
}

.category-button img {
    height: 1.2em;
    width: auto;
    vertical-align: middle;
    filter: brightness(0) invert(1);
    transition: filter 0.2s ease;
}

.category-button:hover img {
    filter: brightness(0) invert(0);
}

.category-button.active img {
    filter: brightness(0) invert(0);
}



/* Responsive adjustments for section labels and top section */
@media (max-width: 1200px) and (min-width: 769px) {
    .dashboard-top-section {
        max-width: min(calc(3 * 280px + 2 * 15px), calc(100% - 40px)); /* Match 3 category cards */
    }
    .spend-on-section .label {
        max-width: calc(3 * 280px + 2 * 15px); /* Match 3 category cards */
    }
}

@media (max-width: 768px) and (min-width: 481px) {
    .dashboard-top-section {
        max-width: min(calc(2 * 240px + 1 * 15px), calc(100% - 40px)); /* Match 2 category cards */
    }
    .spend-on-section .label {
        max-width: calc(2 * 240px + 1 * 15px); /* Match 2 category cards */
    }
}

@media (max-width: 480px) {
    .dashboard-top-section {
        max-width: min(280px, calc(100% - 40px)); /* Match 1 category card */
    }
    .spend-on-section .label {
        max-width: 280px; /* Match 1 category card */
    }
}

/* No responsive adjustments needed for left-aligned label */

/* Spend At Suppliers */
.spend-at-section {
    margin-top: 1rem;
}

.spend-at-section .label {
    font-size: 1.3rem; /* Increased by 50% from 1rem */
    color: #B1A678;
    margin-bottom: 1rem;
    display: block;
    font-weight: 400;
    /* Left-aligned instead of centered */
}

/* Supplier cards container with responsive width */
.supplier-cards-wrapper {
    position: relative;
    /* Use full container width */
    width: 100%; /* Use full container width */
    max-width: 100%; /* Match service cards width constraint */
    overflow: hidden; /* Hide cards that extend beyond the visible area */
    /* Always reserve space for navigation arrows to prevent layout shifts */
    min-height: 165px; /* Match card height */
    /* Match service cards spacing */
    margin-top: 20px; /* Match category-cards margin-top */
    padding: 0 0 10px 0; /* Add 30px padding below business cards */
}

/* Responsive wrapper widths for different screen sizes */
@media (max-width: 1199px) and (min-width: 768px) {
    .supplier-cards-wrapper {
        /* Use full container width on tablet */
        width: 100%;
    }
    .supplier-cards {
        /* Let cards determine width for scrolling */
        width: max-content;
    }
}

@media (max-width: 767px) and (min-width: 480px) {
    .supplier-cards-wrapper {
        /* Use full container width on mobile */
        width: 100%;
    }
    .supplier-cards {
        /* Let cards determine width for scrolling */
        width: max-content;
    }
}

@media (max-width: 479px) {
    .supplier-cards-wrapper {
        /* Use full container width on small mobile */
        width: 100%;
    }
    .supplier-cards {
        /* Let cards determine width for scrolling */
        width: max-content;
    }
}

.supplier-cards {
    display: flex;
    gap: 0.8rem; /* Match service cards gap for consistency */
    transition: transform 0.3s ease;
    /* Calculate width based on max 250px cards */
    width: max-content; /* Let width be determined by card content */
    /* Cards will be positioned using transform for navigation */
}

/* Navigation arrows - Business page style (outside content) */
.supplier-nav-button {
    position: absolute;
    top: 50%; /* Center on business cards area */
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    padding: 0;
}

.supplier-nav-button img {
    width: 12px;
    height: 12px;
    filter: brightness(0) invert(1); /* Make white */
    transition: transform 0.3s ease;
}

.supplier-nav-button.visible {
    opacity: 1;
    visibility: visible;
}

.supplier-nav-button:hover img {
    transform: scale(1.2);
}

.supplier-nav-prev {
    left: -20px; /* Position outside content area */
}

.supplier-nav-prev img {
    transform: rotate(180deg); /* Flip arrow to point left */
}

.supplier-nav-prev:hover img {
    transform: rotate(180deg) scale(1.2);
}

.supplier-nav-next {
    right: -20px; /* Position outside content area */
}

/* Responsive adjustments for supplier navigation */
@media (max-width: 768px) {
    .supplier-nav-button img {
        width: 10px;
        height: 10px;
    }
    
    .supplier-nav-prev {
        left: -15px; /* Closer to content on mobile */
    }
    
    .supplier-nav-next {
        right: -15px; /* Closer to content on mobile */
    }
}

@media (max-width: 480px) {
    .supplier-nav-prev {
        left: -10px; /* Even closer on small mobile */
    }
    
    .supplier-nav-next {
        right: -10px; /* Even closer on small mobile */
    }
}

/* Wrapper for card + buttons below */
.supplier-card-wrapper {
    display: flex;
    flex-direction: column;
    width: 413px; /* 40% bigger: 295 * 1.4 = 413px */
    flex-shrink: 0; /* Prevent cards from shrinking */
    margin: 0; /* Remove any margin */
}

.supplier-card {
    background-color: transparent; /* No fallback background to avoid interfering with background images */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    width: 100%; /* Full width of wrapper */
    height: 231px; /* 40% bigger: 165 * 1.4 = 231px */
    position: relative; /* For absolute positioning of child elements */
    padding: 0; /* Remove padding for tight spacing */
    margin: 0; /* Remove any margin */
}



.supplier-logo {
    position: absolute;
    left: 21px; /* 40% bigger: 15 * 1.4 = 21px */
    bottom: 21px; /* Position in bottom left corner of card */
    width: 168px; /* 40% bigger: 120 * 1.4 = 168px */
    height: auto; /* Let height adjust to logo content */
    max-height: 60px; /* Limit maximum height */
    display: flex;
    align-items: flex-end; /* Align logo to bottom of container */
    justify-content: flex-start; /* Align logo to left of container */
    padding: 0;
    background-color: transparent;
}

.supplier-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3)); /* Subtle glow for white logos */
    align-self: flex-end; /* Align logo image to bottom of container */
}

/* Spendable dollars container - bottom right */
.spendable-container {
    position: absolute;
    bottom: 21px; /* Position in bottom right corner of card */
    right: 21px; /* 40% bigger: 15 * 1.4 = 21px */
    text-align: right;
    color: #ffffff; /* White color */
}

.spendable {
    font-size: 14px; /* P small from font guide */
    font-weight: 300; /* Light weight from font guide */
    margin-bottom: 2px;
}

.amount {
    font-size: 25px; /* H3 bold from font guide */
    font-weight: 700; /* Semi-bold weight from font guide */
}

/* Buttons container - below the card */
.supplier-buttons {
    display: flex;
    gap: 14px; /* 40% bigger: 10 * 1.4 = 14px */
    margin-top: 15px; /* Space between card and buttons */
    width: 100%; /* Full width of card */
}

/* Business card buttons - B style from font guide */
.learn-more-button {
    font-size: 16px !important; /* B style from font guide */
    font-weight: 300 !important; /* Light weight from font guide */
}

.redeem-button {
    font-size: 16px !important; /* B style from font guide */
    font-weight: 300 !important; /* Light weight from font guide */
}

/* Supplier card hover effect - REMOVED per user request */
/* .supplier-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease; - removed transition
} */

/* .supplier-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
} - commented out hover effect */

/* Google Maps Section */
.supplier-map-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Google Maps container */
.supplier-map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.supplier-map-container iframe {
    display: block;
    margin-top: -46px; /* Hide the Google Maps header */
    height: 446px; /* Compensate for the hidden header */
}

/* Right Column - Rewards Activity */
.rewards-activity-section h2 {
    font-size: 1.4rem;
    color: #FFF;
    text-align: left;
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.activity-see-more {
    font-size: 0.9rem;
    font-weight: 500;
    color: #B1A678;
    text-decoration: none;
}

.activity-see-more:hover {
    text-decoration: underline;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    background-color: #A4A081; /* Match V2 beige/tan color */
    color: #2D2D2D; /* Dark text like V2 */
    padding: calc(1rem - 5px) 1.5rem calc(1rem - 5px) 1.5rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.activity-item-details {
    flex-grow: 1;
    margin-right: 1rem;
}

.activity-item-details .date {
    font-size: 0.85rem;
    color: #4F4F4F; /* Match V2 dark gray for date */
    margin-bottom: 0.5rem;
}

.activity-item-details .supplier-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.activity-item-details .invoice-ref {
    font-size: 0.85rem;
    color: #2D2D2D; /* Match V2 dark text */
    margin-bottom: 0.5rem;
}

.activity-item-category {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0.1); /* Darker background for better contrast */
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
}

.activity-item-points {
    text-align: right;
    min-width: 100px;
}

.activity-item-points .label {
    font-size: 0.8rem;
    color: #4F4F4F; /* Match V2 dark gray */
    margin-bottom: 0.3rem;
}

.activity-item-points .amount {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.activity-item-view {
    font-size: 0.8rem;
    color: #2D2D2D; /* Match V2 dark text */
    text-decoration: none;
}

.activity-item-view:hover {
    text-decoration: underline;
}

/* Side Menu */
.side-menu {
    position: fixed;
    top: 0;
    left: -350px;
    width: 300px;
    height: 100%;
    background-color: #A99C67;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    transition: left 0.3s ease;
    z-index: 1001;
    padding-top: 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.side-menu .menu-user-item {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: #202020;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
    margin-bottom: 5px;
    width: 100%;
}

.side-menu .menu-user-item:hover {
    color: #ffffff; /* White text on hover */
}

.side-menu .menu-user-item:hover .menu-avatar-icon {
    filter: brightness(0) invert(1); /* White icon on hover */
}

.side-menu .menu-user-item.active {
    background-color: #202020;
    color: #FFFFFF;
    width: fit-content;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
    margin-right: 25px;
    padding: 15px 25px !important;
}

.side-menu .menu-avatar-icon {
    width: 28px;
    height: 28px;
    margin-right: 12px;
    flex-shrink: 0;
    transition: filter 0.3s ease;
}

.side-menu .menu-bottom-item {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    color: #202020;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

.side-menu .menu-bottom-item:hover {
    color: #ffffff; /* White text on hover */
}

.side-menu .menu-bottom-item:hover .menu-bottom-icon {
    filter: brightness(0) invert(1); /* White icon on hover */
}

.side-menu .menu-bottom-item.active {
    background-color: #202020;
    color: #FFFFFF;
    width: fit-content;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
    margin-right: 25px;
    padding: 15px 25px !important;
}

.side-menu .menu-bottom-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    flex-shrink: 0;
    transition: filter 0.3s ease;
}


.side-menu a {
    display: block;
    padding: 20px 25px;
    color: #202020; /* Dark gray text */
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

.side-menu a:hover {
    color: #ffffff; /* White text on hover */
}

.side-menu a.active {
    background-color: #202020;
    color: #FFFFFF;
    width: fit-content;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
    margin-right: 25px;
    padding: 15px 25px !important;
}

.side-menu a.active img {
    filter: brightness(0) invert(1);
}

.side-menu a:hover img {
    filter: brightness(0) invert(1); /* White icon on hover */
}

.side-menu a img {
    transition: filter 0.3s ease;
}

/* Accordion Menu Styles */
.menu-accordion {
    position: relative;
}

.menu-accordion.active .accordion-label {
    background-color: #000000; /* Black background for active item */
    color: #FFFFFF; /* White text for active item */
    width: fit-content; /* Size to content */
    border-top-right-radius: 25px; /* Round top-right corner */
    border-bottom-right-radius: 25px; /* Round bottom-right corner */
    padding: 10px 20px; /* Adjust padding for button look */
}

/* Hide the checkbox */
.accordion-toggle {
    display: none;
}

/* Style the label as the clickable element */
.accordion-label {
    display: block;
    padding: 15px 25px;
    color: #202020;
    cursor: pointer;
    position: relative;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.accordion-label:hover {
    background-color: rgba(0, 0, 0, 0.1); /* Subtle hover effect */
    color: #ffffff; /* White text on hover */
}

.accordion-label i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

/* Rotate arrow when checked */
.accordion-toggle:checked + .accordion-label i {
    transform: rotate(180deg);
}

/* Hide accordion content by default */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    background-color: transparent;
    margin-left: 20px;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0 0 0 10px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

/* Show accordion content when checked */
.accordion-toggle:checked + .accordion-label + .accordion-content {
    max-height: 400px; /* Adjust based on content */
    padding: 5px 0 5px 10px;
}

.accordion-content a {
    display: block;
    padding: 20px 40px;
    color: #202020;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 5px;
    margin: 2px 0;
}

.accordion-content a:hover {
    background-color: rgba(0, 0, 0, 0.2);
    color: #ffffff; /* White text on hover */
}

.side-menu .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: transform 0.2s ease;
    z-index: 1002;
}

.side-menu .close-btn:hover {
    transform: scale(1.2);
}

.side-menu .close-btn svg line {
    transition: stroke 0.2s ease;
}

.side-menu .close-btn:hover svg line {
    stroke: #000000;
}

.side-menu hr {
    border: none;
    border-top: 1px solid #000000;
    height: 0;
    margin: 0px 20px 20px 20px;
    display: block;
    width: auto;
}

/* Authentication Section Styles */
.auth-section {
    padding: 15px 25px;
}

.user-greeting {
    display: block;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: normal;
    margin-bottom: 10px;
    padding: 0;
}

.logout-btn {
    display: inline-block;
    background-color: #ff6b35;
    color: #FFFFFF !important;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

.logout-btn:hover {
    background-color: #e55a2b;
}

/* When menu is open */
body.menu-open .side-menu {
    left: 0;
}

/* Hide burger menu when side menu is open */
body.menu-open .menu-toggle {
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .right-column {
        order: -1;
    }
    
    .supplier-cards {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Tablet responsive */
@media (max-width: 1024px) {
    /* Header spacing now handled by Tailwind in universal_header.html */
    
    .dashboard-container {
        width: 90%;
        padding: 0 1.5rem;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    /* Header spacing now handled by Tailwind in universal_header.html */
    
    .dashboard-container {
        width: 95%;
        padding: 0 1rem;
        gap: 1rem;
        margin: 1rem auto 2rem auto;
    }
    
    .welcome-section h1, .welcome-section p {
        font-size: 2rem;
    }
    
    .total-points-section .value {
        font-size: 3rem;
    }
    
    .supplier-cards {
        grid-template-columns: 1fr;
    }
    
    .category-buttons {
        flex-direction: column;
    }
    
    /* Responsive supplier cards layout */
    .supplier-cards-wrapper {
        padding: 0; /* No padding - flush with container edges */
    }
    
    .supplier-nav-button {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* Additional responsive breakpoints for supplier cards */
@media (max-width: 1199px) and (min-width: 768px) {
    /* Tablet: full width */
    .supplier-cards-wrapper {
        padding: 0; /* No padding - flush with container edges */
    }
}

@media (max-width: 479px) {
    /* Small mobile: full width */
    .supplier-cards-wrapper {
        padding: 0; /* No padding - flush with container edges */
    }
    
    .supplier-nav-button {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .supplier-card-wrapper {
        width: 336px; /* 40% bigger: 240 * 1.4 = 336px */
    }
    
    .supplier-card {
        height: 188px; /* Proportional height for mobile: 336/413 * 231 ≈ 188px */
    }
    
    /* Keep logo and spendable container fixed to bottom via Tailwind/desktop defaults */
}

/* Placeholder message */
#supplier-placeholder-message {
    color: #B0B0B0;
    font-style: italic;
    margin: 2rem 0;
}

/* =============================================
   BUTTON STYLE GUIDE - OMG Rewards
   ============================================= */

/* CSS Custom Properties for Button Consistency */
:root {
    --btn-padding-base: 0.75rem 2rem;
    --btn-padding-mobile: 0.75rem 1.5rem;
    --btn-padding-small: 0.6rem 1.2rem;
    --btn-radius: 25px;
    --btn-font-size-base: 16px;
    --btn-font-size-mobile: 16px;
    --btn-font-size-small: 16px;
    --btn-transition: all 0.3s ease;
    --btn-font-weight: 300;
    
    /* OMG Brand Colors */
    --omg-gold: #A99C67;
    --omg-gold-dark: #8a7e52;
    --omg-gold-darker: #706643;
    --omg-white: #ffffff;
    --omg-white-hover: #f0f0f0;
    --omg-white-dark: #cccccc;
    --omg-dark: #1A1A1A;
}

/* Base Button Class - Foundation for all buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: var(--btn-padding-base);
    border-radius: var(--btn-radius);
    font-size: var(--btn-font-size-base);
    font-weight: var(--btn-font-weight);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    letter-spacing: 0.02em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--btn-transition);
    white-space: nowrap;
    box-sizing: border-box;
}

/* Primary Button - Gold background, white text */
.btn-primary {
    background-color: var(--omg-gold);
    color: var(--omg-white);
}

.btn-primary:hover {
    background-color: var(--omg-white);
    color: var(--omg-gold);
}

.btn-primary:active {
    background-color: var(--omg-white-hover);
    color: var(--omg-gold);
}

/* Secondary Button - White background, gold text */
.btn-secondary {
    background-color: var(--omg-white);
    color: var(--omg-gold);
}

.btn-secondary:hover {
    background-color: var(--omg-gold);
    color: var(--omg-white);
}

.btn-secondary:active {
    background-color: var(--omg-gold-dark);
    color: var(--omg-white);
}

/* Tertiary Button - Transparent background, gold text with border */
.btn-tertiary {
    background-color: transparent;
    color: var(--omg-gold);
    border: 2px solid var(--omg-gold);
}

.btn-tertiary:hover {
    background-color: var(--omg-gold);
    color: var(--omg-white);
    border-color: var(--omg-gold);
}

/* Dark Button - Dark background, white text */
.btn-dark {
    background-color: var(--omg-dark);
    color: var(--omg-white);
}

.btn-dark:hover {
    background-color: var(--omg-white);
    color: var(--omg-dark);
}

/* Button States */
.btn:disabled {
    background-color: #666666;
    color: #999999;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn:disabled:hover {
    background-color: #666666;
    color: #999999;
}

/* Button Sizes */
.btn-sm {
    padding: 6px 8px;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 12px 16px;
    font-size: 1rem;
}

/* Icon Buttons */
.btn-icon {
    padding: 8px;
    width: auto;
    min-width: auto;
}

/* Button Groups */
.btn-group {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-group.center {
    justify-content: center;
}

.btn-group.start {
    justify-content: flex-start;
}

.btn-group.end {
    justify-content: flex-end;
}

/* Responsive Button Styles */
@media (max-width: 768px) {
    .btn {
        padding: var(--btn-padding-mobile);
        font-size: var(--btn-font-size-mobile);
    }
    
    .btn-group {
        gap: 10px;
    }
    
    .btn-sm {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .btn-lg {
        padding: 14px 20px;
        font-size: 1.1rem;
    }
    
    /* Legacy button responsive behavior */
    .button,
    .header-button {
        padding: var(--btn-padding-mobile);
        font-size: var(--btn-font-size-mobile);
    }
}

@media (max-width: 480px) {
    .btn {
        padding: var(--btn-padding-small);
        font-size: var(--btn-font-size-small);
    }
    
    .btn-group {
        gap: 8px;
    }
    
    .btn-group.mobile-stack {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-group.mobile-stack .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    /* About OMG section buttons - side by side on mobile */
    .about-omg-section .btn-group {
        justify-content: center;
        flex-direction: row !important; /* Force side by side */
        gap: 12px;
    }
    
    .about-omg-section .btn {
        width: auto;
        flex: 1;
        max-width: 180px; /* Limit width to fit two buttons */
        padding: 12px 18px !important; /* Increased padding for better touch targets */
        font-size: var(--btn-font-size-mobile) !important; /* Use standard 16px from font-map */
        font-weight: var(--btn-font-weight) !important; /* Use standard 300 weight from font-map */
    }
    
    /* Ensure consistent padding for both button types */
    .about-omg-section .btn-dark,
    .about-omg-section .btn-tertiary {
        padding: 12px 18px !important; /* Same padding for both buttons */
        font-size: var(--btn-font-size-mobile) !important; /* Ensure 16px per font-map */
        font-weight: var(--btn-font-weight) !important; /* Ensure 300 weight per font-map */
    }
    
    .btn-sm {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    .btn-lg {
        padding: 12px 18px;
        font-size: 1rem;
    }
    
    /* Legacy button responsive behavior */
    .button,
    .header-button {
        padding: var(--btn-padding-small);
        font-size: var(--btn-font-size-small);
    }
}

/* Legacy Button Class Compatibility */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: var(--btn-padding-base);
    border-radius: var(--btn-radius);
    font-size: var(--btn-font-size-base);
    font-weight: var(--btn-font-weight);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    letter-spacing: 0.02em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--btn-transition);
    white-space: nowrap;
    box-sizing: border-box;
    background-color: var(--omg-gold);
    color: var(--omg-white);
}

.button:hover {
    background-color: var(--omg-white);
    color: var(--omg-gold);
}

.button.secondary {
    background-color: var(--omg-white);
    color: var(--omg-gold);
}

.button.secondary:hover {
    background-color: var(--omg-gold);
    color: var(--omg-white);
}

/* Specific Button Overrides for existing components */
.header-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: var(--btn-padding-base);
    border-radius: var(--btn-radius);
    font-size: var(--btn-font-size-base);
    font-weight: var(--btn-font-weight);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    letter-spacing: 0.02em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--btn-transition);
    white-space: nowrap;
    box-sizing: border-box;
    background-color: var(--omg-gold);
    color: var(--omg-white);
}

.header-button:hover {
    background-color: var(--omg-white);
    color: var(--omg-gold);
}

.header-button.secondary {
    background-color: var(--omg-white);
    color: var(--omg-gold);
}

.header-button.secondary:hover {
    background-color: var(--omg-gold);
    color: var(--omg-white);
}

.side-menu .bottom-menu-section {
    margin-top: auto;
    padding-bottom: 20px;
}

/* Dropdown Menu Styles */
.side-menu .menu-dropdown {
    position: relative;
}

.side-menu .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #202020;
    text-decoration: none;
    padding: 20px 25px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.side-menu .dropdown-toggle:hover {
    color: #ffffff;
}

.side-menu .dropdown-toggle.active {
    background-color: #202020;
    color: #FFFFFF;
    width: fit-content;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
}

.side-menu .dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.side-menu .dropdown-menu {
    max-height: 0;
    overflow: hidden;
    background-color: transparent;
    transition: max-height 0.3s ease;
}

.side-menu .menu-dropdown:hover .dropdown-menu {
    max-height: 500px;
}

.side-menu .menu-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.side-menu .dropdown-menu a {
    display: block;
    color: #202020;
    text-decoration: none;
    padding: 10px 25px;
    padding-left: 45px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
}

.side-menu .dropdown-menu a:hover {
    color: #ffffff;
}

/* Mobile dropdown active state */
.side-menu .menu-dropdown.dropdown-active .dropdown-menu {
    max-height: 500px;
}

.side-menu .menu-dropdown.dropdown-active .dropdown-arrow {
    transform: rotate(180deg);
}

/* Font specifications already set above to match menu buttons */

/* =================================================================== */
/* BUSINESS PAGES MOBILE FULL-WIDTH STYLES */
/* =================================================================== */

/* Mobile Full-Width Overrides for Business Info Pages */
@media (max-width: 768px) {
    /* Make business page containers full width on mobile */
    .business-page-container,
    .business-detail-container,
    .about-page-container {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Business info sections full width */
    .business-info-section,
    .business-info {
        width: 100% !important;
        max-width: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Content sections within business pages */
    .info-sections,
    .services-section,
    .gallery-container,
    .business-description,
    .service-cards-container {
        width: 100% !important;
        max-width: none !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Header sections for business pages */
    .business-header {
        width: 100% !important;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Center all text and buttons on mobile */
    .business-info-section,
    .business-details,
    .info-section,
    .services-section,
    .business-description,
    .action-buttons {
        text-align: center !important;
    }
    
    /* Hide navigation arrows on mobile */
    .gallery-nav-arrow,
    .service-nav-arrow {
        display: none !important;
    }
    
    /* Make galleries and service cards full width */
    .gallery-container,
    .service-cards-container,
    .service-cards-wrapper {
        width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    /* Enable touch scrolling for service cards on mobile */
    .service-cards-container {
        overflow-x: auto !important;
        scrollbar-width: none !important; /* Hide scrollbar in Firefox */
        -ms-overflow-style: none !important; /* Hide scrollbar in IE and Edge */
    }
    
    .service-cards-container::-webkit-scrollbar {
        display: none !important; /* Hide scrollbar in Chrome, Safari, and Opera */
    }
}

@media (max-width: 480px) {
    /* Extra small mobile devices - minimal padding */
    .business-page-container,
    .business-detail-container,
    .about-page-container,
    .business-header {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
}
