/* src/assets/styles.css */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: system-ui, Arial, sans-serif;
    margin: 0;
}

main {
    margin: 16px;
}

header h1 {
    margin: 0
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
    gap: 6px;
    margin-top: 12px;
}

.legend {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 16px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.legend-box {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid #ccc;
    display: inline-block;
}

.legend-box.sold { background: #ffecec; border-color: #ffbdbd; }
.legend-box.available { background: #e8fff0; border-color: #bfecc8; }

.ticket {
    padding: 7px;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #ddd;
    font-size: 12px;
}

.ticket .num {
    display: block;
    font-weight: 700;
    font-size: 14px;
}

.ticket.sold {
    background: #ffecec;
    border-color: #ffbdbd;
    color: #7a0b0b;
}

.ticket.available {
    background: #e8fff0;
    border-color: #bfecc8;
    color: #0b5f2f;
}

/* Mobile: compact layout */
@media (max-width: 480px) {
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
        gap: 6px;
        margin-top: 8px;
    }
    .ticket {
        padding: 8px;
        border-radius: 3px;
    }
    .ticket .num {
        font-size: 12px;
    }
    .legend { font-size: 12px; gap: 6px; }
    .legend-box { width: 12px; height: 12px; border-radius: 3px; }
}

.flash {
    background: #fffae6;
    padding: 8px;
    border: 1px solid #ffd58a;
    margin-bottom: 12px
}

table {
    width: 100%;
    border-collapse: collapse
}

table th,
table td {
    padding: 6px;
    border: 1px solid #eee;
    text-align: left
}

button {
    padding: 6px 8px;
    border-radius: 6px
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.whatsapp-btn:hover { background: #20b858; }
.whatsapp-icon { width: 18px; height: 18px; filter: invert(1); }
 .whatsapp-icon { flex: 0 0 18px; }

@media (max-width: 480px) {
    .whatsapp-btn { display:block; width:100%; text-align:center; }
}

/* Modal styles for Edit Profile */
.btn {
        appearance: none;
        border: none;
        background: #1976d2;
        color: #fff;
        padding: 8px 12px;
        border-radius: 6px;
        cursor: pointer;
}

.modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 1200; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.modal-content { position: relative; background: #fff; padding: 18px; border-radius: 10px; width: 100%; max-width: 520px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); z-index: 2; }
.modal-close { position: absolute; top: 8px; right: 10px; background: transparent; border: none; font-size: 20px; cursor: pointer; }

@media (max-width: 480px) {
    .modal-content { padding: 12px; border-radius: 8px; margin: 0 12px; }
    .modal-close { top:6px; right:8px; }
}