/* General Body Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    background-color: #f5f7fb;
    color: #333;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
}

header {
    background-color: rgb(255, 134, 74);
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-arrow {
    color: white;
    text-decoration: none;
    font-size: 24px;
    margin-right: 15px;
}

header h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.logout-icon {
    margin-left: auto;
    color: white;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

main {
    padding: 15px;
}

/* User Info Card */
.user-info-card {
    background-color: #fff;
    background-image: url('/img/background-half.5f74bfc81dce954247fa.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
    margin-bottom: 25px;
}

.welcome-text {
    font-size: 14px;
    color: #666;
}

.user-name {
    font-size: 28px;
    font-weight: bold;
    margin: 4px 0;
    color: rgb(255, 134, 74);
}

.user-id {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #888;
    font-family: monospace;
    margin-bottom: 12px;
}

.copy-icon {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 8px;
    padding: 0;
}

.copy-icon .material-symbols-outlined {
    font-size: 16px;
    color: #888;
}

.user-email {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

.user-email img {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

.account-settings {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.account-settings .material-symbols-outlined {
    font-size: 20px;
    margin-right: 10px;
    color: #888;
}

.account-settings .keyboard-arrow-right {
    margin-left: auto;
    color: #ccc;
}

/* Tabs */
.tabs {
    display: flex;
    background-color: #f0f0f0;
    border-radius: 25px;
    padding: 4px;
    margin: 0 0 16px;
}

.tab-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    border: none;
    background-color: transparent;
    border-radius: 21px;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
}

.tab-item.is-active {
    background-color: rgb(255, 134, 74);
    color: #fff;
    font-weight: 700;
}

.tab-item .material-symbols-outlined {
    font-size: 20px;
}

/* Orders Section */
.orders-section {
    margin-bottom: 25px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.section-header span {
    font-size: 14px;
    color: #666;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-item {
    display: flex;
    background-color: #fff;
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.event-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 15px;
}

.order-details {
    flex-grow: 1;
}

.event-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 8px;
}

.event-info {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: #555;
    margin-bottom: 4px;
}

.event-info .material-symbols-outlined {
    font-size: 14px;
    margin-right: 6px;
    color: #555;
    opacity: 0.6;
}

.order-price {
    font-size: 16px;
    font-weight: bold;
    color: rgb(255, 134, 74);
    margin-top: 8px;
}

.qr-code-btn {
    align-self: center;
    background-color: rgb(255, 134, 74);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.qr-code-btn .material-symbols-outlined {
    font-size: 28px;
    color: white;
}

.no-orders {
    color: #888;
    text-align: center;
    padding: 20px;
}

.no-orders img {
    width: 150px;
    margin-bottom: 16px;
}

/* Toast Notification */
#toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.toast {
    background-color: rgba(17, 17, 17, 0.9);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(5px);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Logout Modal */
.logout-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.logout-modal-container {
    background-color: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    padding: 16px;
    text-align: center;
}

.logout-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.logout-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: rgb(255, 134, 74);
    margin: 0;
}

.logout-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
}

.logout-modal-content {
    font-size: 16px;
    color: #333;
    margin-bottom: 24px;
}

.logout-modal-buttons {
    display: flex;
    justify-content: space-around;
}

.logout-modal-button {
    flex: 1;
    height: 50px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    border: 1px solid rgb(255, 134, 74);
    cursor: pointer;
    margin: 0 8px;
}

.logout-modal-button.cancel {
    background-color: #fff;
    color: rgb(255, 134, 74);
}

.logout-modal-button.confirm {
    background-color: rgb(255, 134, 74);
    color: #fff;
}

/* Skeleton Loader */
.skeleton {
    background-color: #e0e0e0;
    border-radius: 4px;
    animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
    0% { background-color: #e0e0e0; }
    50% { background-color: #f0f0f0; }
    100% { background-color: #e0e0e0; }
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

#user-info-card .skeleton-welcome { width: 40%; }
#user-info-card .skeleton-name { width: 60%; height: 1.5em; margin-bottom: 0.8em; }
#user-info-card .skeleton-email { width: 80%; }
#user-info-card .skeleton-settings { width: 50%; margin-top: 15px; }

.order-item-skeleton {
    display: flex;
    padding: 15px;
    background: #fff;
    border-radius: 12px;
}
.skeleton-image {
    width: 80px;
    height: 80px;
    margin-right: 15px;
    flex-shrink: 0;
}
.order-item-skeleton .order-details {
    flex-grow: 1;
}
.order-item-skeleton .skeleton-text {
    width: 90%;
}
.order-item-skeleton .skeleton-small {
    width: 60%;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 600ms linear;
    background-color: rgba(255, 255, 255, 0.3);
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}