.ticket-page-wrapper {
    width: 1139px;
    margin: 0 auto;
    margin-top: 6px;
}

/* Ticket List Page Styles */
.ticket-page-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    padding-bottom: 60px;
}

.ticket-header {
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
    text-align: center;
}

.ticket-header h1 {
    margin: 0;
    font-size: 32px;
    font-weight: 600;
    color: #000;
}

.ticket-subtitle {
    font-size: 16px;
    margin-top: 10px;
    opacity: 0.9;
    color: #000;
}

.ticket-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.total-tickets {
    font-size: 14px;
    color: #666;
}

.search-tickets {
    position: relative;
    width: 250px;
}

.search-tickets input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-tickets button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
}

.ticket-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.ticket-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ticket-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.ticket-image {
    height: 180px;
    overflow: hidden;
    background-color: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticket-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    color: #aaa;
}

.ticket-content {
    padding: 20px;
}

.event-name {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.event-details {
    margin-bottom: 20px;
}

.event-detail {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.event-detail svg {
    margin-right: 8px;
    flex-shrink: 0;
}

.ticket-actions {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.view-ticket-details,
.download-ticket {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.view-ticket-details {
    color: #1a73e8;
    background-color: rgba(26, 115, 232, 0.1);
}

.download-ticket {
    color: #34a853;
    background-color: rgba(52, 168, 83, 0.1);
}

.download-ticket svg {
    margin-right: 5px;
}

.empty-tickets {
    text-align: center;
    padding: 60px 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.empty-tickets p {
    font-size: 18px;
    color: #666;
}

.login-required {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.login-message {
    text-align: center;
    background-color: white;
    border-radius: 8px;
    padding: 40px;
    max-width: 500px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-message svg {
    color: #1a73e8;
    margin-bottom: 20px;
}

.login-message h2 {
    margin-top: 0;
    font-size: 24px;
    color: #333;
}

.login-message p {
    margin-bottom: 30px;
    color: #666;
}

.login-button {
    display: inline-block;
    background-color: #1a73e8;
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}

.login-button:hover {
    background-color: #1557b0;
}

.error-message {
    text-align: center;
    padding: 30px;
    background-color: #feecec;
    border-left: 4px solid #f44336;
    margin: 30px 0;
    color: #333;
    border-radius: 4px;
}

/* Responsive styles */
@media (max-width: 767px) {
    .ticket-filter {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-right {
        margin-top: 15px;
        width: 100%;
    }

    .search-tickets {
        width: 100%;
    }

    .ticket-list {
        grid-template-columns: 1fr;
    }
}

.popup_qr_code {
    position: fixed;
    background: #00000047;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup_qr_code_content {
    background: #fff;
    width: 450px;
    height: 450px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
}

.popup_close_btn {
    position: absolute;
    top: 10px;
    right: 21px;
}

@media (max-width: 600px) {
    .ticket-page-wrapper {
        width: 100%;
        padding: 15px;
    }
}