/* ==========================================
   CSS VARIABLES & ROOT STYLES
   ========================================== */
:root {
    /* Colors - Smokeshop Theme (Deep Greens, Amber, Rich Browns) */
    --bg-primary: #0c0f0a;
    --bg-secondary: #141a12;
    --bg-card: rgba(20, 26, 18, 0.95);
    /* Increased opacity for better readability */

    /* Accent Colors */
    --accent-primary: #10b981;
    /* Emerald Green */
    --accent-gold: #fbbf24;
    /* Gold */
    --accent-red: #ef4444;
    /* Red for alerts */
    --accent-blue: #3b82f6;

    /* Gradients */
    --linear-sales: linear-gradient(90deg, #10b981, #3b82f6);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.75);
    --text-tertiary: rgba(255, 255, 255, 0.5);

    /* Effects */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(16, 185, 129, 0.3);

    /* Spacing */
    --radius-md: 16px;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    padding-bottom: 40px;
}

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

ul {
    list-style: none;
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-grid {
    column-count: 3;
    column-gap: 12px;
    margin-top: 12px;
}

.dashboard-grid>.dashboard-card {
    break-inside: avoid;
    margin-bottom: 12px;
    display: inline-block;
    width: 100%;
}

/* === COMMAND BAR (Ultra-Compact Header) === */
.command-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    margin-bottom: 8px;
    gap: 20px;
}

.cb-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.cb-left .greeting {
    font-weight: 600;
    color: var(--accent-gold);
}

.cb-divider {
    color: var(--text-tertiary);
}

.cb-promos {
    color: var(--text-secondary);
}

.cb-promos span {
    font-weight: 700;
    color: var(--accent-primary);
}

.cb-sales {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.cb-sales-label {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.cb-sales-amount {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent-primary);
    font-family: 'Outfit', sans-serif;
}

.cb-sales-target {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.cb-progress {
    width: 100px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    overflow: hidden;
}

.cb-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), #3b82f6);
    border-radius: 100px;
    transition: width 0.4s ease;
}

.cb-sales-input {
    width: 70px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: white;
    font-size: 0.8rem;
    text-align: center;
}

.cb-sales-input::placeholder {
    color: var(--text-tertiary);
}

.cb-sales-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* === QUICK ACTIONS BAR (Full Width) === */
.quick-actions-bar {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 12px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.logo-text-container {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.logo-subtitle {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.header-right {
    display: flex;
    gap: 20px;
    align-items: center;
}

.current-time {
    font-family: 'Outfit', monospace;
    display: flex;
    gap: 8px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    font-size: 0.9rem;
}

.header-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-primary);
    padding: 8px 16px;
    border-radius: 100px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
    box-shadow: 0 0 8px currentColor;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* Cards Common - Ultra Compact */
.dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.dashboard-card:hover {
    border-color: var(--glass-border-hover);
}

/* Promotions card no longer spans 2 columns */

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    align-items: center;
}

.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.card-title h2 {
    font-size: 1rem;
}

.card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon svg {
    width: 18px;
    height: 18px;
}

/* Widget Specific Colors */
.promo-icon {
    background: rgba(251, 191, 36, 0.1);
    color: var(--accent-gold);
}

.action-icon {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.announce-icon {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.reminder-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.sales-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.schedule-icon {
    background: rgba(192, 132, 252, 0.1);
    color: #c084fc;
}

.contact-icon {
    background: rgba(6, 182, 212, 0.1);
    color: #22d3ee;
}

.tips-icon {
    background: rgba(251, 191, 36, 0.1);
    color: #f59e0b;
}

/* === PROMOTIONS === */
.promos-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.promo-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
}

.promo-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.promo-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.promo-emoji {
    font-size: 1.8rem;
    background: rgba(0, 0, 0, 0.2);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.promo-text h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.promo-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 200px;
}

.promo-code {
    background: var(--accent-gold);
    color: #3d2600;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: 0.2s;
    border: none;
    font-size: 0.9rem;
}

.promo-code:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(251, 191, 36, 0.3);
}

/* === QUICK ACTIONS - COMPACT INLINE TOOLBAR === */
.actions-card.full-width {
    grid-column: 1 / -1;
}

.quick-actions-inline {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.action-btn-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    min-width: 120px;
    justify-content: center;
}

.action-btn-compact:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.action-btn-compact svg {
    width: 18px;
    height: 18px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.action-btn-compact span {
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Old grid style (kept for fallback) */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.action-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 8px;
    color: white;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    border-color: var(--text-secondary);
}

.action-icon-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-icon-wrapper svg {
    width: 20px;
    height: 20px;
}

.action-btn span {
    font-weight: 600;
    font-size: 0.8rem;
}

.action-btn small {
    color: var(--text-tertiary);
    font-size: 0.7rem;
    margin-top: -3px;
}

/* === SALES GOAL === */
.sales-stats {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
}

.current-sales {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.target-sales {
    font-size: 0.95rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.progress-bar-bg {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-bar-fill {
    height: 100%;
    background: var(--linear-sales);
    border-radius: 100px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.sales-input-wrapper {
    display: flex;
    gap: 10px;
}

.sales-input-wrapper input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 12px 15px;
    color: white;
    font-size: 0.95rem;
    transition: 0.2s;
}

.sales-input-wrapper input:focus {
    border-color: var(--accent-primary);
    outline: none;
}

.sales-input-wrapper button {
    background: var(--accent-primary);
    color: #002b18;
    border: none;
    font-weight: 700;
    padding: 0 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.sales-input-wrapper button:hover {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

/* === SCHEDULE === */
.branch-select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    transition: 0.2s;
}

.branch-select:hover,
.branch-select:focus {
    border-color: var(--accent-primary);
    color: white;
}

.branch-select option {
    background: #1a1a1a;
    color: white;
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.schedule-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    transition: 0.2s;
}

.schedule-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.schedule-item.active {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
}

.schedule-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.time-slot {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-family: 'Outfit', monospace;
}

.staff-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.branch-tag {
    font-size: 0.7rem;
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    width: fit-content;
    margin-top: 2px;
}

.status-indicator {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    white-space: nowrap;
}

.status-indicator.on-duty {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-primary);
}

.status-indicator.upcoming {
    background: rgba(251, 191, 36, 0.15);
    color: var(--accent-gold);
}

.view-full-schedule-btn {
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    background: transparent;
    border: 1px dashed var(--glass-border);
    color: var(--text-tertiary);
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    font-size: 0.85rem;
}

.view-full-schedule-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(16, 185, 129, 0.05);
}

.empty-state-text {
    text-align: center;
    padding: 20px;
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

/* === FULL WEEK SCHEDULE MODAL === */
.schedule-modal {
    max-width: 600px !important;
    max-height: 80vh;
    overflow-y: auto;
}

.full-schedule-content h2 {
    margin-bottom: 20px;
    font-family: 'Outfit', sans-serif;
}

.full-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.full-schedule-item {
    display: grid;
    grid-template-columns: 1fr 1.5fr 0.8fr 0.8fr;
    gap: 10px;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid transparent;
}

.full-schedule-item.active {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
}

.fs-time {
    font-family: 'Outfit', monospace;
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.fs-name {
    font-weight: 600;
    color: white;
}

.fs-branch {
    font-size: 0.75rem;
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    text-align: center;
}

.fs-status {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.fs-status.on-duty {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-primary);
}

.close-schedule-btn {
    width: 100%;
    padding: 12px;
    background: var(--accent-primary);
    color: #002b18;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

/* === ANNOUNCEMENTS (Compact) === */
.announcements-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.announcement-item {
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border-left: 3px solid transparent;
    align-items: flex-start;
}

.announcement-item.priority-high {
    border-left-color: var(--accent-red);
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.05) 0%, transparent 100%);
}

.announcement-item.priority-medium {
    border-left-color: var(--accent-gold);
}

.announcement-item.priority-low {
    border-left-color: var(--text-tertiary);
}

.announcement-content {
    flex: 1;
}

.announcement-content h4 {
    font-size: 0.9rem;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.announcement-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.announcement-meta {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    margin-top: 4px;
    display: block;
}

.more-items-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    padding: 8px;
    border-top: 1px dashed var(--glass-border);
    margin-top: 4px;
}

.more-items-note.clickable {
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 6px;
}

.more-items-note.clickable:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-primary);
    border-top-color: var(--accent-primary);
}

.full-list-content h2 {
    margin-bottom: 16px;
}

.full-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

/* === REMINDERS === */
.reminders-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reminder-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    transition: 0.2s;
    border: 1px solid transparent;
}

.reminder-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--glass-border);
}

.reminder-check input {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-primary);
    cursor: pointer;
    border-radius: 5px;
}

.reminder-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: 0.2s;
}

.reminder-item input:checked+.reminder-text {
    text-decoration: line-through;
    color: var(--text-tertiary);
}

/* === QUICK CONTACTS === */
.contacts-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid transparent;
    transition: 0.2s;
    text-decoration: none;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--glass-border);
    transform: translateY(-2px);
}

.contact-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
}

.contact-avatar.manager {
    background: #3b82f6;
}

.contact-avatar.owner {
    background: #8b5cf6;
}

.contact-avatar.emergency {
    background: #ef4444;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.contact-role {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* === SALES TIPS === */
.tips-card blockquote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-secondary);
    border-left: 3px solid var(--accent-gold);
    padding-left: 20px;
    margin: 0 0 15px 0;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.tip-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.tip-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-gold);
    font-weight: 700;
    background: rgba(251, 191, 36, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
}

.tip-action {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: 0.2s;
}

.tip-action:hover {
    color: white;
    border-color: white;
}

/* === FOOTER === */
.footer {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
    margin-top: 30px;
}

.footer-note {
    margin-top: 5px;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* === MODALS === */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    /* HIDDEN BY DEFAULT */
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    /* SHOW WHEN ACTIVE CLASS IS ADDED */
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.modal-content {
    background: linear-gradient(145deg, #1a1f16 0%, #131612 100%);
    border: 1px solid var(--glass-border);
    padding: 35px;
    border-radius: 24px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.6);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px) scale(0.95);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.modal-close {
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* ==========================================
   MODAL COMPONENTS - Buttons, Inputs, Forms
   ========================================== */

/* Generic Modal Buttons */
.modal-content button {
    padding: 12px 20px;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.modal-content button:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--text-secondary);
    transform: translateY(-1px);
}

/* Primary Action Button */
.modal-content button.primary,
.modal-content button[type="submit"],
.modal-content .verify-btn,
.modal-content #startBreak {
    background: var(--accent-primary) !important;
    color: #002b18 !important;
    border: none !important;
    font-weight: 700;
}

.modal-content button.primary:hover,
.modal-content button[type="submit"]:hover,
.modal-content .verify-btn:hover,
.modal-content #startBreak:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.3);
}

/* Modal Inputs */
.modal-content input,
.modal-content select,
.modal-content textarea {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    transition: all 0.2s ease;
    margin-bottom: 15px;
}

.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.modal-content input::placeholder {
    color: var(--text-tertiary);
}

/* Form Labels */
.modal-content label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* ==========================================
   BREAK TIMER MODAL
   ========================================== */
.timer-display,
#timerDisplay {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    text-align: center;
    color: var(--accent-gold);
    margin: 25px 0;
    text-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
}

.timer-buttons,
.break-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.timer-progress,
#timerProgressBar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    overflow: hidden;
    margin: 20px 0;
}

#timerProgress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold), #f59e0b);
    border-radius: 100px;
    transition: width 1s linear;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.4);
}

.timer-note {
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-top: 15px;
}

/* ==========================================
   CALCULATOR MODAL
   ========================================== */
#calcDisplay {
    width: 100%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--accent-gold);
    font-size: 2rem;
    font-family: 'Outfit', monospace;
    text-align: right;
    margin-bottom: 20px;
}

.calc-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.calc-buttons button {
    padding: 18px;
    font-size: 1.3rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
}

.calc-buttons button:hover {
    background: rgba(255, 255, 255, 0.12);
}

.calc-buttons button.operator {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-primary);
    border-color: rgba(16, 185, 129, 0.3);
}

.calc-buttons button.clear {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
    border-color: rgba(239, 68, 68, 0.3);
}

.calc-buttons button.equals {
    grid-column: span 4;
    background: var(--accent-primary);
    color: #002b18;
    font-weight: 700;
    border: none;
}

/* ==========================================
   AGE VERIFICATION MODAL
   ========================================== */
.age-result,
#ageResult {
    margin-top: 20px;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 700;
}

.age-result.valid,
#ageResult.valid {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--accent-primary);
}

.age-result.invalid,
#ageResult.invalid {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--accent-red);
}

/* ==========================================
   PRODUCT LOOKUP MODAL
   ========================================== */
.search-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.search-wrapper input {
    padding-right: 50px;
}

.search-wrapper svg,
.search-wrapper .search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-tertiary);
    pointer-events: none;
}

.search-wrapper input {
    padding-right: 50px;
    margin-bottom: 0;
}

.search-empty-message {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-tertiary);
    font-size: 0.95rem;
}

#productResults {
    max-height: 350px;
    overflow-y: auto;
}

.product-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.product-result-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--text-tertiary);
}

.prod-info h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: white;
}

.prod-cat {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.prod-meta {
    text-align: right;
}

.prod-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-primary);
    display: block;
    margin-bottom: 4px;
}

.prod-stock {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
}

.prod-stock.in-stock {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-primary);
}

.prod-stock.low-stock {
    background: rgba(251, 191, 36, 0.15);
    color: var(--accent-gold);
}

/* ==========================================
   STOCK ALERT & INCIDENT MODALS
   ========================================== */
.modal-content select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.submit-incident-btn {
    background: linear-gradient(135deg, #ef4444, #b91c1c) !important;
    color: white !important;
}

/* Toast notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #1a1f16 0%, #131612 100%);
    padding: 16px 28px;
    border-radius: 14px;
    transform: translateY(150%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2000;
    border: 1px solid var(--accent-primary);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast.show {
    transform: translateY(0);
}

/* Loading spinner */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    gap: 12px;
    color: var(--text-tertiary);
}

.loader {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments */
@media (max-width: 1100px) {
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }

    .promotions-card {
        grid-column: span 2;
    }

    .tips-card {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .promotions-card,
    .tips-card {
        grid-column: span 1;
    }

    .header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
    }

    .quick-actions-grid {
        grid-template-columns: 1fr 1fr;
    }
}