/* Tickets Page Styles */
.tickets-page {
    padding: 100px 0 80px;
    min-height: 100vh;
    background: linear-gradient(180deg, #f4f7ff 0%, #ffffff 100%);
    perspective: 1000px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tickets-page h1 {
    text-align: center;
    margin-bottom: 3rem;
    color: #EA232A;
    font-weight: 700;
    font-size: 2.5rem;
}

/* Search Controls */
.tickets-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.search-box {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 12px 40px;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #EA232A;
    box-shadow: 0 0 0 3px rgba(234, 35, 42, 0.1);
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

/* Tickets Container */
.tickets-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 20px 10px;
    margin: 0 auto;
    max-width: 1000px;
}

/* Ticket Card */
.ticket-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(72, 52, 212, 0.1);
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ticket-card::before,
.ticket-card::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #f8fafc;
    border-radius: 50%;
    z-index: 2;
}

.ticket-card::before {
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 
        0 -120px #f8fafc,
        0 120px #f8fafc;
}

.ticket-card::after {
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 
        0 -120px #f8fafc,
        0 120px #f8fafc;
}

.ticket-header {
    background: linear-gradient(135deg, #EA232A 0%, #ff4b4b 100%);
    padding: 30px;
    color: white;
    position: relative;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ticket-title-section {
    position: relative;
    z-index: 1;
}

.ticket-title {
    font-size: 1.4rem;
    margin: 0;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ticket-date {
    font-size: 0.9rem;
    margin-top: 8px;
    opacity: 0.9;
}

.ticket-status {
    /* Remove absolute positioning for flex layout */
    /* position: absolute;
    top: 20px;
    right: 20px; */
    text-align: right;
    z-index: 1;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.pending {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.status-badge.confirmed {
    background: #10b981;
    color: #fff;
}

.status-badge.cancelled {
    background: #ef4444;
    color: #fff;
}

.ticket-number {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
}

.ticket-details {
    padding: 25px;
    position: relative;
    background: #fff;
}

.ticket-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 4px,
        #e0e0e0 4px,
        #e0e0e0 8px
    );
}

.ticket-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-group label {
    color: #666;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-group label i {
    color: #EA232A;
    font-size: 1rem;
}

.info-group span {
    color: #1a1a1a;
    font-size: 0.95rem;
    font-weight: 500;
}

.info-group span.price {
    color: #EA232A;
    font-size: 1.1rem;
    font-weight: 600;
}

.ticket-actions {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.action-button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.print-button {
    background: #EA232A;
    color: white;
    box-shadow: 0 4px 12px rgba(234, 35, 42, 0.2);
}

.print-button:hover {
    background: #d41f25;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(234, 35, 42, 0.25);
}

/* Loading and Empty States */
.loading-state,
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.loading-state i {
    font-size: 3rem;
    color: #EA232A;
    margin-bottom: 20px;
}

.empty-state i {
    font-size: 4rem;
    color: #EA232A;
    margin-bottom: 20px;
    opacity: 0.8;
}

.empty-state h2 {
    color: #1a1a1a;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.empty-state p {
    color: #666;
    margin-bottom: 25px;
}

.empty-state .cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: #EA232A;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.empty-state .cta-button:hover {
    background: #EA232A;
    transform: translateY(-1px);
}

/* Hover Effects */
.ticket-card:hover {
    transform: translateY(-8px) rotateX(3deg);
    box-shadow: 0 12px 30px rgba(72, 52, 212, 0.15);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background: white;
    max-width: 600px;
    margin: 50px auto;
    border-radius: 16px;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tickets-container {
        grid-template-columns: 1fr;
    }

    .ticket-info {
        grid-template-columns: 1fr;
    }

    .ticket-card::before,
    .ticket-card::after {
        display: none;
    }

    .ticket-header {
        padding: 20px;
    }

    .ticket-details {
        padding: 20px;
    }
}
