/**
 * Doubles notification, pricing toggle, Playwright status, tier colours.
 *
 * Split from public/css/cashier.css (2,091 lines). Cascade order matters:
 * load these in the numbered order, exactly as the original file was ordered.
 */

/* ===== DOUBLES NOTIFICATION STYLES ===== */
.doubles-notification {
    padding: 10px 25px;
    margin: 15px auto -15px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    max-width: 700px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    position: relative;
    animation: slideDown 0.5s ease-out;
    display: none;
}

.doubles-notification-block {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    margin: 10px auto 0;
    padding: 10px 15px;
    max-width: 700px;
}

.doubles-notification-block:last-child {
    margin-bottom: 0;
}

.doubles-notification.show {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.doubles-notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.doubles-notification.show {
    display: block;
}

.doubles-notification-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex: 1;
    font-size: 1em;
    color: #856404;
    font-weight: 600;
}

.doubles-notification-text i {
    font-size: 1.4em;
    color: #f39c12;
}

.doubles-notification-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.doubles-notification-link {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(231, 76, 60, 0.3);
}

.doubles-notification-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg, #c0392b, #a93226);
}

.doubles-notification-close {
    background: none;
    border: none;
    color: #856404;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.doubles-notification-close:hover {
    background: #856404;
    color: white;
    transform: scale(1.1);
}

/* Mobile responsive for doubles notification */
@media (max-width: 740px) {
    .doubles-notification {
        margin: 15px 10px -15px;
        padding: 15px;
    }

    .doubles-notification-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .doubles-notification-text {
        font-size: 1em;
    }

    .doubles-notification-actions {
        width: 100%;
        justify-content: space-between;
    }

    .doubles-notification-link {
        flex: 1;
        text-align: center;
    }
}

/* ===== PRICING TIERS TOGGLE STYLES ===== */

/* Both sit ON the gradient header, so they take the same tinted-outline treatment as
   .logout-btn. They used to be the purple gradient itself, which left them all but
   invisible against the bar they sit on. */
.pricing-toggle-btn,
.discount-modal-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: var(--transition);
}

.pricing-toggle-btn:hover,
.discount-modal-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.discount-modal-btn {
    font-weight: bolder;
}

/* The "on" state has to read as a state, not just a hover - so it leaves the tinted
   set entirely. */
.pricing-toggle-btn.active {
    background: linear-gradient(135deg, #28a745, #20c997);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.pricing-toggle-btn.active:hover {
    background: linear-gradient(135deg, #28a745, #20c997);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

/* The third state - reserved seats drawn as if they were free - is amber rather than
   green, because it is a view an operator is meant to notice and switch back off. */
.pricing-toggle-btn.reserved-as-available {
    background: #f39c12;
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.pricing-toggle-btn.reserved-as-available:hover {
    background: #f39c12;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
}

.language-toggle {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.lang-btn {
    background: #f8f9fa;
    color: #6c757d;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border-right: 1px solid #dee2e6;
}

.lang-btn:last-child {
    border-right: none;
}

.lang-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.lang-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.lang-btn.active:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

/* ===== PLAYWRIGHT STATUS INDICATOR STYLES ===== */
.playwright-status {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e74c3c; /* Default to red (disconnected) */
    border: 2px solid white;
    box-shadow: 0 0 4px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
}

.status-dot.connected {
    background: #27ae60; /* Green when connected */
}

.tab-counter {
    margin-left: 8px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    display: inline-block;
}

/* Both sit on the header's subtitle line; see .header-content p in 01-base.css.
   White, not the success green the count used to be - the green was a 1.7:1 read
   against the purple. The brackets and the weight are what set it apart now. */
.available-seats-count {
    font-weight: 600;
}

/* ===== PRICING TIERS COLOR STYLES ===== */
.pricing-tiers-enabled .seat.available:not(.selected).tier-a {
    background: #30e06e;
}

.pricing-tiers-enabled .seat.available:not(.selected).tier-b {
    background: #26aea7;
}

.pricing-tiers-enabled .seat.available:not(.selected).tier-c {
    background: #27ae60;
}

.pricing-tiers-enabled .seat.available:not(.selected).tier-d {
    background: #559900;
}

.pricing-tiers-enabled .seat.available:not(.selected).tier-e {
    background: #1a804a;
}

/* ===== SHOW RESERVED AS AVAILABLE STYLES ===== */
.show-reserved-as-available .seat.reserved:not(.selected) {
    background: #27ae60;
}

.show-reserved-as-available .seat.reserved:not(.selected):hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}
