/* Professional Cigar Lounge Theme Variables - Updated */
:root {
    --primary-color: #331f15;         /* Accent color as requested */
    --primary-light: #4a2c1a;         /* Lighter mahogany */
    --primary-dark: #1a0f08;          /* Deep chocolate */
    --secondary-color: #8b6914;       /* Aged gold/brass */
    --background-color: #1e1a17;      /* Main background as requested */
    --surface-color: #2a241f;         /* Lighter charcoal */
    --card-background: #332b24;       /* Header background as requested */
    --text-primary: #f4f1eb;          /* Warm white */
    --text-secondary: #d4c5b9;        /* Light cream */
    --text-muted: #9a8c7e;            /* Muted tan */
    --border-color: #4a3d32;          /* Dark brown border */
    --accent-gold: #d4af37;           /* Premium gold */
    --accent-copper: #b87333;         /* Copper highlight */
    --shadow-color: rgba(0, 0, 0, 0.4);
    --success-color: #22c55e;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.1);
    --sidebar-width: 240px;
    
    /* Stat card and humidor hub header colors */
    --stat-card-bg: rgba(26, 15, 8, 0.9);
    --stat-card-bg-hover: rgba(26, 15, 8, 0.95);
    --stat-card-border: #4a3d32;
    --stat-card-text-primary: #f4f1eb;
    --stat-card-text-muted: #9a8c7e;
    --stat-card-icon-color: #b87333;
    --hub-header-bg: linear-gradient(135deg, #331f15, #2a241f);
    --hub-header-border: #4a3d32;
    --hub-header-text-primary: #d4af37;
    --hub-header-text-secondary: #d4c5b9;
    
    /* Humidor action buttons (share, edit, delete) */
    --action-btn-bg: rgba(51, 31, 21, 0.6);
    --action-btn-border: #4a3d32;
    --action-btn-text: #d4c5b9;
    --action-btn-hover-bg: #d4af37;
    --action-btn-hover-text: #1a0f08;
    --action-btn-hover-border: #d4af37;
}

/* Light Mode Theme Variables */
:root.light-mode {
    --primary-color: #a0765a;         /* Warm light mahogany */
    --primary-light: #b58a6c;         /* Cedar wood tone */
    --primary-dark: #1a0f08;          /* USE DARK THEME VALUE - Deep chocolate */
    --secondary-color: #99793a;       /* Aged-brass gold */
    --background-color: #f3ede4;      /* Soft warm parchment */
    --surface-color: #e7dfd4;         /* Light cedar-tan surface */
    --card-background: #efe7de;       /* Slightly deeper parchment */
    --surface-secondary: rgba(160, 118, 90, 0.15);  /* Light warm-brown tint */
    --text-primary: #3e332c;          /* Rich charcoal-brown */
    --text-secondary: #6a5a4e;        /* Warm taupe */
    --text-muted: #948477;            /* Soft tobacco-leaf gray-brown */
    --border-color: #c2b7ab;          /* Warm clay-gray border */
    --accent-gold: #d4af37;           /* Use same gold as dark theme */
    --accent-copper: #b87333;         /* Use same copper as dark theme */
    --shadow-color: rgba(0, 0, 0, 0.12);
    --success-color: #16a34a;
    --error-color: #dc2626;
    --warning-color: #d97706;
    --warning-bg: rgba(217, 119, 6, 0.1);
    --button-text-color: #1a0f08;     /* Force dark theme button text color */
    
    /* Stat card and humidor hub header colors - use dark theme values */
    --stat-card-bg: rgba(26, 15, 8, 0.9);
    --stat-card-bg-hover: rgba(26, 15, 8, 0.95);
    --stat-card-border: #4a3d32;
    --stat-card-text-primary: #f4f1eb;
    --stat-card-text-muted: #9a8c7e;
    --stat-card-icon-color: #b87333;
    --hub-header-bg: linear-gradient(135deg, #331f15, #2a241f);
    --hub-header-border: #4a3d32;
    --hub-header-text-primary: #d4af37;
    --hub-header-text-secondary: #d4c5b9;
    
    /* Humidor action buttons (share, edit, delete) - use dark theme values */
    --action-btn-bg: rgba(51, 31, 21, 0.6);
    --action-btn-border: #4a3d32;
    --action-btn-text: #d4c5b9;
    --action-btn-hover-bg: #d4af37;
    --action-btn-hover-text: #1a0f08;
    --action-btn-hover-border: #d4af37;
}


/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 80%; /* Scale entire UI to 80% */
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background-color);
    min-height: 100vh;
    position: relative;
    display: flex;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#app {
    display: flex;
    width: 100%;
    min-height: 100vh;
}



/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--surface-color);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: calc(100vh - 80px);
    left: 0;
    top: 80px;
    z-index: 100;
    box-shadow: 4px 0 20px var(--shadow-color);
}

.sidebar-nav {
    flex: 1;
    padding: 1.5rem 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-section:nth-child(2) {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.nav-section:nth-child(2) .nav-item:last-child {
    margin-top: auto;
}

.nav-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: calc(100% - 2rem);
    margin: 0 1rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-copper));
    color: var(--primary-dark);
    border: none;
    border-radius: 0.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.nav-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.nav-action-btn:hover::before {
    left: 100%;
}

.nav-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 25px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.nav-action-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 10px rgba(212, 175, 55, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-action-btn .add-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.nav-section-bottom {
    margin-top: auto;
    margin-bottom: 0;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    padding-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 1.5rem;
    margin-bottom: 0.75rem;
    font-family: 'Inter', system-ui, sans-serif;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    border-radius: 0 0.5rem 0.5rem 0;
}

.nav-item .nav-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.nav-item:hover {
    background: var(--primary-light);
    color: var(--text-primary);
    border-left-color: var(--accent-gold);
}

.nav-item.active {
    background: var(--primary-light);
    color: var(--text-primary);
    border-left-color: var(--accent-gold);
    font-weight: 600;
}

.nav-icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Dropdown Styles */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    border-radius: 0 0.5rem 0.5rem 0;
    cursor: pointer;
    text-align: left;
    font-family: 'Inter', system-ui, sans-serif;
}

.nav-dropdown-toggle:hover {
    background: var(--primary-light);
    color: var(--text-primary);
    border-left-color: var(--accent-gold);
}

.nav-dropdown-toggle.active {
    background: var(--primary-light);
    color: var(--text-primary);
    border-left-color: var(--accent-gold);
    font-weight: 600;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
    color: var(--accent-gold);
}

.nav-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: var(--primary-dark);
    margin-left: 1rem;
    border-left: 2px solid var(--accent-gold);
}

.nav-dropdown.open .nav-dropdown-content {
    max-height: 300px;
}

.nav-dropdown-content .nav-item {
    padding: 0.75rem 1rem;
    margin-left: 0.5rem;
    border-left: 2px solid transparent;
    font-size: 0.9rem;
}

.nav-dropdown-content .nav-item:hover {
    background: var(--surface-color);
    border-left-color: var(--accent-copper);
}

.nav-dropdown-content .nav-item.active {
    background: var(--surface-color);
    border-left-color: var(--accent-copper);
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 2px solid #654321;
    background: linear-gradient(145deg, #3d2817 0%, #2f1b14 100%);
}

.add-btn-sidebar {
    width: 100%;
    background: var(--accent-gold);
    color: var(--primary-dark);
    border: 1px solid var(--accent-gold);
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Inter', system-ui, sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.add-btn-sidebar:hover {
    background: var(--accent-copper);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 215, 0, 0.3);
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-header {
    background: var(--card-background);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000; /* Higher than sidebar */
    box-shadow: 0 1px 3px var(--shadow-color);
    height: 80px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Inter', system-ui, sans-serif;
    letter-spacing: -0.02em;
    margin: 0;
}

/* Header User Info Styles */
.header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    position: relative;
}

.user-info {
    position: relative;
}

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.theme-toggle:hover {
    background: var(--card-background);
    border-color: var(--accent-gold);
    transform: translateY(-1px);
}

.theme-toggle:active {
    transform: translateY(0);
}

.theme-icon {
    font-size: 1.25rem;
    transition: all 0.3s ease;
    color: var(--accent-gold);
}

.theme-toggle:hover .theme-icon {
    transform: rotate(20deg);
}

/* User Menu Trigger Button */
.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', system-ui, sans-serif;
}

.user-menu-trigger:hover {
    background: var(--card-background);
    border-color: var(--accent-gold);
    transform: translateY(-1px);
}

.user-menu-trigger:active {
    transform: translateY(0);
}

/* User Avatar */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-copper));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-avatar-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-transform: uppercase;
    font-family: 'Inter', system-ui, sans-serif;
}

.user-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    font-family: 'Inter', system-ui, sans-serif;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-arrow {
    font-size: 0.625rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
    margin-left: -0.25rem;
}

.user-menu-trigger:hover .user-dropdown-arrow {
    color: var(--accent-gold);
}

/* User Dropdown Menu */
.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 240px;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
}

.user-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Header */
.user-dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--surface-color);
}

.user-dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-copper));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-dropdown-avatar-text {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-transform: uppercase;
    font-family: 'Inter', system-ui, sans-serif;
}

.user-dropdown-info {
    flex: 1;
    min-width: 0;
}

.user-dropdown-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'Inter', system-ui, sans-serif;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-username {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'Inter', system-ui, sans-serif;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0;
}

/* Dropdown Items */
.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: 'Inter', system-ui, sans-serif;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
    text-decoration: none;
}

.user-dropdown-item:hover {
    background: var(--surface-color);
    color: var(--text-primary);
}

.user-dropdown-item.logout-item {
    color: var(--error-color);
}

.user-dropdown-item.logout-item:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error-color);
}

.dropdown-item-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.page-title {
    flex: 1;
    text-align: left;
}

.page-title h1 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    letter-spacing: -0.02em;
}

.page-title p {
    margin: 0.25rem 0 0 0;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 400;
}

.page-actions {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

/* Page Actions Header */
.page-actions-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.page-title {
    grid-column: 1;
    grid-row: 1;
    margin-top: 0.625rem;
}

/* Inline Search Section within Header */
.cigar-search-section-inline {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.875rem;
}

/* Mobile Filter Toggle Button (hidden on desktop) */
.mobile-filter-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    justify-content: space-between;
    -webkit-tap-highlight-color: transparent;
}

.mobile-filter-toggle:active {
    transform: scale(0.98);
}

.mobile-filter-toggle .mdi {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.mobile-filter-toggle.active {
    background: var(--primary-light);
    border-color: var(--accent-gold);
}

.mobile-filter-toggle.active .mdi-chevron-down {
    transform: rotate(180deg);
}

.filter-toggle-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.375rem;
    background: var(--accent-gold);
    color: var(--primary-dark);
    border-radius: 0.625rem;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    margin-left: 0.5rem;
}

.cigar-search-section-inline .search-bar {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.cigar-search-section-inline .search-input {
    flex: 1;
    padding: 0.625rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-family: 'Inter', system-ui, sans-serif;
    background: #ffffff !important;
    color: #000000 !important;
    transition: all 0.2s ease;
}

.cigar-search-section-inline .search-input::placeholder {
    color: #666666 !important;
}

.cigar-search-section-inline .search-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.cigar-search-section-inline .search-btn {
    padding: 0.625rem 1.25rem;
    background: var(--accent-gold);
    color: var(--primary-dark);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 15px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.cigar-search-section-inline .search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.cigar-search-section-inline .search-btn:hover::before {
    left: 100%;
}

.cigar-search-section-inline .search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 25px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cigar-search-section-inline .search-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.header-actions {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 0.625rem;
}

/* Primary Add Cigar Button */
.add-cigar-btn-primary,
.add-humidor-btn-primary {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-copper));
    color: var(--primary-dark);
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', system-ui, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 
        0 4px 15px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.add-cigar-btn-primary::before,
.add-humidor-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.add-cigar-btn-primary:hover::before,
.add-humidor-btn-primary:hover::before {
    left: 100%;
}

.add-cigar-btn-primary:hover,
.add-humidor-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 25px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.add-cigar-btn-primary:active,
.add-humidor-btn-primary:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 10px rgba(212, 175, 55, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.add-cigar-btn-primary .add-icon,
.add-humidor-btn-primary .add-icon {
    font-size: 1.25rem;
}

/* Cigar Search Section */
.cigar-search-section {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 
        0 4px 20px var(--shadow-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cigar-search-section .search-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.cigar-search-section .search-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: 'Inter', system-ui, sans-serif;
    background: #ffffff !important;
    color: #000000 !important;
    transition: all 0.2s ease;
}

.cigar-search-section .search-input::placeholder {
    color: #666666 !important;
}

.cigar-search-section .search-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 
        0 0 0 3px rgba(212, 175, 55, 0.1),
        inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.cigar-search-section .search-btn {
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-copper));
    color: var(--primary-dark);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.cigar-search-section .search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.cigar-search-section .search-btn:hover::before {
    left: 100%;
}

.cigar-search-section .search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 25px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cigar-search-section .search-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 10px rgba(212, 175, 55, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

/* Mobile filters wrapper */
.search-filters-wrapper {
    width: 100%;
}

/* On desktop, show filters by default */
@media (min-width: 769px) {
    .search-filters-wrapper {
        display: block !important;
        max-height: none !important;
    }
    
    .mobile-filter-toggle {
        display: none !important;
    }
}

/* Mobile-specific collapsible behavior */
@media (max-width: 768px) {
    .search-filters-wrapper.mobile-collapsed {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .search-filters-wrapper.mobile-expanded {
        max-height: 800px;
        transition: max-height 0.3s ease;
    }
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.filter-chip:hover {
    background: var(--primary-light);
    border-color: var(--accent-gold);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.filter-chip[data-active="true"] {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-copper));
    border-color: var(--accent-gold);
    color: var(--primary-dark);
    box-shadow: 0 2px 12px rgba(212, 175, 55, 0.3);
}

.filter-chip .mdi {
    font-size: 1.1rem;
}

.filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.375rem;
    background: var(--accent-gold);
    color: var(--primary-dark);
    border-radius: 0.625rem;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.filter-chip[data-active="true"] .filter-badge {
    background: var(--primary-dark);
    color: var(--accent-gold);
}

.filter-chip.clear-filters {
    background: var(--error-color);
    border-color: var(--error-color);
    color: white;
}

.filter-chip.clear-filters:hover {
    background: #c53030;
    border-color: #c53030;
}

/* Filter Modal */
.filter-modal-body {
    padding: 0 2rem 2rem;
}

.filter-search {
    margin-bottom: 1rem;
}

.filter-search .search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 0.5rem;
    color: #000000;
    font-size: 0.95rem;
}

.filter-search .search-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.filter-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
}

.filter-item {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    cursor: pointer;
    transition: background 0.2s ease;
}

.filter-item:last-child {
    border-bottom: none;
}

.filter-item:hover {
    background: rgba(212, 175, 55, 0.1);
}

.filter-item input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
    accent-color: var(--accent-gold);
}

.filter-item label {
    flex: 1;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.filter-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.filter-actions .btn-secondary,
.filter-actions .btn-primary {
    padding: 0.75rem 1.5rem;
}

.page-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--background-color);
    margin-left: var(--sidebar-width);
    margin-top: 80px;
    width: calc(100% - var(--sidebar-width));
    box-sizing: border-box;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 2rem;
}

.quick-actions h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2f1b14;
    margin-bottom: 1rem;
    font-family: 'Georgia', serif;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.action-card {
    background: linear-gradient(145deg, #f5deb3 0%, #deb887 100%);
    border: 2px solid #8b4513;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.action-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: #cd853f;
}

.action-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.action-label {
    font-size: 1rem;
    font-weight: 600;
    color: #3a2f28;
    font-family: 'Georgia', serif;
}

/* Recent Activity */
.recent-activity {
    margin-top: 2rem;
}

.recent-activity h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2f1b14;
    margin-bottom: 1rem;
    font-family: 'Georgia', serif;
}

.recent-cigars {
    background: linear-gradient(145deg, #f5deb3 0%, #deb887 100%);
    border: 2px solid #8b4513;
    border-radius: 0.75rem;
    padding: 1.5rem;
    min-height: 200px;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Button Styles */
.btn-primary,
.btn-secondary,
.add-btn {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-copper));
    color: var(--primary-dark);
    border: none;
    padding: 0.875rem 1.75rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', system-ui, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 
        0 4px 15px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::before,
.btn-secondary::before,
.add-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-primary:hover::before,
.btn-secondary:hover::before,
.add-btn:hover::before {
    left: 100%;
}

.btn-primary,
.add-btn {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-copper));
    color: var(--primary-dark);
    border: none;
}

.btn-primary:hover,
.add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 25px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:active,
.add-btn:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 10px rgba(212, 175, 55, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-copper));
    color: var(--primary-dark);
    border: none;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 25px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 
        0 2px 10px rgba(212, 175, 55, 0.3),
        inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.add-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Main Content */
.main {
    padding: 2rem 0;
}

/* Search Section */
.search-section {
    background: linear-gradient(145deg, #f5deb3 0%, #deb887 50%, #d2b48c 100%);
    border: 2px solid #8b4513;
    border-radius: 0.75rem;
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.search-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.search-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid #8b4513;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: 'Georgia', serif;
    background: #fff8dc;
    color: #3a2f28;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #cd853f;
    background: #fffff0;
    box-shadow: 
        0 0 0 3px rgba(205, 133, 63, 0.2),
        inset 0 2px 4px rgba(139, 69, 19, 0.1);
}

.search-btn {
    padding: 0.875rem 1.5rem;
    background: var(--accent-gold);
    color: var(--primary-dark);
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.search-btn:hover::before {
    left: 100%;
}

.search-btn:hover {
    background: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 25px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid #8b4513;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-family: 'Georgia', serif;
    background: #fff8dc;
    color: #3a2f28;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: inset 0 2px 4px rgba(139, 69, 19, 0.1);
}

.filter-select:focus {
    outline: none;
    border-color: #cd853f;
    background: #fffff0;
    box-shadow: 
        0 0 0 3px rgba(205, 133, 63, 0.2),
        inset 0 2px 4px rgba(139, 69, 19, 0.1);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--stat-card-bg);
    border: 1px solid var(--stat-card-border);
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-card:hover {
    background: var(--stat-card-bg-hover);
    border-color: var(--accent-copper);
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--stat-card-icon-color);
    opacity: 1;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--stat-card-text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--stat-card-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

/* Cigars Section */
.cigars-section {
    background: linear-gradient(145deg, #f5deb3 0%, #deb887 50%, #d2b48c 100%);
    border: 2px solid #8b4513;
    border-radius: 0.75rem;
    padding: 1.75rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.section-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #D4AF37;
    font-family: 'Georgia', serif;
    text-shadow: 1px 1px 2px rgba(255, 215, 0, 0.2);
}

.view-toggle {
    display: flex;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.view-btn {
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.view-btn.active {
    background: var(--accent-gold);
    color: var(--primary-dark);
    border-color: var(--accent-gold);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.view-btn:hover:not(.active) {
    background: var(--primary-light);
    color: var(--text-secondary);
    border-color: var(--border-color);
}

/* Loading Spinner */
.loading {
    text-align: center;
    padding: 3rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Cigars Grid */
/* Cigar grid removed - using definition at line 1982 */

.cigar-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 20px var(--shadow-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cigar-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-8px);
    box-shadow: 
        0 16px 40px var(--shadow-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cigar-card-image {
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 0.75rem 0.75rem 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.cigar-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    color: var(--text-primary);
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cigar-card:hover .cigar-card-overlay {
    transform: translateY(0);
}

.cigar-card-content {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
    background: var(--card-background);
}

.cigar-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.cigar-brand {
    font-size: 0.9rem;
    color: var(--accent-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Inter', system-ui, sans-serif;
}

.cigar-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.5rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    min-height: 2rem;
}

.edit-btn {
    color: var(--accent-gold);
    border-color: transparent;
}

.edit-btn:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    border-color: var(--accent-gold);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.delete-btn {
    color: var(--error-color);
    border-color: transparent;
}

.delete-btn:hover {
    background: var(--error-color);
    color: white;
    border-color: var(--error-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.cigar-name {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.cigar-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    font-family: 'Inter', system-ui, sans-serif;
}

.detail-value {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 0.25rem;
    font-family: 'Inter', system-ui, sans-serif;
}

.cigar-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.quantity-badge {
    background: linear-gradient(145deg, #8b4513 0%, #a0522d 100%);
    color: #fff8dc;
    padding: 0.5rem 1rem;
    border: 1px solid #654321;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Georgia', serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 215, 0, 0.2);
}

.price-tag {
    font-size: 1.1rem;
    font-weight: 700;
    color: #8b4513;
    font-family: 'Georgia', serif;
    text-shadow: 0px 1px 2px rgba(255, 215, 0, 0.3);
}

/* Organizer Cards */
.organizers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.organizer-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 
        0 4px 20px var(--shadow-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.organizer-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-4px);
    box-shadow: 
        0 8px 25px var(--shadow-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.organizer-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.organizer-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.organizer-name {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.3;
}

.organizer-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.organizer-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.organizer-metadata {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0.5rem 0 0 0;
    padding: 0.25rem 0;
    font-weight: 500;
}

.organizer-metadata.strength-level {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.strength-meter {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: rgba(220, 53, 69, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    height: 1.5rem;
}

.strength-bar {
    width: 8px;
    height: 16px;
    background: rgba(220, 53, 69, 0.2);
    border-radius: 2px;
    display: inline-block;
}

.strength-bar.filled {
    background: #dc3545;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #718096;
    margin-bottom: 2rem;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.welcome-section h2 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.welcome-section p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Humidor Sections */
.humidor-section {
    margin-bottom: 3rem;
}

.humidor-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gold);
}

.humidor-info {
    flex: 1;
}

.humidor-title {
    color: var(--gold);
    font-size: 1.75rem;
    margin: 0 0 0.5rem 0;
}

.humidor-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.humidor-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: 2rem;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.humidor-section-header:hover .humidor-actions {
    opacity: 1;
}

.humidor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gold);
}

.humidor-header h3 {
    color: var(--gold);
    font-size: 1.5rem;
    margin: 0;
}

.humidor-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.cigars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); /* Reduced from 300px */
    gap: 1rem;
    margin-top: 1rem;
}

/* Cigar Cards */
.cigar-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%; /* Fill grid cell height */
}

.cigar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(212, 175, 55, 0.3);
    border-color: var(--accent-gold);
}

/* Image container at top of card */
.cigar-card-image {
    width: 100%;
    height: 176px; /* Reduced from 220px (80% of original) */
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2a241f 0%, #1e1a17 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Prevent image from shrinking */
}

.cigar-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cigar-card:hover .cigar-card-image img {
    transform: scale(1.05);
}

/* Placeholder icon when no image */
.cigar-card-image-placeholder {
    font-size: 4rem;
    color: rgba(212, 175, 55, 0.3);
    opacity: 0.6;
}

/* Card content below image */
.cigar-card-content {
    padding: 1rem 1.25rem 1.25rem;
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1; /* Take remaining space in card */
}

.cigar-card-brand {
    color: var(--accent-gold);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 0.5rem 0;
}

.cigar-card-name {
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    flex-grow: 1; /* Allow name to take available space */
}

.cigar-card-humidor {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
    padding: 0.375rem 0.625rem;
    background: rgba(26, 15, 8, 0.3);
    border-radius: 0.5rem;
    border-left: 2px solid var(--accent-copper);
}

.cigar-card-humidor i {
    font-size: 0.875rem;
    color: var(--accent-copper);
}

.cigar-card-humidor span {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Card footer with strength indicator and quantity controls */
.cigar-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: auto;
    width: 100%;
}

/* Strength indicator positioned at bottom-left */
.strength-indicator {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(26, 15, 8, 0.6);
    border-radius: 0.5rem;
    width: fit-content;
    margin-right: auto; /* Push to left, quantity stays on right */
}

.strength-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.2s ease;
}

.strength-dot.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    box-shadow: 0 0 4px rgba(212, 175, 55, 0.5);
}

/* Quantity counter pinned to bottom right */
.cigar-card-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(26, 15, 8, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 0.5rem;
    padding: 0.25rem 0.5rem;
    backdrop-filter: blur(8px);
    width: fit-content;
}

.quantity-btn {
    background: transparent;
    border: none;
    color: var(--accent-gold);
    font-size: 1.25rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0 0.375rem;
    line-height: 1;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5rem;
}

.quantity-btn:hover {
    color: var(--text-primary);
    transform: scale(1.2);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-value {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    min-width: 1.5rem;
    text-align: center;
    user-select: none;
}

/* Action buttons overlay on image */
.cigar-card-actions {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cigar-card:hover .cigar-card-actions {
    opacity: 1;
}

.cigar-card-actions .action-btn {
    background: rgba(26, 15, 8, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: var(--accent-gold);
    width: 2rem;
    height: 2rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    padding: 0;
}

.cigar-card-actions .action-btn:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    border-color: var(--accent-gold);
    transform: scale(1.1);
}

/* Favorite Button */
.favorite-btn {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(26, 15, 8, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--accent-gold);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    padding: 0;
    opacity: 0;
    z-index: 10;
}

.cigar-card:hover .favorite-btn {
    opacity: 1;
}

.favorite-btn .favorite-icon {
    transition: all 0.2s ease;
}

.favorite-btn:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    transform: scale(1.1);
}

.favorite-btn:hover .favorite-icon {
    color: var(--primary-dark);
}

.favorite-btn.is-favorite {
    opacity: 1;
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--accent-gold);
}

.favorite-btn.is-favorite .favorite-icon {
    color: #ff4757;
}

.favorite-btn.is-favorite:hover {
    background: #ff4757;
}

.favorite-btn.is-favorite:hover .favorite-icon {
    color: white;
}

/* Empty Humidor State */
.empty-humidor {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    overflow-y: auto;
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.show,
.modal.active {
    display: flex !important;
}

.modal-content {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a1612 100%);
    border: 2px solid var(--accent-gold);
    border-radius: 1rem;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.9), 
                0 0 0 1px rgba(212, 175, 55, 0.1),
                0 0 50px rgba(212, 175, 55, 0.15);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Modal Scrollbar */
.modal-content::-webkit-scrollbar {
    width: 10px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0 1rem 1rem 0;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.5);
    border-radius: 5px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

.modal-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-gold);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.close-btn {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    font-size: 1.75rem;
    color: var(--accent-gold);
    cursor: pointer;
    padding: 0;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    line-height: 1;
}

.close-btn:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    border-color: var(--accent-gold);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* Import URL Section */
.import-url-section {
    display: flex;
    justify-content: center;
    padding: 1rem 2rem;
    margin-bottom: 1rem;
}

/* Form */
.cigar-form,
.organizer-form {
    padding: 0 2rem 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', sans-serif;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: var(--primary-dark);
    color: var(--text-primary);
}

.form-group input[type="number"]::-webkit-inner-spin-button,
.form-group input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
    height: 40px;
}

.form-group input[type="date"] {
    color-scheme: dark;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-hint {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    font-style: italic;
}

/* Image Upload Row */
.image-upload-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.image-upload-row input[type="url"] {
    flex: 1;
}

.btn-upload {
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-copper) 100%);
    color: var(--primary-dark);
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

.btn-upload:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 2px solid rgba(212, 175, 55, 0.2);
}

/* Humidor Cards */
.humidors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.humidor-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 20px var(--shadow-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.humidor-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-4px);
    box-shadow: 
        0 8px 25px var(--shadow-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.humidor-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.humidor-info-card {
    background: rgba(26, 15, 8, 0.4);
    border: 1px solid var(--border-color);
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    flex: 0 0 auto;
}

.humidor-info-card:hover {
    background: rgba(26, 15, 8, 0.6);
    border-color: var(--accent-copper);
}

.humidor-title-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.humidor-title-section > i {
    font-size: 1.5rem;
    color: var(--accent-copper);
}

.humidor-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.humidor-location {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-height: 1.25rem;
}

.humidor-location i {
    font-size: 0.875rem;
}

.humidor-actions {
    display: flex;
    gap: 0.5rem;
}

.humidor-actions .btn-icon {
    background: var(--action-btn-bg);
    border: 1px solid var(--action-btn-border);
    color: var(--action-btn-text);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.humidor-actions .btn-icon:hover {
    background: var(--action-btn-hover-bg);
    color: var(--action-btn-hover-text);
    border-color: var(--action-btn-hover-border);
    transform: scale(1.1);
}

.humidor-actions .btn-icon i {
    font-size: 1.125rem;
}

.humidor-notes-card {
    background: rgba(26, 15, 8, 0.4);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-copper);
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
}

.humidor-notes-card > i {
    font-size: 1.25rem;
    color: var(--accent-copper);
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.humidor-notes-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

.humidor-type {
    font-size: 0.875rem;
    color: var(--accent-gold);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.humidor-stats {
    display: flex;
    gap: 0.75rem;
    flex: 0 0 auto;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--stat-card-text-muted);
    font-weight: 500;
}

.stat-value {
    font-size: 0.875rem;
    color: var(--stat-card-text-primary);
    font-weight: 600;
}

.humidor-environment {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--surface-color);
    border-radius: 0.5rem;
}

.env-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.env-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.env-value {
    font-size: 0.875rem;
    font-weight: 600;
}

.env-value.good {
    color: var(--success-color);
}

.env-value.warning {
    color: var(--warning-color);
}

.humidor-location {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    height: 0.5rem;
    background: var(--surface-color);
    border-radius: 0.25rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success-color) 0%, var(--accent-gold) 50%, var(--warning-color) 80%, var(--error-color) 100%);
    border-radius: 0.25rem;
    transition: width 0.3s ease;
}

/* Modal form buttons inherit the main button styles */

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1100;
}

.toast {
    background: white;
    border-left: 4px solid;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-width: 300px;
    animation: toastSlideIn 0.3s ease-out forwards;
    color: #2d3748;
    font-weight: 500;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.success {
    border-color: #48bb78;
    background: #f0fdf4;
    color: #166534;
}

.toast.error {
    border-color: #e53e3e;
    background: #fef2f2;
    color: #991b1b;
}

.toast.info {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #1e40af;
}

.toast-message {
    font-weight: 500;
    color: inherit;
}

/* Import URL Modal Styles */
.import-url-content {
    padding: 0 2rem 2rem;
}

.import-url-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.import-url-content p.supported-sites {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: -0.5rem;
    font-style: italic;
}

.url-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.url-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.import-status {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
}

.import-status .loading-message {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.import-status .loading-message .mdi-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.import-status .success-message {
    color: var(--success-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 197, 94, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.import-status .error-message {
    color: var(--error-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(239, 68, 68, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Mobile Menu Toggle Button (hidden on desktop) */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 0.75rem;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-menu-toggle:hover {
    background: var(--card-background);
    border-color: var(--accent-gold);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

.mobile-menu-icon {
    font-size: 1.5rem;
    color: var(--accent-gold);
    transition: transform 0.3s ease;
    pointer-events: none;
}

/* Backdrop overlay for mobile menu */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 99; /* Below sidebar (1100) and modals (1000) */
    opacity: 0;
    transition: opacity 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.sidebar-backdrop.show {
    display: block;
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    /* Show mobile menu button */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hide sidebar by default on tablet/mobile */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 280px;
        max-width: 80vw;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
        z-index: 1100;
        box-shadow: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 20px var(--shadow-color);
    }
    
    /* Adjust main content to use full width */
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    /* Adjust page header */
    .page-header {
        left: 0;
        right: 0;
        width: 100%;
        padding: 1rem 1.5rem;
    }
    
    /* Ensure content doesn't overflow */
    .page-content {
        margin-left: 0;
        width: 100%;
        padding: 1.5rem;
        max-width: 100vw;
    }
    
    /* Fix pagination container */
    .pagination-container {
        left: 0;
        right: 0;
    }
    
    /* Make buttons more touch-friendly */
    .btn,
    .btn-primary,
    .btn-secondary,
    .nav-item {
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
    }
}

@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    #app {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    .page-content {
        padding: 1rem;
        margin-left: 0;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    /* Adjust header for mobile */
    .page-header {
        height: auto;
        min-height: 60px;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
        flex-wrap: nowrap;
    }
    
    .header-left {
        flex: 1;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        min-width: 0;
        flex-shrink: 1;
    }
    
    /* Page actions header responsive */
    .page-actions-header {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        align-items: start;
        gap: 1rem;
        width: 100%;
    }
    
    .page-title {
        grid-column: 1;
        grid-row: 1;
        margin-top: 0;
    }
    
    .page-title h1 {
        font-size: 1.75rem;
    }
    
    .header-actions {
        grid-column: 2;
        grid-row: 1;
        justify-content: flex-end;
        margin-top: 0;
        width: auto;
    }
    
    .add-cigar-btn-primary,
    .add-humidor-btn-primary {
        width: auto;
        white-space: nowrap;
    }
    
    /* Search section moves below and takes full width */
    .cigar-search-section-inline {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        margin-top: 0;
    }
    
    .cigar-search-section-inline .search-bar {
        width: 100%;
        gap: 0.5rem;
    }
    
    .cigar-search-section-inline .search-input {
        flex: 1;
        min-width: 0;
    }
    
    .cigar-search-section-inline .search-btn {
        flex-shrink: 0;
        padding: 0.625rem 1rem;
        min-width: 44px;
    }
    
    /* Show mobile filter toggle, hide desktop filters */
    .mobile-filter-toggle {
        display: flex;
    }
    
    .search-filters-wrapper {
        width: 100%;
    }
    
    .search-filters {
        flex-direction: column;
        gap: 0.5rem;
        padding-top: 0.75rem;
    }
    
    .filter-chip {
        width: 100%;
        justify-content: flex-start;
        padding: 0.75rem 1rem;
    }
    
    .filter-chip .filter-badge {
        margin-left: auto;
    }
    
    .header-right {
        gap: 0.5rem;
        flex-shrink: 0;
    }
    
    .app-logo {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        min-width: 0;
        flex-shrink: 1;
    }
    
    /* Optimize logo for mobile */
    .logo-icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }
    
    .logo-text {
        font-size: 1.25rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* User menu responsive styles */
    .user-menu-trigger {
        padding: 0.375rem 0.75rem;
        gap: 0.5rem;
    }
    
    .user-name {
        display: none;
    }
    
    .user-dropdown-arrow {
        display: none;
    }
    
    .user-avatar {
        width: 28px;
        height: 28px;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
    }
    
    .theme-icon {
        font-size: 1.1rem;
    }
    
    /* Humidor header responsive */
    .humidor-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .humidor-info-card {
        width: 100%;
    }
    
    .humidor-stats {
        width: 100%;
    }
    
    .humidor-stats .stat-card {
        flex: 1;
        min-width: 120px;
    }
    
    .user-avatar-text {
        font-size: 0.75rem;
    }
    
    .user-dropdown-menu {
        min-width: 220px;
        right: 0;
        left: auto;
        max-width: calc(100vw - 2rem);
    }
    
    .page-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .search-bar {
        flex-direction: column;
        width: 100%;
    }
    
    .search-input {
        width: 100%;
    }
    
    .search-btn {
        align-self: stretch;
        width: 100%;
    }
    
    .filters {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.75rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .section-header h2 {
        text-align: center;
    }
    
    /* Grid layouts - single column on mobile */
    .cigars-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Organizers grid - responsive */
    .organizers-grid,
    .brands-grid,
    .sizes-grid,
    .origins-grid,
    .strengths-grid,
    .ring-gauges-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Humidor cards grid */
    .humidor-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    /* Favorites and wishlist grids */
    .favorites-grid,
    .wishlist-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cigar-details {
        grid-template-columns: 1fr;
    }
    
    /* Forms - full width inputs */
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-group {
        width: 100%;
    }
    
    .form-control,
    .form-select {
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .form-actions button {
        width: 100%;
    }
    
    /* Modals - near full screen on mobile */
    .modal.show {
        padding: 0.5rem;
        align-items: stretch;
    }
    
    .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: calc(100vh - 1rem);
        margin: 0.5rem 0;
        border-radius: 0.75rem;
    }
    
    .modal-header {
        padding: 1.25rem 1.25rem 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.35rem;
    }
    
    .modal-body,
    .cigar-form,
    .organizer-form,
    .humidor-form {
        padding: 0 1.25rem 1.25rem;
    }
    
    .close-modal {
        width: 32px;
        height: 32px;
    }
    
    .toast {
        min-width: auto;
        margin: 0 1rem 0.5rem;
    }
    
    .toast-container {
        right: 0;
        left: 0;
    }
}

@media (max-width: 480px) {
    /* Extra small screens - phones in portrait */
    html {
        font-size: 75%; /* Further scale down for very small screens */
    }
    
    .page-content {
        padding: 0.75rem;
    }
    
    .page-header {
        padding: 0.5rem 0.75rem;
        min-height: 56px;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
        margin-right: 0.5rem;
    }
    
    .mobile-menu-icon {
        font-size: 1.3rem;
    }
    
    .theme-toggle {
        width: 32px;
        height: 32px;
    }
    
    .theme-icon {
        font-size: 1rem;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
    }
    
    /* Sidebar adjustments */
    .sidebar {
        width: 260px;
        max-width: 85vw;
    }
    
    /* Content sections */
    .main {
        padding: 0.75rem 0;
    }
    
    .search-section,
    .cigars-section {
        padding: 0.75rem;
    }
    
    /* Cards */
    .stat-card {
        padding: 0.75rem;
    }
    
    .cigar-card,
    .organizer-card,
    .humidor-card {
        padding: 0.75rem;
    }
    
    /* Stats grid - stack on very small screens */
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    /* Action buttons */
    .btn,
    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Modals */
    .modal.show {
        padding: 0.25rem;
    }
    
    .modal-content {
        max-height: calc(100vh - 0.5rem);
        margin: 0.25rem 0;
        border-radius: 0.5rem;
    }
    
    .modal-header {
        padding: 1rem 1rem 0.75rem;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .modal-body,
    .cigar-form,
    .organizer-form,
    .humidor-form {
        padding: 0 1rem 1rem;
    }
    
    .close-modal {
        width: 28px;
        height: 28px;
        font-size: 1.5rem;
    }
    
    /* Form elements */
    .form-control,
    .form-select,
    .form-textarea {
        padding: 0.625rem 0.75rem;
        font-size: 0.95rem;
    }
    
    /* Pagination */
    .pagination-container {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .pagination-btn,
    .pagination-page-btn {
        min-width: 32px;
        height: 32px;
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
    }
    
    /* Section headers */
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    /* Humidor hub */
    .humidor-hub-header h2 {
        font-size: 1.75rem;
    }
    
    .humidor-hub-header p {
        font-size: 0.95rem;
    }
    
    /* Toast notifications */
    .toast {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Setup Wizard Styles */
.setup-body {
    background: linear-gradient(135deg, var(--background-color) 0%, #1a1314 50%, #0f0b0a 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, sans-serif;
}

.setup-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
}

.setup-header {
    text-align: center;
    margin-bottom: 3rem;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.setup-header .logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.setup-header .app-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin: 0.5rem 0 0 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Progress Bar */
.progress-container {
    margin: 2rem 0 3rem 0;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.1);
    height: 4px;
    border-radius: 2px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, var(--accent-gold) 0%, var(--accent-copper) 100%);
    height: 100%;
    width: 20%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.step.active .step-circle,
.step.completed .step-circle {
    background: var(--accent-gold);
    color: var(--background-color);
}

.step-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 500;
}

.step.active .step-label {
    color: var(--accent-gold);
}

/* Setup Content */
.setup-content {
    background: var(--card-background);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 32px var(--shadow-color);
    border: 1px solid rgba(212, 175, 55, 0.2);
    min-height: auto;
    position: relative;
}

.setup-step {
    display: none;
    position: relative;
}

.setup-step.active {
    display: block;
    position: relative;
}

.step-content h2 {
    color: var(--accent-gold);
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin: 0 0 1rem 0;
    text-align: center;
}

.step-content > p {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Welcome Step */
.welcome-icon {
    text-align: center;
    margin-bottom: 1.5rem;
}

.welcome-logo {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.welcome-text {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.welcome-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.feature-icon {
    font-size: 1.5rem;
}

.already-setup {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.setup-link {
    color: var(--accent-gold);
    text-decoration: none;
}

.setup-link:hover {
    text-decoration: underline;
}

/* Forms */
.setup-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--background-color);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-help {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.form-error {
    display: block;
    font-size: 0.85rem;
    color: var(--error-color);
    margin-top: 0.25rem;
}

.checkbox-group {
    margin: 1.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--text-primary);
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Summary */
.summary-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0;
}

.summary-section {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
}

.summary-section h3 {
    color: var(--accent-gold);
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.summary-value {
    color: var(--text-primary);
    font-weight: 600;
}

.setup-loading {
    display: none;
    text-align: center;
    padding: 2rem;
}

.setup-loading.active {
    display: block;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(212, 175, 55, 0.2);
    border-left: 4px solid var(--accent-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Complete Step */
.success-icon {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.next-steps {
    margin: 2rem 0;
    text-align: left;
}

.next-steps h3 {
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    text-align: center;
}

.next-step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.step-icon {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.step-info h4 {
    color: var(--accent-gold);
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.step-info p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Navigation - inside the card at bottom */
.setup-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.setup-navigation .btn {
    min-width: 120px;
}

/* Login Page Styles */
.login-body {
    background: linear-gradient(135deg, var(--background-color) 0%, #1a1314 50%, #0f0b0a 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    font-family: 'Inter', system-ui, sans-serif;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: var(--card-background);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 32px var(--shadow-color);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.login-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--accent-gold);
    margin: 0 0 0.5rem 0;
}

.login-subtitle {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.9rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.login-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.login-link {
    color: var(--accent-gold);
    text-decoration: none;
}

.login-link:hover {
    text-decoration: underline;
}

/* Setup Responsive Design */
@media (max-width: 768px) {
    .setup-container {
        padding: 1rem;
    }
    
    .setup-header .app-title {
        font-size: 2rem;
    }
    
    .progress-steps {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .step {
        flex: none;
        min-width: 80px;
    }
    
    .step-circle {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .setup-content {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .welcome-features {
        max-width: none;
    }
    
    .summary-sections {
        gap: 1rem;
    }
    
    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .next-step-item {
        flex-direction: column;
        text-align: center;
    }
}
/* Profile/Account Settings Page Styles */
.settings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

.settings-section {
    background: var(--card-background);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.settings-section .section-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
}

.settings-section .section-title .mdi {
    color: var(--accent-gold);
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 1.5rem;
    background: var(--card-background);
    color: var(--text-primary);
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow-color);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    max-width: 400px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.toast.toast-success {
    border-left: 4px solid var(--success-color);
}

.toast.toast-error {
    border-left: 4px solid var(--error-color);
}

.toast.toast-warning {
    border-left: 4px solid var(--warning-color);
}

.toast.toast-info {
    border-left: 4px solid var(--accent-gold);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .profile-page {
        padding: 1rem;
    }
    
    .profile-container h2 {
        font-size: 1.5rem;
    }
    
    .settings-section {
        padding: 1.5rem;
    }
    
    .settings-section h3 {
        font-size: 1.25rem;
    }
    
    .toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

/* Report Card Modal */
.report-card-content {
    max-width: 1000px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.report-card-body {
    display: grid;
    grid-template-columns: minmax(300px, 360px) 1fr;
    gap: 2rem;
    padding: 1.5rem 2.5rem 1.5rem 2rem;
    overflow: visible;
}

.report-card-image-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.report-card-image-section > div {
    background: linear-gradient(135deg, #8b6914 0%, #6b5411 100%);
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.report-card-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-transfer {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-gold), #b8860b);
    color: var(--primary-dark);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.btn-transfer:hover {
    background: linear-gradient(135deg, #b8860b, var(--accent-gold));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* Transfer modal specific styles */
#transferCigarModal .modal-body {
    padding: 1.5rem;
}

#transferCigarModal .form-group {
    margin-bottom: 1.25rem;
}

#transferCigarModal .form-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Transfer Ownership modal specific styles */
#transferOwnershipModal .modal-body {
    padding: 1.5rem;
}

#transferOwnershipModal .form-group {
    margin-bottom: 1.25rem;
}

#transferOwnershipModal .form-help {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    line-height: 1.5;
}

#transferOwnershipModal .warning-box {
    margin: 1.5rem 0;
}

.report-card-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 0;
    overflow: visible;
}

.report-card-header {
    padding-bottom: 1rem;
}

.report-brand {
    font-size: 0.75rem;
    color: var(--accent-gold);
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.report-name {
    font-size: 2rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
}

.report-card-info-box {
    background: rgba(139, 105, 20, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
}

.report-card-grid {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr;
    gap: 1.25rem 1.5rem;
    align-items: start;
}

.report-card-field {
    display: contents;
}

.report-card-field label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-align: left;
}

.report-card-field span {
    font-size: 0.95rem;
    color: var(--text-primary);
    text-align: right;
    font-weight: 400;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding-right: 0.5rem;
}

/* Strength indicator in report card - right align */
.report-card-field span .strength-indicator {
    margin-left: auto;
    margin-right: 0;
}

.report-card-field span a {
    color: var(--accent-gold);
    text-decoration: none;
    word-break: break-all;
    transition: color 0.2s ease;
}

.report-card-field span a:hover {
    color: var(--accent-gold-light);
    text-decoration: underline;
}

.report-card-notes-section {
    background: rgba(139, 105, 20, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
}

.report-card-notes-section label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.75rem;
}

.report-notes {
    color: var(--text-primary);
    line-height: 1.6;
    white-space: pre-wrap;
    margin: 0;
    font-size: 0.95rem;
}

.report-card-retail-link-section {
    background: rgba(139, 105, 20, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    min-width: 0;
    overflow: hidden;
}

.report-card-retail-link-section label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 0.75rem;
}

.retail-link-container {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 0.5rem 0;
    max-width: 100%;
    /* Add smooth scrolling and scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gold) rgba(139, 105, 20, 0.15);
    -webkit-overflow-scrolling: touch;
}

.retail-link-container::-webkit-scrollbar {
    height: 6px;
}

.retail-link-container::-webkit-scrollbar-track {
    background: rgba(139, 105, 20, 0.15);
    border-radius: 3px;
}

.retail-link-container::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 3px;
}

.retail-link-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold-light);
}

.retail-link-container a {
    color: var(--gold);
    text-decoration: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875rem;
    transition: color 0.2s ease;
    /* Remove word-break to allow horizontal scrolling */
    display: inline-block;
}

.retail-link-container a:hover {
    color: var(--gold-hover);
    text-decoration: underline;
}

.report-card-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.report-card-actions button {
    flex: 1;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-danger {
    background: #dc143c;
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #b8112f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.4);
}

@media (max-width: 768px) {
    .report-card-content {
        width: 95%;
        max-width: none;
    }
    
    .report-card-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .report-card-image-section {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .report-card-grid {
        grid-template-columns: 1fr;
    }
    
    .report-card-actions {
        flex-direction: column;
    }
    
    .report-card-actions button {
        width: 100%;
    }
}

/* Favorites Section */
.favorites-section {
    padding: 2rem 3rem;
}

.favorites-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.empty-state-card {
    text-align: center;
    padding: 3rem;
    background: var(--surface-dark);
    border-radius: 1rem;
    border: 1px solid rgba(212, 175, 55, 0.1);
    max-width: 500px;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--accent-gold);
    opacity: 0.5;
}

.empty-state-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.empty-state-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.favorites-section .page-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* Wish List Section */
.wishlist-section {
    padding: 2rem 3rem;
}

.wishlist-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.wishlist-section .page-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* Info badge for favorite cards */
.cigar-card-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* ============================================
   BACKUP & RESTORE STYLES
   ============================================ */

/* About Section Styles */
.about-section {
    background: var(--card-background);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.about-label {
    font-weight: 600;
    color: var(--accent-gold);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.about-value {
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 1rem;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-gold);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

.github-link:hover {
    color: var(--accent-copper);
    transform: translateX(3px);
}

.github-link .mdi {
    font-size: 1.25rem;
}

.section-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(212, 175, 55, 0.1);
    border-left: 3px solid var(--accent-gold);
    border-radius: 4px;
}

.section-description strong {
    color: var(--accent-gold);
}

.backup-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.upload-btn {
    cursor: pointer;
    margin: 0;
}

.backups-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.backups-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface-secondary);
}

.backups-table thead {
    background: rgba(212, 175, 55, 0.15);
}

.backups-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.backups-table th.actions-column {
    text-align: right;
    width: 150px;
}

.backups-table tbody tr {
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    transition: background 0.2s ease;
}

.backups-table tbody tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

.backups-table td {
    padding: 1rem;
    color: var(--text-primary);
}

.backups-table td.loading-row,
.backups-table td.empty-row {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
    font-style: italic;
}

.backups-table .backup-name {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--accent-gold);
}

.backups-table .actions-cell {
    text-align: right;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
}

.btn-icon.btn-restore:hover {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.btn-icon.btn-delete:hover {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.btn-icon .mdi {
    font-size: 1.25rem;
}

/* Confirmation Modals */
.confirm-modal-content {
    max-width: 500px;
}

.warning-text {
    color: #f44336;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.warning-text .mdi {
    font-size: 1.5rem;
}

.warning-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: var(--text-primary);
    line-height: 1.8;
}

.warning-list li {
    margin-bottom: 0.5rem;
}

.restore-filename,
.delete-filename {
    padding: 0.75rem 1rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-left: 3px solid var(--accent-gold);
    border-radius: 4px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.restore-filename .mdi,
.delete-filename .mdi {
    color: var(--accent-gold);
    font-size: 1.25rem;
}

.checkbox-container {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
}

.checkbox-container label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    color: var(--text-primary);
    font-weight: 500;
}

.checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--accent-gold);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(26, 15, 8, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}

.btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.btn-danger:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.5), rgba(211, 47, 47, 0.5));
}

.btn-secondary {
    background: rgba(51, 31, 21, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-1px);
}

.info-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 0.25rem;
    color: var(--accent-gold);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Setup Wizard - Restore from Backup */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider span {
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.restore-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(51, 31, 21, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.backup-upload-section {
    margin-top: 1rem;
}

/* ===========================
   PAGINATION STYLES
   =========================== */

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    gap: 1rem;
    flex-wrap: wrap;
    position: fixed;
    bottom: 0;
    left: var(--sidebar-width);
    right: 0;
    z-index: 50;
    box-shadow: 0 -4px 20px var(--shadow-color);
    transition: transform 0.3s ease-in-out;
    transform: translateY(0);
}

.pagination-container.hidden {
    transform: translateY(100%);
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

.pagination-btn {
    background: rgba(51, 31, 21, 0.4);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-1px);
}

.pagination-btn:active:not(:disabled) {
    transform: translateY(0);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(51, 31, 21, 0.2);
}

.pagination-btn .mdi {
    font-size: 1.25rem;
}

.pagination-pages {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.pagination-page-btn {
    background: rgba(51, 31, 21, 0.4);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 40px;
    height: 40px;
    font-weight: 500;
    font-size: 0.875rem;
}

.pagination-page-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-1px);
}

.pagination-page-btn.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--bg-dark);
    font-weight: 600;
}

.pagination-size {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.pagination-size label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.page-size-select {
    background: rgba(51, 31, 21, 0.4);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23D4AF37' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
}

.page-size-select:hover {
    border-color: var(--accent-gold);
    background-color: rgba(212, 175, 55, 0.1);
}

.page-size-select:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Add bottom padding to content when pagination is visible */
.main-content-section,
#humidorsSection {
    padding-bottom: 120px; /* Space for fixed pagination bar */
}

/* Tablet and below - sidebar is hidden */
@media (max-width: 1024px) {
    .pagination-container {
        left: 0; /* Full width when sidebar is hidden */
    }
}

/* Responsive pagination */
@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .main-content-section,
    #humidorsSection {
        padding-bottom: 180px; /* More space on mobile due to stacked layout */
    }
    
    .pagination-info {
        order: 1;
        width: 100%;
        text-align: center;
    }
    
    .pagination-controls {
        order: 2;
        width: 100%;
        justify-content: center;
    }
    
    .pagination-size {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .pagination-btn,
    .pagination-page-btn {
        min-width: 36px;
        height: 36px;
        padding: 0.4rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .pagination-pages {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination-btn,
    .pagination-page-btn {
        min-width: 32px;
        height: 32px;
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .pagination-btn .mdi {
        font-size: 1rem;
    }
}

/* Humidor Hub and Detail Views */

/* Hub View Styles */
.humidor-hub {
    padding: 2rem 0;
}

.humidor-hub-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem 2rem;
    background: var(--hub-header-bg);
    border-radius: 12px;
    border: 1px solid var(--hub-header-border);
}

.humidor-hub-header h2 {
    color: var(--hub-header-text-primary);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.humidor-hub-header p {
    color: var(--hub-header-text-secondary);
    font-size: 1rem;
    margin: 0;
}

.humidor-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    padding: 0 1rem;
}

/* Humidor Card Styles */
.humidor-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.humidor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-copper));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 1;
}

.humidor-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.6),
        0 0 0 1px var(--accent-gold);
    border-color: var(--accent-gold);
}

.humidor-card:hover::before {
    transform: scaleX(1);
}

/* Humidor Card Image Section */
.humidor-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    background: var(--primary-dark);
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.humidor-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.humidor-card:hover .humidor-card-image img {
    transform: scale(1.05);
}

.humidor-card-image .humidor-card-actions {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2;
}

.humidor-card:hover .humidor-card-image .humidor-card-actions {
    opacity: 1;
}

.humidor-card-image .btn-icon {
    background: rgba(26, 15, 8, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.humidor-card-image .btn-icon:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    border-color: var(--accent-gold);
    transform: scale(1.1);
}

.humidor-card-image .btn-icon i {
    font-size: 1.25rem;
}

/* Humidor Card Content Section */
.humidor-card-content {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.humidor-card-header {
    margin-bottom: 0.5rem;
}

.humidor-card-header h3 {
    color: var(--accent-gold);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.humidor-location {
    color: var(--text-muted);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-height: 1.25rem;
}

.humidor-location i {
    font-size: 1rem;
}

.humidor-card-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
    padding: 0.5rem;
    background: rgba(26, 15, 8, 0.9);
    border-radius: 6px;
    justify-content: center;
}

.humidor-card-stats .stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.humidor-card-stats .stat i {
    font-size: 1.25rem;
    color: #b87333;
}

.humidor-card-stats .stat-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #f4f1eb;
}

.humidor-card-stats .stat-label {
    font-size: 0.75rem;
    color: #9a8c7e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.humidor-card-notes {
    padding: 0.75rem;
    background: rgba(26, 15, 8, 0.3);
    border-radius: 6px;
    border-left: 3px solid var(--accent-copper);
    margin-top: auto;
}

.humidor-card-notes p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

/* Detail View Styles */
.humidor-detail-nav {
    margin-bottom: 2rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(51, 31, 21, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-back:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
    border-color: var(--accent-gold);
    transform: translateX(-4px);
}

.btn-back i {
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.btn-back:hover i {
    transform: translateX(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .humidor-hub-header h2 {
        font-size: 2rem;
    }
    
    .humidor-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .humidor-card-image {
        height: 200px;
    }
    
    .humidor-card-content {
        padding: 1.25rem;
    }
    
    .humidor-card-stats {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .humidor-hub-header {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .humidor-hub-header h2 {
        font-size: 1.75rem;
    }
    
    .humidor-hub-header p {
        font-size: 1rem;
    }
    
    .humidor-card-image {
        height: 180px;
    }
    
    .humidor-card-content {
        padding: 1rem;
    }
    
    .humidor-card-header h3 {
        font-size: 1.25rem;
    }
    
    .humidor-card-stats {
        gap: 1rem;
    }
    
    .humidor-card-stats .stat i {
        font-size: 1.5rem;
    }
    
    .humidor-card-stats .stat-value {
        font-size: 1.5rem;
    }
}

/* ========================================
   User Management Styles
   ======================================== */

/* User Management Section */
.user-management-section {
    margin-bottom: 2rem;
}

.user-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.user-controls .search-box {
    position: relative;
    flex: 0 1 300px;
}

.user-controls .search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.25rem;
    pointer-events: none;
}

.user-controls .search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    background: var(--surface-secondary);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 0.938rem;
    transition: all 0.3s ease;
}

.user-controls .search-input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.user-controls .search-input::placeholder {
    color: var(--text-secondary);
}

.users-table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    margin-top: 1rem;
}

/* User Badge Styles */
.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.user-badge-regular {
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Status Badge Styles */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-active {
    background: rgba(76, 175, 80, 0.15);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.status-inactive {
    background: rgba(158, 158, 158, 0.15);
    color: #9e9e9e;
    border: 1px solid rgba(158, 158, 158, 0.3);
}

/* User Table Styles */
.users-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface-secondary);
    margin-top: 1rem;
}

.users-table thead {
    background: rgba(212, 175, 55, 0.15);
}

.users-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.users-table th.actions-column {
    text-align: left;
    width: 420px;
    min-width: 420px;
}

.users-table tbody tr {
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    transition: background 0.2s ease;
}

.users-table tbody tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

.users-table td {
    padding: 1rem;
    color: var(--text-primary);
    vertical-align: middle;
}

.users-table td.loading-row,
.users-table td.empty-row {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem;
    font-style: italic;
}

#usersTableBody tr {
    transition: background-color 0.2s ease;
}

#usersTableBody tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

#usersTableBody td {
    vertical-align: middle;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-email {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.user-created-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* User Action Buttons */
.user-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
    align-items: center;
}

.user-actions .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.813rem;
    border-radius: 0.375rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-weight: 500;
}

.btn-edit {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-copper));
    color: var(--primary-dark);
    border: none;
}

.btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.btn-toggle {
    background: rgba(158, 158, 158, 0.2);
    color: var(--text-primary);
    border: 1px solid rgba(158, 158, 158, 0.3);
}

.btn-toggle:hover {
    background: rgba(158, 158, 158, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(158, 158, 158, 0.3);
}

.btn-reset-password {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.btn-reset-password:hover {
    background: rgba(33, 150, 243, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.user-actions .btn-danger {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    border: none;
}

.user-actions .btn-danger:hover {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

/* Old styles - keeping for compatibility but will be overridden */
#usersTableBody tr {
    transition: background-color 0.2s ease;
}

#usersTableBody tr:hover {
    background: rgba(212, 175, 55, 0.05);
}

#usersTableBody td {
    vertical-align: middle;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.user-email {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.user-created-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* User Action Buttons */
.user-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.user-actions .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-edit {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-copper));
    color: var(--primary-dark);
    border: none;
}

.btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.btn-toggle {
    background: rgba(158, 158, 158, 0.2);
    color: var(--text-primary);
    border: 1px solid rgba(158, 158, 158, 0.3);
}

.btn-toggle:hover {
    background: rgba(158, 158, 158, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(158, 158, 158, 0.3);
}

.btn-reset-password {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.btn-reset-password:hover {
    background: rgba(33, 150, 243, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

/* Checkbox Group Enhancements */
.checkbox-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.checkbox-text strong {
    color: var(--text-primary);
}

.checkbox-text small {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* User Form Styles */
#userForm {
    padding: 0 2rem 2rem;
}

#userForm .form-group {
    margin-bottom: 1.25rem;
}

#userForm .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--accent-gold);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#userForm .form-group input[type="text"],
#userForm .form-group input[type="email"],
#userForm .form-group input[type="password"] {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

#userForm .form-group input:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

#userForm .form-group.checkbox-group {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 0.5rem;
}

#userForm .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    margin: 0;
}

#userForm .checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

#userForm .form-help {
    display: block;
    margin-top: 0.375rem;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-style: italic;
}

#userPasswordModal form {
    padding: 0 2rem 2rem;
}

#userPasswordModal .form-group,
#deleteUserConfirmModal .modal-body {
    margin-bottom: 1rem;
}

#deleteUserConfirmModal .modal-body {
    padding: 0 2rem 2rem;
}

#restoreConfirmModal .modal-body {
    padding: 0 2rem 2rem;
}

#userPasswordModal .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--accent-gold);
    font-size: 0.875rem;
}

#userPasswordModal input[type="password"] {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-primary);
}

#userPasswordModal input[type="password"]:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

/* Form Help Text */
.form-help {
    display: block;
    margin-top: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Confirm Modal Warning Styles */
.confirm-modal-content .modal-body ul {
    color: var(--text-primary);
    padding-left: 1.5rem;
}

.confirm-modal-content .modal-body ul li {
    margin: 0.5rem 0;
}

.delete-username {
    padding: 1rem;
    background: rgba(255, 107, 107, 0.1);
    border-left: 3px solid #ff6b6b;
    margin: 1rem 0;
}

/* Empty State */
.empty-users-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.empty-users-state i {
    font-size: 4rem;
    color: rgba(212, 175, 55, 0.3);
    margin-bottom: 1rem;
}

.empty-users-state p {
    font-size: 1.125rem;
    margin: 0.5rem 0;
}

/* Responsive User Management */
@media (max-width: 768px) {
    .user-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .user-controls .search-box {
        flex: 1 1 auto;
    }
    
    .user-actions {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .user-actions .btn-sm {
        width: 100%;
        justify-content: center;
    }
    
    .users-table {
        font-size: 0.875rem;
    }
    
    .users-table th,
    .users-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .users-table th.actions-column {
        width: auto;
    }
    
    .checkbox-label {
        font-size: 0.9rem;
    }
}

/* Share Humidor Styles */
.search-results {
    position: relative;
    margin-top: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
    display: none;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--hover-bg);
}

.search-result-item .username {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.search-result-item .email {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.search-result-item .full-name {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
}

#currentSharesList {
    margin-top: 1rem;
}

.share-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.share-item-info {
    flex: 1;
}

.share-item-name {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.share-item-email {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.share-item-permission {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.share-item-permission.view {
    background: var(--info-bg);
    color: var(--info-color);
}

.share-item-permission.edit {
    background: var(--warning-bg);
    color: var(--warning-color);
}

.share-item-permission.full {
    background: var(--success-bg);
    color: var(--success-color);
}

.share-item-actions {
    display: flex;
    gap: 0.5rem;
}

.share-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: var(--info-bg);
    color: var(--info-color);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.humidor-owner {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.humidor-owner strong {
    color: var(--text-color);
}

/* ============================================
   SHARE HUMIDOR MODAL STYLING
   ============================================ */

.share-modal-body {
    padding: 1.5rem;
}

.share-modal-body .form-group {
    margin-bottom: 1.25rem;
}

.share-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 0.75rem;
}

.share-section:last-child {
    margin-bottom: 0;
}

.share-section-title {
    margin: 0 0 1.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.1rem;
    background: var(--accent-gold);
    border-radius: 2px;
}

#shareUserSelect {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--text-primary);
}

#shareUserSelect option {
    background: var(--primary-dark);
    color: var(--text-primary);
    padding: 0.5rem;
}

#shareAddUserBtn {
    margin-top: 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
}

#shareAddUserBtn i {
    font-size: 1.2rem;
}

#currentSharesList {
    max-height: 300px;
    overflow-y: auto;
}

#currentSharesList::-webkit-scrollbar {
    width: 6px;
}

#currentSharesList::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

#currentSharesList::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.3);
    border-radius: 3px;
}

#currentSharesList::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 175, 55, 0.5);
}

.share-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.share-item:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(212, 175, 55, 0.2);
}

.share-item:last-child {
    margin-bottom: 0;
}

.share-user-info {
    flex: 1;
}

.share-user-info .username {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.share-user-info .email {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.share-user-info .permission-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

.share-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.share-actions select {
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 0.375rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-actions select:hover {
    border-color: var(--accent-gold);
}

.share-actions select:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
}

.share-actions button {
    padding: 0.5rem 0.75rem;
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 0.375rem;
    color: #dc3545;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.share-actions button:hover {
    background: rgba(220, 53, 69, 0.3);
    border-color: #dc3545;
}

.share-actions button i {
    font-size: 1rem;
}

.text-muted {
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    padding: 2rem;
}

@media (max-width: 768px) {
    .share-section {
        padding: 1rem;
    }
    
    .share-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .share-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ========================================
   Light Mode Specific Overrides
   ======================================== */

/* Force buttons to use exact dark theme styling */
.light-mode .btn-primary,
.light-mode .btn-secondary,
.light-mode .add-btn,
.light-mode .add-btn-sidebar {
    background: linear-gradient(135deg, #d4af37, #b87333) !important;
    color: #1a0f08 !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3) !important;
    font-weight: 700 !important;
}

.light-mode .btn-primary i,
.light-mode .btn-secondary i,
.light-mode .add-btn i,
.light-mode .add-btn-sidebar i,
.light-mode .btn-primary span,
.light-mode .btn-secondary span,
.light-mode .add-btn span,
.light-mode .add-btn-sidebar span {
    color: #1a0f08 !important;
}

.light-mode .btn-primary:hover,
.light-mode .btn-secondary:hover,
.light-mode .add-btn:hover,
.light-mode .add-btn-sidebar:hover {
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4) !important;
    color: #1a0f08 !important;
}

.light-mode .btn-primary:hover i,
.light-mode .btn-secondary:hover i,
.light-mode .add-btn:hover i,
.light-mode .add-btn-sidebar:hover i,
.light-mode .btn-primary:hover span,
.light-mode .btn-secondary:hover span,
.light-mode .add-btn:hover span,
.light-mode .add-btn-sidebar:hover span {
    color: #1a0f08 !important;
}

/* Remove any overlay effects on buttons in light mode */
.light-mode .btn-primary::before,
.light-mode .btn-secondary::before,
.light-mode .add-btn::before,
.light-mode .add-btn-sidebar::before {
    display: none !important;
}

/* CRITICAL: Force exact dark theme text color on all button elements */
html.light-mode .btn-primary,
html.light-mode .btn-secondary, 
html.light-mode .add-btn,
html.light-mode .add-btn-sidebar,
html.light-mode button.btn-primary,
html.light-mode button.btn-secondary,
html.light-mode button.add-btn,
html.light-mode button.add-btn-sidebar {
    color: #1a0f08 !important;
}

html.light-mode .btn-primary:hover,
html.light-mode .btn-secondary:hover,
html.light-mode .add-btn:hover,
html.light-mode .add-btn-sidebar:hover,
html.light-mode button.btn-primary:hover,
html.light-mode button.btn-secondary:hover,
html.light-mode button.add-btn:hover,
html.light-mode button.add-btn-sidebar:hover {
    color: #1a0f08 !important;
}

/* Ensure nav items and organizers are visible in light mode */
.light-mode .nav-item,
.light-mode .nav-dropdown-toggle {
    color: var(--text-primary);
}

.light-mode .nav-item:hover,
.light-mode .nav-dropdown-toggle:hover {
    color: var(--primary-dark);
}

.light-mode .nav-item.active,
.light-mode .nav-dropdown-toggle.active {
    color: var(--primary-dark);
}

/* Dropdown items in light mode */
.light-mode .nav-dropdown-content .nav-item {
    color: var(--text-primary);
}

.light-mode .nav-dropdown-content .nav-item:hover,
.light-mode .nav-dropdown-content .nav-item.active {
    color: var(--primary-dark);
}

/* Make filter buttons more visible in light mode */
.light-mode .filter-btn {
    border-color: rgba(160, 118, 90, 0.4);
}

.light-mode .filter-btn.active {
    background: linear-gradient(135deg, #d4af37, #b87333) !important;
    border-color: #d4af37 !important;
    color: var(--primary-dark) !important;
}

/* Gold accents should be solid, not transparent */
.light-mode .count-badge {
    background: #d4af37 !important;
    color: var(--primary-dark) !important;
    border: 1px solid #b87333;
}

/* Search input text in light mode */
.light-mode .search-input {
    color: var(--text-primary);
}

.light-mode .search-input::placeholder {
    color: var(--text-muted);
}

/* ========================================
   Keep Dark Theme Styling in Light Mode
   ======================================== */

/* Nav panel active selection - always dark theme colors */
.light-mode .nav-item.active,
.light-mode .nav-dropdown-toggle.active {
    background: #4a2c1a !important; /* Dark theme primary-light */
    color: #f4f1eb !important; /* Dark theme text-primary */
    border-left-color: #d4af37 !important; /* Dark theme accent-gold */
}

.light-mode .nav-item:hover {
    background: #4a2c1a !important;
    color: #f4f1eb !important;
}

.light-mode .nav-dropdown-toggle:hover {
    background: #4a2c1a !important;
    color: #f4f1eb !important;
}

.light-mode .nav-dropdown-content .nav-item.active {
    background: #2a241f !important; /* Dark theme surface-color */
    color: #f4f1eb !important;
    border-left-color: #b87333 !important; /* Dark theme accent-copper */
}

.light-mode .nav-dropdown-content .nav-item:hover {
    background: #2a241f !important;
    color: #f4f1eb !important;
}

/* Cigar card quantity counter - always dark theme */
.light-mode .cigar-card-quantity {
    background: rgba(26, 15, 8, 0.9) !important;
    border: 1px solid #d4af37 !important;
    backdrop-filter: blur(8px);
}

.light-mode .quantity-btn {
    color: #d4af37 !important; /* Dark theme accent-gold */
}

.light-mode .quantity-btn:hover {
    color: #f4f1eb !important; /* Dark theme text-primary */
}

.light-mode .quantity-value {
    color: #f4f1eb !important; /* Dark theme text-primary */
}

/* Humidor info card (Home icon card) - always dark theme */
.light-mode .humidor-info-card {
    background: rgba(26, 15, 8, 0.9);
    border: 1px solid #4a3d32;
}

.light-mode .humidor-info-card:hover {
    background: rgba(26, 15, 8, 0.95);
    border-color: #b87333;
}

.light-mode .humidor-info-card .humidor-title-section > i {
    color: #b87333;
}

.light-mode .humidor-info-card .humidor-name {
    color: #f4f1eb;
}

.light-mode .humidor-info-card .humidor-location {
    color: #9a8c7e;
}

/* ========================================
   PWA STYLES
   ======================================== */

/* PWA Install Button */
.pwa-install-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #d4af37, #b87333);
    color: var(--primary-dark);
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
    margin-right: 1rem;
}

.pwa-install-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.pwa-install-button:active {
    transform: translateY(0);
}

.pwa-install-button .mdi {
    font-size: 1.25rem;
}

/* PWA Update Banner */
.pwa-update-banner {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 15, 8, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--accent-gold);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 350px;
    max-width: 90vw;
    transition: all 0.4s ease;
}

.pwa-update-banner.show {
    top: 20px;
}

.pwa-update-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.pwa-update-content .mdi {
    font-size: 1.5rem;
    color: var(--accent-gold);
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.pwa-update-button {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #d4af37, #b87333);
    color: var(--primary-dark);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.pwa-update-button:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
}

.pwa-dismiss-button {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: 0.5rem;
    transition: color 0.2s ease;
}

.pwa-dismiss-button:hover {
    color: var(--text-primary);
}

/* Light mode PWA styles */
.light-mode .pwa-install-button {
    background: linear-gradient(135deg, #d4af37, #b87333);
    color: var(--primary-dark);
}

.light-mode .pwa-update-banner {
    background: rgba(243, 237, 228, 0.95);
    color: var(--text-primary);
    border-color: var(--accent-gold);
}

.light-mode .pwa-update-button {
    background: linear-gradient(135deg, #d4af37, #b87333);
    color: var(--primary-dark);
}

/* Responsive PWA styles */
@media (max-width: 768px) {
    .pwa-install-button {
        padding: 0.4rem 0.75rem;
        font-size: 0.8125rem;
        margin-right: 0.5rem;
    }
    
    .pwa-install-button span:last-child {
        display: none; /* Hide "Install App" text on mobile, keep icon */
    }
    
    .pwa-update-banner {
        min-width: unset;
        width: 90vw;
        padding: 0.875rem 1rem;
    }
    
    .pwa-update-content .mdi {
        font-size: 1.25rem;
    }
    
    .pwa-update-button {
        padding: 0.4rem 0.75rem;
        font-size: 0.8125rem;
    }
}

/* ============================================
   PUBLIC SHARE STYLES
   ============================================ */

.public-share-empty,
.public-share-active {
    padding: 1rem;
}

.public-shares-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.public-share-item {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 0.75rem;
    padding: 1rem;
}

.public-share-item .share-label {
    font-weight: 600;
    color: var(--accent-gold);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.public-share-item .share-link-box {
    margin-bottom: 0.75rem;
}

.public-share-item .share-info {
    margin-bottom: 0.75rem;
}

.public-share-empty .form-group {
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    color: var(--text-primary);
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-gold);
}

#expiryDateGroup {
    transition: all 0.3s ease;
}

.share-link-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.share-url-input {
    flex: 1;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.share-link-box .btn-icon {
    flex-shrink: 0;
    padding: 0.75rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 0.5rem;
    color: var(--accent-gold);
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-link-box .btn-icon:hover {
    background: var(--accent-gold);
    color: var(--primary-dark);
}

.share-info {
    background: rgba(212, 175, 55, 0.1);
    border-left: 3px solid var(--accent-gold);
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.share-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.share-info-item .mdi {
    color: var(--accent-gold);
    font-size: 1.25rem;
}

.warning-badge {
    background: #ff6b6b;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* ============================================
   PUBLIC VIEW PAGE STYLES
   ============================================ */

.public-view {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--primary-bg);
}

.public-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--card-background);
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 2px 8px var(--shadow-color);
}

.public-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.public-logo .logo-img {
    width: 48px;
    height: 48px;
}

.public-logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin: 0;
}

.public-content {
    flex: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

.loading-state,
.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    text-align: center;
}

.loading-state .mdi-spin {
    font-size: 4rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.error-state .mdi {
    font-size: 5rem;
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.error-state h2 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.error-state p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.humidor-view .humidor-header {
    text-align: center;
    margin-bottom: 3rem;
}

.humidor-view .humidor-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.humidor-view .humidor-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.humidor-meta-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.humidor-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.humidor-meta .mdi {
    color: var(--accent-gold);
    font-size: 1.25rem;
}

/* Public view uses same grid sizing as main app */
.public-view .cigars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.public-cigar-card {
    background: var(--card-background);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.public-cigar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--shadow-color);
    border-color: var(--accent-gold);
}

.cigar-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
}

.cigar-card-header h3 {
    color: var(--accent-gold);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.cigar-quantity {
    background: var(--accent-gold);
    color: var(--primary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.cigar-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.cigar-detail {
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.cigar-detail strong {
    color: var(--accent-copper);
    font-weight: 600;
}

.cigar-notes {
    background: rgba(212, 175, 55, 0.05);
    border-left: 3px solid var(--accent-gold);
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.cigar-retail-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.cigar-retail-link:hover {
    color: var(--accent-copper);
    transform: translateX(3px);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state .mdi {
    font-size: 5rem;
    color: rgba(212, 175, 55, 0.3);
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.125rem;
    font-style: italic;
}

.public-footer {
    background: var(--card-background);
    border-top: 2px solid rgba(212, 175, 55, 0.2);
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-top: auto;
}

/* Light mode public view overrides */
.light-mode .public-header,
.light-mode .public-footer {
    background: rgba(243, 237, 228, 0.95);
}

.light-mode .public-cigar-card {
    background: rgba(255, 255, 255, 0.8);
}

.light-mode .share-url-input {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(212, 175, 55, 0.4);
}

/* Recommendation Modal Styles */
.recommend-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
    backdrop-filter: blur(4px);
}

.recommend-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.recommend-modal-content {
    background: var(--card-background);
    border: 2px solid var(--accent-gold);
    border-radius: 1rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.recommend-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.recommend-modal-header h2 {
    color: var(--accent-gold);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.recommend-modal-header .mdi {
    font-size: 1.75rem;
}

.recommend-modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.75rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: all 0.3s ease;
    line-height: 1;
}

.recommend-modal-close:hover {
    color: var(--accent-gold);
    transform: rotate(90deg);
}

.recommend-modal-body {
    padding: 1.5rem;
}

.recommend-cigar-display {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.recommend-cigar-name {
    font-size: 1.75rem;
    color: var(--accent-gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.recommend-cigar-brand {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.recommend-cigar-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.recommend-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.recommend-detail-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recommend-detail-value {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* Strength indicator in recommendation modal */
.recommend-detail-value .strength-indicator {
    margin-top: 0.5rem;
    display: inline-flex;
}

.recommend-message {
    text-align: center;
    padding: 1rem;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 0.5rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.recommend-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
}

.recommend-empty-state .mdi {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.recommend-empty-state p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.recommend-modal-actions {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--surface-color);
}

.recommend-modal-actions button {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recommend-reroll-btn {
    background: var(--surface-color);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.recommend-reroll-btn:hover {
    background: var(--primary-color);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.recommend-accept-btn {
    background: var(--accent-gold);
    color: var(--primary-dark);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 15px rgba(212, 175, 55, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.recommend-accept-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.recommend-accept-btn:hover::before {
    left: 100%;
}

.recommend-accept-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 25px rgba(212, 175, 55, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Preference selection styles */
.preference-selection {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 0;
}

.preference-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.preference-option:hover {
    background: var(--hover-bg);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.preference-option .mdi {
    font-size: 2rem;
    color: var(--accent-color);
}

/* Organizer options styles */
.organizer-options {
    padding: 1rem 0;
}

.organizer-option-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
}

.organizer-option-item {
    padding: 1rem;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    color: var(--text-primary);
    text-align: center;
    font-weight: 500;
}

.organizer-option-item:hover {
    background: var(--hover-bg);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .recommend-modal-content {
        max-width: 95%;
        margin: 1rem;
    }
    
    .organizer-option-list {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .recommend-cigar-details {
        grid-template-columns: 1fr;
    }
    
    .recommend-modal-actions {
        flex-direction: column;
    }
}



/* Responsive public view */
@media (max-width: 768px) {
    .public-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .public-logo h1 {
        font-size: 1.5rem;
    }
    
    .humidor-view .humidor-header h1 {
        font-size: 2rem;
    }
    
    .cigars-grid {
        grid-template-columns: 1fr;
    }
    
    .share-link-box {
        flex-direction: column;
    }
}

/* Pin Recommend button to bottom of Collections section */
.nav-item.nav-item-bottom {
    margin-top: auto;
}
