/* ============================================
   Holiday Automation Dashboard - Scoped Styles
   This file contains styles ONLY for the holiday 
   dashboard feature. No changes to the main site.
   Uses same Starbucks green color palette as main.
   ============================================ */

/* Dashboard Container - Uses its own namespace */
.holiday-dashboard {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #1E3932;
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(0, 117, 74, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(0, 168, 98, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #162B26 0%, #1E3932 30%, #0D1B17 100%);
    z-index: 9999;
    overflow-y: auto;
    padding: 1.5rem;
    padding-top: max(1.5rem, env(safe-area-inset-top));
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.holiday-dashboard.is-visible {
    display: block;
    opacity: 1;
}

.holiday-dashboard.is-entering {
    display: block;
    animation: holidayFadeIn 0.3s ease-out forwards;
}

.holiday-dashboard.is-exiting {
    animation: holidayFadeOut 0.3s ease-in forwards;
}

@keyframes holidayFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@keyframes holidayFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* Dashboard Inner Container */
.holiday-dashboard__container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Dashboard Header */
.holiday-dashboard__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.holiday-dashboard__title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.holiday-dashboard__icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #CBA258 0%, #E5C77D 50%, #CBA258 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.holiday-dashboard__icon svg {
    width: 18px;
    height: 18px;
    color: #1E3932;
    fill: #1E3932;
}

.holiday-dashboard__title-text {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.holiday-dashboard__title h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    letter-spacing: -0.01em;
}

.holiday-dashboard__badge {
    font-size: 0.625rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Close Button - Icon only */
.holiday-dashboard__close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 233, 226, 0.12);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.2s ease;
}

.holiday-dashboard__close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(212, 233, 226, 0.25);
    color: #fff;
}

.holiday-dashboard__close svg {
    width: 18px;
    height: 18px;
}

/* Main Grid Layout */
.holiday-dashboard__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

/* Card Component */
.holiday-card {
    background: rgba(30, 57, 50, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 233, 226, 0.12);
    border-radius: 24px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.holiday-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 20%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0.1) 80%,
            transparent 100%);
}

/* Card Header with Badge */
.holiday-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.holiday-card__header-left {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.holiday-card__icon {
    width: 28px;
    height: 28px;
    background: rgba(0, 168, 98, 0.15);
    border: 1px solid rgba(0, 168, 98, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.holiday-card__icon svg {
    width: 14px;
    height: 14px;
    color: #00A862;
}

.holiday-card__icon--holiday {
    background: rgba(203, 162, 88, 0.15);
    border-color: rgba(203, 162, 88, 0.3);
}

.holiday-card__icon--holiday svg {
    color: #CBA258;
}

.holiday-card__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.holiday-card__tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 233, 226, 0.12);
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
}

.holiday-card__tag--locked {
    background: rgba(0, 168, 98, 0.1);
    border-color: rgba(0, 168, 98, 0.3);
    color: #00A862;
}

/* Locked Data Display (for Regular Tips from main app) */
.holiday-locked-data {
    background: rgba(0, 168, 98, 0.08);
    border: 2px solid rgba(0, 168, 98, 0.25);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
}

.holiday-locked-data__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    background: rgba(0, 168, 98, 0.15);
    border: 1px solid rgba(0, 168, 98, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.holiday-locked-data__icon svg {
    width: 22px;
    height: 22px;
    color: #00A862;
}

.holiday-locked-data__text {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #00A862;
    margin-bottom: 0.25rem;
}

.holiday-locked-data__hint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.holiday-locked-data.has-data {
    background: rgba(0, 168, 98, 0.12);
    border-color: rgba(0, 168, 98, 0.4);
}

.holiday-locked-data.has-data .holiday-locked-data__icon {
    background: rgba(0, 168, 98, 0.25);
    border-color: rgba(0, 168, 98, 0.5);
}

.holiday-locked-data.has-data .holiday-locked-data__hint {
    color: #00A862;
    font-weight: 500;
}

/* Upload Zone */
.holiday-upload-zone {
    border: 2px dashed rgba(212, 233, 226, 0.2);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: transparent;
}

.holiday-upload-zone:hover {
    border-color: rgba(0, 168, 98, 0.5);
    background: rgba(0, 168, 98, 0.05);
}

.holiday-upload-zone.is-dragover {
    border-color: #00A862;
    background: rgba(0, 168, 98, 0.1);
}

.holiday-upload-zone.has-file {
    border-color: rgba(0, 168, 98, 0.5);
    border-style: solid;
    background: rgba(0, 168, 98, 0.08);
}

.holiday-upload-zone--holiday:hover {
    border-color: rgba(203, 162, 88, 0.5);
    background: rgba(203, 162, 88, 0.05);
}

.holiday-upload-zone--holiday.is-dragover {
    border-color: #CBA258;
    background: rgba(203, 162, 88, 0.1);
}

.holiday-upload-zone--holiday.has-file {
    border-color: rgba(203, 162, 88, 0.5);
    background: rgba(203, 162, 88, 0.08);
}

.holiday-upload-zone__icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 233, 226, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.holiday-upload-zone__icon svg {
    width: 22px;
    height: 22px;
    color: rgba(255, 255, 255, 0.4);
}

.holiday-upload-zone__text {
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.25rem;
}

.holiday-upload-zone__hint {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.4);
}

.holiday-upload-zone__input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.holiday-upload-zone__status {
    margin-top: 0.625rem;
    font-size: 0.75rem;
    color: #00A862;
}

.holiday-upload-zone--holiday .holiday-upload-zone__status {
    color: #CBA258;
}

/* Partners Preview List */
.holiday-partners-list {
    max-height: 150px;
    overflow-y: auto;
    margin-top: 0.75rem;
}

.holiday-partner-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.holiday-partner-row:last-child {
    border-bottom: none;
}

.holiday-partner-name {
    font-size: 0.8125rem;
    color: #fff;
    font-weight: 500;
}

.holiday-partner-hours {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    font-variant-numeric: tabular-nums;
}

/* Cash Tips Input Section */
.holiday-tips-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(212, 233, 226, 0.08);
}

.holiday-tips-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.625rem;
}

.holiday-tips-label svg {
    width: 12px;
    height: 12px;
    color: #00A862;
}

.holiday-tips-label--holiday svg {
    color: #CBA258;
}

.holiday-tips-input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(212, 233, 226, 0.12);
    border-radius: 12px;
    overflow: hidden;
}

.holiday-tips-input-wrapper:focus-within {
    border-color: #00754A;
    background: rgba(0, 117, 74, 0.08);
    box-shadow: 0 0 0 4px rgba(0, 117, 74, 0.1);
}

.holiday-tips-input-wrapper--holiday:focus-within {
    border-color: #CBA258;
    background: rgba(203, 162, 88, 0.08);
    box-shadow: 0 0 0 4px rgba(203, 162, 88, 0.1);
}

.holiday-tips-currency {
    padding: 0.75rem 0.875rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #CBA258;
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid rgba(212, 233, 226, 0.08);
}

.holiday-tips-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem;
    color: #fff;
    font-size: 0.9375rem;
    font-variant-numeric: tabular-nums;
}

.holiday-tips-input:focus {
    outline: none;
}

.holiday-tips-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Calculate Section */
.holiday-calculate-section {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.5rem;
}

.holiday-calculate-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.holiday-calculate-hint svg {
    width: 14px;
    height: 14px;
}

.holiday-calculate-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    background: #00754A;
    border: none;
    border-radius: 9999px;
    padding: 1rem 1.5rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 117, 74, 0.4);
    transition: all 0.2s ease;
}

.holiday-calculate-btn:hover:not(:disabled) {
    background: #00A862;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 168, 98, 0.5);
}

.holiday-calculate-btn:active:not(:disabled) {
    transform: translateY(0);
}

.holiday-calculate-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.holiday-calculate-btn svg {
    width: 20px;
    height: 20px;
}

/* Results Section */
.holiday-results {
    grid-column: 1 / -1;
    display: none;
}

.holiday-results.is-visible {
    display: block;
    animation: holidayFadeIn 0.4s ease-out;
}

/* Results Summary */
.holiday-results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.holiday-summary-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 233, 226, 0.08);
    border-radius: 12px;
    padding: 0.875rem;
    text-align: center;
}

.holiday-summary-stat__label {
    font-size: 0.625rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
}

.holiday-summary-stat__value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.holiday-summary-stat--normal .holiday-summary-stat__value {
    color: #00A862;
}

.holiday-summary-stat--holiday .holiday-summary-stat__value {
    color: #CBA258;
}

/* Results Table */
.holiday-results-table {
    width: 100%;
    border-collapse: collapse;
}

.holiday-results-table th,
.holiday-results-table td {
    padding: 0.75rem 0.625rem;
    text-align: left;
    border-bottom: 1px solid rgba(212, 233, 226, 0.08);
}

.holiday-results-table th {
    font-size: 0.6875rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.holiday-results-table td {
    font-size: 0.8125rem;
    color: #fff;
}

.holiday-results-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.holiday-results-table .td-name {
    font-weight: 500;
}

.holiday-results-table .td-hours {
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.6);
}

.holiday-results-table .td-normal {
    color: #00A862;
    font-variant-numeric: tabular-nums;
}

.holiday-results-table .td-holiday {
    color: #CBA258;
    font-variant-numeric: tabular-nums;
}

.holiday-results-table .td-total {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Bills Breakdown */
.holiday-bills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.625rem;
    margin-top: 0.75rem;
}

@media (max-width: 500px) {
    .holiday-bills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.holiday-bill-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 233, 226, 0.08);
    border-radius: 12px;
    padding: 0.75rem;
    text-align: center;
}

.holiday-bill-item__count {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.holiday-bill-item__denom {
    font-size: 0.6875rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.125rem;
}

/* Toggle Button (goes in the main UI) */
.holiday-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 233, 226, 0.12);
    border-radius: 9999px;
    padding: 0.875rem 1.25rem;
    color: #CBA258;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 1rem;
}

.holiday-toggle-btn:hover {
    background: rgba(203, 162, 88, 0.1);
    border-color: rgba(203, 162, 88, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.holiday-toggle-btn svg {
    width: 18px;
    height: 18px;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
    .holiday-dashboard {
        padding: 1rem;
    }

    .holiday-dashboard__title h2 {
        font-size: 1.125rem;
    }

    .holiday-card {
        padding: 1rem;
    }

    .holiday-results-table {
        display: block;
        overflow-x: auto;
    }

    .holiday-summary-stat__value {
        font-size: 1.125rem;
    }
}

/* Scrollbar Styling */
.holiday-dashboard::-webkit-scrollbar,
.holiday-partners-list::-webkit-scrollbar {
    width: 5px;
}

.holiday-dashboard::-webkit-scrollbar-track,
.holiday-partners-list::-webkit-scrollbar-track {
    background: transparent;
}

.holiday-dashboard::-webkit-scrollbar-thumb,
.holiday-partners-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.holiday-dashboard::-webkit-scrollbar-thumb:hover,
.holiday-partners-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}