:root {
            --primary-color: #4285f4;
            --secondary-color: #34a853;
            --danger-color: #ea4335;
            --warning-color: #fbbc05;
            --light-color: #f8f9fa;
            --dark-color: #343a40;
            --border-radius: 8px;
            --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: #e4e4e4;;
            color: var(--dark-color);
            line-height: 1.6;
            font-size: 16px;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            -webkit-text-size-adjust: 100%;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
            flex: 1;
            width: 100%;
        }
        
        header {
            background-color: white;
            padding: 20px;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            margin-bottom: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
        }
        
        h1 {
            color: var(--primary-color);
            font-size: 24px;
            font-weight: 600;
        }
        
        .login-section {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 70vh;
            text-align: center;
            padding: 20px;
        }
        
        .login-section h2 {
            margin-bottom: 20px;
            color: var(--dark-color);
            font-size: 20px;
        }
        
        .login-btn {
            background-color: var(--primary-color);
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: var(--border-radius);
            font-size: 16px;
            cursor: pointer;
            transition: background-color 0.3s;
            display: flex;
            align-items: center;
            gap: 10px;
            min-height: 44px;
        }
        
        .login-btn:hover {
            background-color: #3367d6;
        }
        
        .user-info {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            justify-content: flex-end;
        }
        
        .user-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
        }
        
        .logout-btn {
            background-color: var(--danger-color);
            color: white;
            border: none;
            padding: 10px 16px;
            border-radius: var(--border-radius);
            cursor: pointer;
            transition: background-color 0.3s;
            font-size: 14px;
            min-height: 44px;
        }
        
        .logout-btn:hover {
            background-color: #d33426;
        }
        
        .admin-section {
            display: none;
        }
        
        .controls {
            background-color: white;
            padding: 20px;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            margin-bottom: 20px;
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
        }
        
        .btn {
            padding: 12px 20px;
            border: none;
            border-radius: var(--border-radius);
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s;
            font-size: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .btn-primary {
            background-color: var(--primary-color);
            color: white;
        }
        
        .btn-primary:hover {
            background-color: #3367d6;
        }
        
        .btn-success {
            background-color: var(--secondary-color);
            color: white;
        }
        
        .btn-success:hover {
            background-color: #2e9440;
        }
        
        .btn-warning {
            background-color: var(--warning-color);
            color: white;
        }
        
        .btn-warning:hover {
            background-color: #e6a700;
        }
        
        .btn-danger {
            background-color: var(--danger-color);
            color: white;
        }
        
        .btn-danger:hover {
            background-color: #d33426;
        }
        
        .btn-small {
            padding: 10px 16px;
            font-size: 13px;
            flex: 1;
        }
        
        .main-controls {
            display: flex;
            flex-direction: column;
            gap: 10px;
            width: 100%;
        }
        
        .secondary-controls {
            display: flex;
            gap: 10px;
            width: 100%;
            justify-content: space-between;
        }
        
        .users-table {
            background-color: white;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            overflow: hidden;
            margin-bottom: 20px;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        .users-table table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 15px;
        }
        

        .users-table th {
            background-color: #f5f5f5;
            padding: 12px 15px;
            text-align: left;
            font-weight: 600;
            border-bottom: 2px solid #e0e0e0;
        }

        .users-table td {
            padding: 12px 15px;
            border-bottom: 1px solid #e0e0e0;
        }

        .users-table tr:hover {
            background-color: #f9f9f9;
        }
        .user-status-active {
            color: rgb(0, 119, 255);
        }
        .user-status-blocked, .user-status-TicketOwner {
            color: #ea4335;
            font-weight: bold;
        }
        .status-paid {
            color: #0f9d58;
            font-weight: 500;
        }

        .status-unpaid {
            color: #ea4335;
            font-weight: 500;
        }
        
        .edit-btn, .delete-btn {
            padding: 6px 12px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 12px;
            font-weight: 500;
        }

        .info-btn {
            background: none;
            border: none;
            cursor: pointer;
            color: #666;
            padding: 5px;
            border-radius: 4px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .info-btn:hover {
            background-color: #f0f0f0;
            color: #4285f4;
        }
        
        .edit-btn {
            background-color: var(--warning-color);
            color: white;
        }

        .edit-actions {
            display: flex;
            gap: 8px;
        }
        
        .delete-btn {
            background-color: #ea4335;
            color: white;
        }

        .delete-btn:hover {
            background-color: #d33426;
        }





        
        .ticket-section {
            background-color: white;
            padding: 20px;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            margin-bottom: 20px;
        }
        
        .ticket-header {
            color: #656363;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
        }
        
        .ticket-content {
            display: flex;
            gap: 15px;
            flex-direction: column;
        }
        
        .ticket-input {
            flex: 1;
            padding: 15px;
            border: 1px solid #ddd;
            border-radius: var(--border-radius);
            font-size: 16px;
            min-height: 300px;
            resize: vertical;
            display: none;
            width: 100%;
            line-height: 1.5;
        }
        
        .ticket-display {
            margin: 20px 0;
            max-width: 800px;
            width: 100%;
            -webkit-touch-callout: none; /* iOS Safari */
            -webkit-user-select: none; /* Safari */
            -khtml-user-select: none; /* Konqueror HTML */
            -moz-user-select: none; /* Old versions of Firefox */
            -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently */
        }
 
        /* Professional Ticket Card Styles */
        .ticket-card {
            background: linear-gradient(135deg, #1a237e, #283593);
            border-radius: 16px;
            padding: 25px;
            color: white;
            position: relative;
            overflow: hidden;
            width: 100%;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        
        .ticket-card::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 8px;
            background: linear-gradient(90deg, #ff6f00, #ffab00, #ffd600);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        }
        
        .ticket-card::after {
            content: "";
            position: absolute;
            top: -30px;
            right: -30px;
            width: 120px;
            height: 120px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 50%;
        }
        
        .ticket-route {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            position: relative;
            padding-bottom: 20px;
            border-bottom: 2px dashed rgba(255, 255, 255, 0.3);
        }
        
        .ticket-station {
            display: flex;
            flex-direction: column;
            text-align: center;
            flex: 1;
        }
        
        .station-name {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 6px;
            letter-spacing: 0.5px;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        }
        
        .station-label {
            font-size: 12px;
            opacity: 0.9;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        
        .route-arrow {
            margin: 0 20px;
            font-size: 28px;
            color: #ffd600;
            font-weight: bold;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        }
        
        .ticket-details {
            display: grid;
            grid-template-columns: 1fr;
            gap: 15px;
            margin-bottom: 25px;
        }
        
        .ticket-detail {
            display: flex;
            flex-direction: column;
            padding: 10px 0;
        }
        .ticket-detail-group {
          display: flex;
          justify-content: space-around;
        }
        
        .detail-label {
            font-size: 12px;
            color: #6f749b;
            opacity: 0.9;
            margin-bottom: 6px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.8px;
        }
        
        .detail-value {
            font-size: 15px;
            font-weight: 600;
            color: #fff;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
            text-align: center;
        }
        
        .ticket-id {
            text-align: center;
            padding: 15px;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
            border-radius: 10px;
            font-family: 'Courier New', monospace;
            font-weight: 700;
            letter-spacing: 2px;
            margin-bottom: 25px;
            border: 1px solid rgba(255, 255, 255, 0.2);
            font-size: 18px;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
        }
        
        .ticket-validity {
            display: flex;
            justify-content: center;
            margin-bottom: 25px;
            padding: 20px;
            background: rgba(255, 255, 255, 0.08);
            border-radius: 12px;
            border: 1px solid rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(10px);
        }
        
        .validity-item {
            display: flex;
            flex-direction: column;
            text-align: center;
            align-items: center;
        }
        
        .days-left-badge {
            display: inline-block;
            padding: 8px 20px;
            border-radius: 25px;
            font-weight: 700;
            font-size: 13px;
            text-transform: uppercase;
            letter-spacing: 1px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        
        .days-positive {
            background: linear-gradient(135deg, #00c853, #64dd17);
            color: white !important;
        }
        
        .days-negative {
            background: linear-gradient(135deg, #d50000, #ff5252);
            color: white !important;
        }
        
        .days-zero {
            background: linear-gradient(135deg, #ff6f00, #ffab00);
            color: white !important;
        }
        
        .ticket-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 20px;
            border-top: 2px dashed rgba(255, 255, 255, 0.3);
        }
        
        .ticket-operator {
            font-weight: 600;
            letter-spacing: 0.5px;
        }
        
        .ticket-type {
            font-size: 12px;
            background: rgba(255, 255, 255, 0.15);
            padding: 8px 16px;
            border-radius: 20px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        
        .status-badge {
            display: inline-block;
            padding: 4px 10px;
            border-radius: 6px;
            font-size: 11px;
            font-weight: 700;
            margin-left: 10px;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }
        
        .status-active {
            background: linear-gradient(135deg, #00c853, #64dd17);
            color: white;
        }
        
        .status-inactive {
            background: linear-gradient(135deg, #d50000, #ff5252);
            color: white;
        }
        
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        
        .modal-content {
            background-color: white;
            padding: 25px;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
            width: 100%;
            max-width: 500px;
            max-height: 90vh;
            overflow-y: auto;
        }
        
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }
        
        .close-btn {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: var(--dark-color);
            min-height: 44px;
            min-width: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .form-group {
            margin-bottom: 15px;
        }
        
        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            font-size: 14px;
        }
        
        input, select {
            width: 100%;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: var(--border-radius);
            font-size: 16px;
            min-height: 44px;
        }
        
        .form-actions {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            margin-top: 20px;
            flex-direction: row-reverse;
        }
        
        .loading {
            text-align: center;
            padding: 30px;
            color: var(--primary-color);
            font-size: 16px;
        }
        
        .error-message {
            background-color: #fce8e6;
            color: var(--danger-color);
            padding: 20px;
            border-radius: var(--border-radius);
            margin-bottom: 20px;
            text-align: center;
            display: none;
            font-size: 15px;
        }
        
        footer {
            background-color: white;
            padding: 20px;
            text-align: center;
            border-top: 1px solid #e0e0e0;
            margin-top: 30px;
            color: #666;
            font-size: 14px;
        }
        
        .ticket-buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            margin-top: 1rem;
        }
        
        /* Mobile Responsive Styles */
        @media (max-width: 768px) {
            .container {
                padding: 15px;
            }
            
            header {
                padding: 15px;
                margin-bottom: 15px;
                flex-direction: column;
                text-align: center;
            }
            
            h1 {
                font-size: 20px;
            }
            
            .user-info {
                justify-content: space-between;
                width: 100%;
            }
            
            .controls {
                padding: 15px;
                margin-bottom: 15px;
            }
            
            .main-controls {
                gap: 8px;
            }
            
            .secondary-controls {
                gap: 8px;
            }
            
            .btn {
                padding: 10px 16px;
            }
            
            .ticket-section {
                padding: 15px;
                margin-bottom: 15px;
            }
            
            .ticket-header {
                flex-direction: column;
                gap: 10px;
                text-align: center;
            }
            
            .ticket-card {
                padding: 20px;
            }
            
            .station-name {
                font-size: 16px;
            }
            
            .ticket-id {
                font-size: 16px;
                padding: 12px;
            }
            
            .route-arrow {
                margin: 0 15px;
                font-size: 24px;
            }
            
            th, td {
                padding: 10px 12px;
                font-size: 13px;
            }
        }
        
        @media (max-width: 480px) {
            .container {
                padding: 10px;
            }
            
            header {
                padding: 12px;
            }
            
            h1 {
                font-size: 18px;
            }
            
            .controls {
                padding: 12px;
            }
            
            .btn {
                padding: 8px 12px;
            }
            
            .ticket-section {
                padding: 12px;
            }
            
            .ticket-card {
                padding: 15px;
            }
            
            .station-name {
                font-size: 14px;
            }
            
            .ticket-id {
                font-size: 14px;
                padding: 10px;
            }
            
            .ticket-details {
                gap: 10px;
            }
        }
        

        @media (min-width: 768px) {
        
            
            .ticket-card {
                max-width: 500px;
            }
            
            .main-controls {
                flex-direction: row;
                width: auto;
            }
            
            .secondary-controls {
                width: auto;
                justify-content: flex-end;
                flex: 1;
            }
            
            .btn {
                flex: 0 1 auto;
            }
        }
        
        @media (min-width: 992px) {

            
            .ticket-card {
                max-width: 550px;
            }
        }


/* Notes Section Styles */
.notes-section {
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
}

.notes-header {
    color: #656363;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.notes-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.note-item {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: var(--border-radius);
    padding: 20px;
    border-left: 4px solid #ffc107;
    position: relative;
}

.note-item.critical {
    border-left-color: var(--danger-color);
    background: linear-gradient(135deg, #fce8e6, #fdeaea);
}

.note-item.warning {
    border-left-color: var(--warning-color);
    background: linear-gradient(135deg, #fff3e0, #fff8e1);
}

.note-content {
    margin-bottom: 15px;
}

.note-message {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.note-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: #666;
}

.note-priority {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.priority-critical {
    background-color: var(--danger-color);
    color: white;
}

.priority-warning {
    background-color: var(--warning-color);
    color: white;
}

.note-url {
    color: var(--primary-color);
    text-decoration: none;
}

.note-url:hover {
    text-decoration: underline;
}

.note-expiry {
    color: #666;
}

.note-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.note-edit-btn, .note-delete-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    min-height: 36px;
}

.note-edit-btn {
    background-color: var(--warning-color);
    color: white;
}

.note-delete-btn {
    background-color: var(--danger-color);
    color: white;
}

.no-notes {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
}

/* Notes Modal Styles */
#noteModal .form-group {
    margin-bottom: 15px;
}

#noteModal label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

#noteModal textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

#noteModal select, #noteModal input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 16px;
    min-height: 44px;
}


/* Logs Section Styles */
.logs-section {
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
}

.logs-header {
    color: #656363;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.logs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.log-item {
    background: #f8f9fa;
    font-size: 14px;
}

.log-item.error {
    border-left-color: var(--danger-color);
    background: #fce8e6;
}

.log-item.warning {
    border-left-color: var(--warning-color);
    background: #fff3e0;
}

.log-item.success {
    border-left-color: var(--secondary-color);
    background: #e6f4ea;
}

.log-timestamp {
    color: #abaaaa;
    font-size: 12px;
    font-weight: 600;
}
.log-timestamp span {
    color: rgb(144, 0, 0);
}

.log-message {
    color: var(--dark-color);
    line-height: 1.4;
}

.no-logs {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
}

.logs-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}


/* Tabs Container */
.tabs-container {
    margin-bottom: 20px;
}

.content-tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.content-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
    min-height: 44px;
}

.content-tab:hover {
    color: var(--primary-color);
}

.content-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}


.ticket-tabs {
            display: flex;
            margin-bottom: 20px;
            border-bottom: 1px solid #e0e0e0;
            justify-content: space-around;
        }
        
        .ticket-tab {
            padding: 12px 24px;
            background: none;
            border: none;
            border-bottom: 3px solid transparent;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s;
            color: #666;
        }
        
        .ticket-tab:hover {
            color: #4285f4;
        }
        
        .ticket-tab.active {
            color: #4285f4;
            border-bottom-color: #4285f4;
        }
        
        .history-tickets {
            margin-top: 20px;
        }
        
        .history-ticket-card {
            background: linear-gradient(135deg, #2c387e, #3f51b5);
            border-radius: 12px;
            padding: 20px;
            color: white;
            margin-bottom: 15px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            position: relative;
            overflow: hidden;
              -webkit-touch-callout: none; /* iOS Safari */
                -webkit-user-select: none; /* Safari */
                -khtml-user-select: none; /* Konqueror HTML */
                -moz-user-select: none; /* Old versions of Firefox */
                -ms-user-select: none; /* Internet Explorer/Edge */
                user-select: none; /* Non-prefixed version, currently */
        }
        
        .history-ticket-card::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 6px;
            background: linear-gradient(90deg, #ff6f00, #ffab00);
        }
        
        .history-ticket-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
        }
        
        .history-ticket-id {
            font-family: 'Courier New', monospace;
            font-weight: 700;
            font-size: 16px;
        }
        
        .history-ticket-date {
            font-size: 12px;
            opacity: 0.8;
        }
        
        .history-ticket-route {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .history-station {
            text-align: center;
            flex: 1;
        }
        
        .history-station-name {
            font-size: 14px;
            font-weight: 600;
        }
        
        .history-station-label {
            font-size: 10px;
            opacity: 0.8;
            text-transform: uppercase;
        }
        
        .history-route-arrow {
            margin: 0 15px;
            color: #ffd600;
            font-weight: bold;
        }
        
        .history-ticket-details {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
            font-size: 12px;
            justify-items: center;
        }
        
        .history-detail {
            display: flex;
            flex-direction: column;
        }
        
        .history-detail-label {
            opacity: 0.8;
            margin-bottom: 4px;
            font-size: 10px;
            text-transform: uppercase;
        }
        
        .history-detail-value {
            font-weight: 600;
        }
        
        .no-history {
            text-align: center;
            padding: 40px;
            color: #666;
            font-style: italic;
        }
        
        .ticket-swipe-container.single-ticket .ticket-swipe-wrapper {
            transform: translateX(0) !important;
            width: 100%;
        }
        
        .ticket-swipe-container.single-ticket .ticket-swipe-slide {
            width: 100%;
        }
        
        .ticket-swipe-indicators.hidden {
            display: none;
        }


        /* Ticket Selection Modal Styles */
.ticket-selection-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
}

.ticket-selection-info {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
    padding: 12px;
    margin-bottom: 16px;
    border-radius: 4px;
}

.ticket-selection-info p {
    margin: 0;
    color: #1565c0;
}

.ticket-selection-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    background-color: var(--card-background);
    transition: transform 0.2s ease;
}

.ticket-selection-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ticket-selection-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.ticket-selection-header h3 {
    margin: 0 0 4px 0;
    color: var(--text-color);
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticket-id-small {
    font-size: 12px;
    color: #666;
    font-family: monospace;
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
}

.ticket-status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    margin-left: 8px;
}

.ticket-status-badge.status-active {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ticket-status-badge.status-expired {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.ticket-status-badge.status-expiring {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.newest-badge {
    display: block;
    background-color: #007bff;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    margin-top: 4px;
    text-align: center;
}

.ticket-selection-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.ticket-detail-card {
  border-left: 3px solid #007bff;
  padding-left: 1rem;
}

.ticket-detail-card .detail-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
    font-weight: 500;
}

.ticket-detail-card .detail-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
}

.ticket-selection-footer {
    display: flex;
    justify-content: right;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.days-left {
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.days-left.days-positive {
    background-color: #d4edda;
    color: #155724;
}

.days-left.days-zero {
    background-color: #fff3cd;
    color: #856404;
}

.days-left.days-negative {
    background-color: #f8d7da;
    color: #721c24;
}

.select-ticket-btn {
    min-width: 150px;
}

.days-soon {
    background-color: red;
    border-radius: 15px;
}

/* Toggle Switch Styles - Updated to 40px height */
.toggle-switch-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 10px 0;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    justify-content: center;
}

.toggle-label {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    min-width: 60px;
    text-align: center;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 72px; /* Adjusted from 80px to keep proportion */
    height: 40px; /* Changed from 44px to 40px */
    flex-shrink: 0;
    margin: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #dc3545; /* Red for unpaid */
    transition: .4s;
    border-radius: 40px; /* Changed from 44px to match 40px height */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 32px; /* Changed from 36px (40px - 8px padding) */
    width: 32px;  /* Changed from 36px */
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #28a745; /* Green for paid */
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(32px); /* Changed from 36px (72px width - 32px slider - 8px padding) */
}

/* Active toggle state */
.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 1px #28a745, 0 0 0 4px rgba(40, 167, 69, 0.1);
}

/* Mobile optimization - Also updated to 40px height */
@media (max-width: 768px) {
    .toggle-switch-container {
        padding: 12px; /* Reduced from 15px */
        gap: 18px; /* Reduced from 20px */
    }
    
    .toggle-switch {
        width: 72px; /* Reduced from 90px */
        height: 40px; /* Reduced from 50px to 40px */
    }
    
    .toggle-slider:before {
        height: 32px; /* Reduced from 42px */
        width: 32px;  /* Reduced from 42px */
    }
    
    .toggle-switch input:checked + .toggle-slider:before {
        transform: translateX(32px); /* Adjusted for new width */
    }
    
    .toggle-label {
        font-size: 16px; /* Reduced from 18px */
        min-width: 60px; /* Reduced from 70px */
    }
}

/* Touch-friendly styles for mobile */
.toggle-switch {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.toggle-slider {
    -webkit-tap-highlight-color: transparent;
}

/* Animation for toggle */
@keyframes toggle-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.toggle-switch input:checked + .toggle-slider {
    animation: toggle-pulse 0.3s ease-in-out;
}