@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Armenian:wght@400;600;700&display=swap');

/* Cashier Page Styles */
/* Cashier Page Styles */

/* ===== CSS VARIABLES ===== */
:root {
    --primary-gradient: linear-gradient(135deg, #764ba2, #667eea);
    --secondary-gradient: linear-gradient(135deg, #667eea, #764ba2);
    --success-color: #27ae60;
    --error-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --bg-light: #f8f9fa;
    --border-color: #dee2e6;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans Armenian', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

/* ===== LAYOUT STYLES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header {
    background: var(--primary-gradient);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    min-height: 60px;
}

.header h1 {
    font-size: 1.4em;
    font-weight: 300;
    margin: 0;
}

.header .event-datetime {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.controls {
    padding: 20px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.control-group {
    margin-bottom: 15px;
}

.control-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
}

.control-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

/* ===== SEATING AREA STYLES ===== */
.seating-container {
    position: relative;
    overflow: hidden;
    padding: 0px 30px 0px 30px;
}

.seating-area {
    position: relative;
    transform-origin: center center;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.main-seating {
    margin-top: 20px;
}

.balcony {
    margin-top: 20px;
}

.section-title {
    text-align: center;
    font-size: 1.2em;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
    display: none;
}

.row {
    display: flex;
    justify-content: center;
    align-items: center;
}

.row-label {
    width: 25px;
    text-align: center;
    font-weight: bold;
    color: #7f8c8d;
    margin: 2px;
    flex: none;
    line-height: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seat {
    width: 32px;
    height: 32px;
    margin: 3px;
    background: #3498db;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: white;
}

.seat.available {
    background: #27ae60;
}

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

.seat.occupied {
    background: #e74c3c;
    cursor: pointer;
}

.seat.occupied:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.seat.reserved {
    background: #f39c12;
    cursor: pointer;
}

.seat.reserved:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.4);
}

.seat.sold {
    background: #e74c3c;
    cursor: pointer;
}

.seat.sold:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.seat.partner-sold {
    background: #cc0033;
    cursor: not-allowed;
}

.seat.partner-reserved {
    background: #ff7700 !important;
    cursor: not-allowed;
}

.seat.partner-sold:hover,
.seat.partner-reserved:hover {
    transform: none;
    box-shadow: none;
}

.seat.selected {
    background: #9b59b6;
    animation: pulse 0.6s ease-in-out;
}

.seat.blocked {
    opacity: 0.3;
    cursor: not-allowed;
}

.seat.blockedout {
    background: #495057;
    cursor: not-allowed;
    pointer-events: none;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.gap {
    width: 32px;
    flex: none;
    margin: 3px;
}

/* ===== LEGEND STYLES ===== */
.legend {
    display: none;
    justify-content: center;
    gap: 30px;
    margin: 0px 0 30px 0;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: #2c3e50;
}

.legend-seat {
    width: 20px;
    height: 20px;
    border-radius: 6px;
}

/* ===== ACTION PANEL STYLES ===== */
.action-panel {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    margin: 25px 30px;
    border-radius: 15px;
    text-align: center;
}

.selected-seats {
    margin-top: 15px;
    font-size: 1.1em;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    background: linear-gradient(135deg, #fd79a8, #fdcb6e);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1.2em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 8px 25px rgba(253,121,168,0.3);
    display: inline-block;
}

.action-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(253,121,168,0.4);
}

.action-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.reserve-btn {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
}

.reserve-btn:hover:not(:disabled) {
    box-shadow: 0 12px 35px rgba(116, 185, 255, 0.4);
}

.return-btn {
    background: linear-gradient(135deg, #e17055, #fdcb6e);
}

.return-btn:hover:not(:disabled) {
    box-shadow: 0 12px 35px rgba(225, 112, 85, 0.4);
}

/* ===== MESSAGE STYLES ===== */
.message {
    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);
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ===== TICKET GENERATION STATUS STYLES ===== */
.ticket-status-container {
    max-width: 700px;
    margin: 15px auto -15px;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 2px solid #2196f3;
    border-radius: 8px;
    padding: 15px 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: relative;
    animation: slideDown 0.5s ease-out;
    font-weight: bold;
    text-align: center;
}

.ticket-status-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.ticket-status-icon {
    font-size: 1.4em;
    color: #2196f3;
}

.ticket-status-icon.success {
    color: #4caf50;
}

.ticket-status-icon.error {
    color: #f44336;
}

.ticket-status-text {
    flex: 1;
    text-align: left;
}

.ticket-status-title {
    font-size: 1.1em;
    color: #1565c0;
    margin-bottom: 5px;
}

.ticket-status-title.success {
    color: #2e7d32;
}

.ticket-status-title.error {
    color: #c62828;
}

.ticket-status-description {
    font-size: 0.9em;
    color: #666;
    font-weight: normal;
}

/* ===== 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 ===== */

.header-left-controls {
    display: flex;
    align-items: center;
}

.header-right-controls {
    display: flex;
    align-items: center;
}

.pricing-toggle-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.pricing-toggle-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

.pricing-toggle-btn.active:hover {
    box-shadow: 0 4px 12px rgba(40, 167, 69, 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;
}

.header-content {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* ===== 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;
}

/* ===== MOBILE RESPONSIVE STYLES ===== */
@media (max-width: 740px) {
    body {
        padding: 8px;
    }

    .container {
        border-radius: 12px;
    }

    .header {
        padding: 20px;
    }

    .header h1 {
        font-size: 1.4em;
    }

    .seating-container {
        padding: 10px;
    }

    .seat {
        width: 16px;
        height: 16px;
        margin: 1px;
        border-radius: 3px;
        font-size: 8px;
    }

    .row {
        margin-bottom: 2px;
    }

    .row-label {
        width: 20px;
        font-size: 0.75em;
        margin: 2px;
    }

    .gap {
        width: 16px;
    }

    .section-title {
        font-size: 1em;
        margin-bottom: 8px;
    }

    .main-seating {
        margin-bottom: 10px;
        margin-top: 5px;
    }

    .legend {
        gap: 12px;
        margin: 15px 0;
        padding: 0 5px;
    }

    .legend-item {
        font-size: 0.75em;
        gap: 4px;
    }

    .legend-seat {
        width: 14px;
        height: 14px;
    }

    .action-panel {
        margin: 15px 10px;
        padding: 15px;
    }

    .selected-seats {
        font-size: 0.9em;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
    }

    .action-btn {
        padding: 12px 25px;
        font-size: 1em;
        width: 100%;
        max-width: 200px;
    }
}

/* ===== MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s ease-out;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    margin: 0;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.modal-header {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    text-align: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
}

.modal-body {
    padding: 25px;
    text-align: center;
    color: #2c3e50;
}

.modal-body p {
    margin: 0 0 20px 0;
    font-size: 1.1em;
    line-height: 1.5;
}

.modal-footer {
    padding: 20px 25px;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
    display: flex;
    gap: 15px;
    justify-content: center;
    border-top: 1px solid #dee2e6;
}

.modal-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 120px;
}

.modal-btn.cancel {
    background: #6c757d;
    color: white;
}

.modal-btn.cancel:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.modal-btn.delete {
    background: #dc3545;
    color: white;
}

.modal-btn.delete:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.modal-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== NEW EVENT MODAL STYLES ===== */
.new-event-modal .modal-content {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.new-event-modal .modal-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input[readonly] {
    background: #f8f9fa;
    cursor: pointer;
}

.form-group input[readonly]:hover {
    background: #e9ecef;
    border-color: #007bff;
}

.form-group input[type="time"] {
    font-family: monospace;
}

.form-group input[type="time"]::-webkit-datetime-edit-hour-field,
.form-group input[type="time"]::-webkit-datetime-edit-minute-field {
    font-family: monospace;
}

.form-group input[type="time"] {
    color-scheme: dark light;
}

.form-group input[type="time"]::-webkit-datetime-edit-ampm-field {
    display: none;
}

.form-group input[type="time"]::-webkit-calendar-picker-indicator {
}

.time-input-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.time-select {
    width: 60px;
    padding: 8px 5px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.time-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.time-separator {
    font-weight: bold;
    color: #666;
    font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.price-tiers-row {
    display: flex;
    gap: 15px;
    align-items: end;
}

.price-tier-input {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 75px;
}

.price-tier-mapping-input {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 85px;
}

.price-tier-mapping-input select {
    padding: 7px;
}

.price-tier-input label {
    font-size: 0.9em;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}

.price-tier-input input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.price-tier-input input[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

.price-tier-mapping-input select[disabled] {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

.required {
    color: #e74c3c;
    font-weight: bold;
}

.file-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    cursor: pointer;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1;
}

/* Ensure filename div hover works properly */
.file-name.image-name-hover {
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

.file-input-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 2px dashed #dee2e6;
    border-radius: 6px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 90px;
    color: #6c757d;
    z-index: 2;
    position: relative;
}

.file-input-label:hover {
    border-color: #007bff;
    background: #e9ecef;
    color: #007bff;
}

.file-input-label i {
    margin-right: 8px;
    font-size: 1.2em;
}

.file-name {
    margin-top: 5px;
    font-size: 0.85em;
    color: #6c757d;
    word-break: break-all;
}

.language-tabs {
    display: flex;
    margin-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

.language-tab {
    padding: 8px 16px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #6c757d;
}

.language-tab.active {
    color: #007bff;
    border-bottom-color: #007bff;
}

.language-content {
    display: none;
}

.language-content.active {
    display: block;
}


/* ===== MODAL HEADER VARIATIONS ===== */
#newEventModal .modal-header {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

#editEventModal .modal-header {
    background: linear-gradient(135deg, #e67e22, #f39c12);
}

/* ===== EVENT TABS STYLES ===== */
.event-tabs {
    display: flex;
    border-bottom: 1px solid #dee2e6;
    background: white;
    margin-bottom: 5px;
}

.event-tab {
    flex: 1;
    padding: 10px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #6c757d;
    border-bottom: 2px solid transparent;
    font-size: 1.1em;
}

.event-tab.active {
    color: #007bff;
    border-bottom-color: #007bff;
    background: #f8f9fa;
}

.event-tab:hover:not(.active) {
    background: #e9ecef;
    color: #495057;
}

.event-menu[data-tab-content] {
    display: none;
}

.event-menu[data-tab-content].active {
    display: block;
}

.archived-event {
    opacity: 0.7;
}

.archived-event .event-name {
    color: #6c757d;
}

.archived-event .event-time {
    color: #adb5bd;
    font-style: italic;
}

/* ===== ARCHIVED EVENT STYLES ===== */
.archived-notice {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #6c757d;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    border: 1px solid #dee2e6;
}

.archived-seating {
    opacity: 0.8;
    pointer-events: none;
}


/* ===== SIDEBAR STYLES ===== */
.main-layout {
    display: flex;
    min-height: 100vh;
    background: white;
    padding: 20px;
}

.sidebar {
    width: 250px;
    background: #f8f9fa;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-right: 20px;
}

.admin-nav {
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    background: white;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.nav-link {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    color: #2c3e50;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9em;
}

.nav-link:hover {
    background: #e9ecef;
    color: #007bff;
    border-color: #adb5bd;
}

.nav-link.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
}

.crud-nav {
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    background: white;
    display: flex;
    gap: 8px;
    justify-content: center;
}

.crud-btn {
    display: inline-block;
    padding: 6px 12px;
    text-decoration: none;
    color: white;
    background: #e9ecef;
    border: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.85em;
    cursor: pointer;
    flex: 1;
    max-width: 70px;
}

.crud-btn:hover:not(:disabled) {
    background: #007bff;
    color: white;
    border-color: #007bff;
    transform: translateY(-1px);
}

.crud-btn:disabled {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    border-color: #dee2e6;
}

/* Admin panel button colors */
#new-event-btn {
    background: #28a745;
}

#edit-event-btn {
    background: #f39c12;
}

#delete-event-btn {
    background: #e74c3c;
}

.main-content {
    flex: 1;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.sidebar-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 20px;
    text-align: center;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-header.events-subheader {
    background: #BBB;
    padding: 5px;
    height: 40px;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 300;
}

.event-menu {
    max-height: calc(100vh - 50px);
    overflow-y: auto;
}

.event-item {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.event-item:hover {
    background: #f8f9fa;
}

.event-item.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.event-item.active .event-name {
    color: white;
}

.event-item.active .event-details {
    color: rgba(255, 255, 255, 0.8);
}

.event-name {
    font-weight: 600;
    font-size: 1.1em;
    margin-bottom: 5px;
    color: #2c3e50;
}

.event-details {
    font-size: 0.9em;
    color: #7f8c8d;
}

.theater-name {
    font-weight: 500;
}

.event-time {
    margin-top: 2px;
}

.no-events {
    padding: 40px 20px;
    text-align: center;
    color: #7f8c8d;
}

.no-events p {
    margin: 0;
    font-style: italic;
}

/* ===== MOBILE RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
    .main-layout {
        flex-direction: column;
        padding: 10px;
    }

    .sidebar {
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
        order: -1;
    }

    .main-content {
        order: 1;
    }

    .event-menu {
        max-height: 200px;
    }
}

/* ===== STATIC STYLING CLASSES ===== */
.message-container {
    max-width: 700px;
    margin: 0 auto;
}

.no-event-message {
    text-align: center;
    padding: 50px;
    color: #7f8c8d;
}

.legend-available {
    background: #27ae60;
}

.legend-sold {
    background: #e74c3c;
}

.legend-reserved {
    background: #f39c12;
}

.legend-selected {
    background: #9b59b6;
}

.seats-text-bold {
    font-weight: bold;
}

.seats-details {
    margin-top: 5px;
    font-size: 0.9em;
    color: #FFF;
}

.tooltip-image {
    max-width: 180px;
    max-height: 180px;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

.delete-warning {
    color: #e74c3c;
    font-weight: bold;
    margin-top: 15px;
}

.date-picker-container {
    position: relative;
}

.date-picker-hidden {
    position: absolute;
    left: 0;
    top: calc(100% - 30px);
    visibility: hidden;
    pointer-events: none;
    z-index: 9999;
}

.btn-create {
    background: #28a745;
    color: white;
}

.btn-update {
    background: #f39c12;
    color: white;
}

.btn-inactive {
    background: #bdc3c7;
}

.btn-sell-active {
    background: #e74c3c;
}

.btn-return-active {
    background: #28a745;
}

.btn-reserve-active {
    background: #f39c12;
}

.btn-disabled {
    opacity: 0.6;
}

.image-name-hover {
    cursor: pointer;
    text-decoration: underline;
    color: #007bff;
    padding: 8px 12px;
    border-radius: 6px;
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 20px;
    line-height: 1.4;
    position: relative;
    z-index: 3;
}

.image-tooltip {
    position: fixed;
    background: white;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 10000;
    pointer-events: none;
    max-width: 200px;
    max-height: 200px;
    overflow: hidden;
}

/* ===== USER INFO STYLES ===== */
.user-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ===== LOGOUT BUTTON STYLES ===== */
.logout-btn {
    padding: 6px 12px;
    margin: 0 5px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* ===== CHECKBOX STYLES ===== */
.checkbox-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 1em;
    color: #2c3e50;
    font-weight: 500;
    margin: 0;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
    min-width: 200px;
}

.checkbox-label:hover {
    background-color: #f8f9fa;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 12px;
    position: relative;
    transition: all 0.3s ease;
    background: white;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #28a745;
    border-color: #28a745;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.checkbox-label:hover .checkmark {
    border-color: #007bff;
}

/* ===== ENVIRONMENT TOGGLE STYLES ===== */
.environment-toggle-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0;
}

.environment-toggle-group label {
    margin: 0;
    white-space: nowrap;
}

.tomsarkgh-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0px;
}

.tomsarkgh-group label {
    margin: 0;
    white-space: nowrap;
}

.tomsarkgh-group input {
    flex: 1;
    max-width: 115px;
}

.environment-toggle {
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #dee2e6;
}

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

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

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

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

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

.test-btn.active {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.test-btn.active:hover {
    background: linear-gradient(135deg, #e08e0b, #d35400);
}

/* Custom Tooltip Styles */
.custom-tooltip {
    font-family: 'Noto Sans Armenian', Tahoma, Geneva, Verdana, sans-serif;
    animation: fadeInTooltip 0.2s ease-out;
}

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

/* Hide clear button for date inputs */
input[type="date"]::-webkit-clear-button,
input[type="date"]::-webkit-inner-spin-button,
input[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
    -webkit-appearance: none;
}

input[type="date"] {
    -webkit-appearance: none;
}

/* Firefox specific - hide clear button */
@-moz-document url-prefix() {
    input[type="date"]::-moz-clear-button {
        display: none;
    }
}

/* Alternative approach for Firefox */
input[type="date"]:focus::-moz-clear-button {
    display: none;
}

/* ===== STATS PAGE STYLES ===== */
.stats-container {
    padding: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.stat-value {
    font-size: 2em;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}

.stat-label {
    color: #666;
    font-size: 0.9em;
}

.charts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.chart-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chart-placeholder {
    height: 300px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

/* ===== SALES TABLE STYLES ===== */
.sales-table-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.sales-table-container h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.3em;
    font-weight: 600;
}

.table-responsive {
    overflow-x: auto;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.sales-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.sales-table th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #5a67d8;
    white-space: nowrap;
}

.sales-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.sales-table tr:nth-child(even) {
    background: #f8f9fa;
}

.sales-table tr:hover {
    background: #e3f2fd;
}

.sales-table .text-center {
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

/* Mobile responsive for sales table */
@media (max-width: 1024px) {
    .sales-table-container {
        padding: 15px;
        margin-top: 15px;
    }

    .sales-table {
        font-size: 0.8em;
    }

    .sales-table th,
    .sales-table td {
        padding: 8px 4px;
    }

    .sales-table th {
        font-size: 0.85em;
    }
}
/* Temporarily hide reserve button */
#reserve-btn {
    display: none;
}

