html{
    box-sizing:border-box;
}

*,
*::before,
*::after{
    box-sizing:inherit;
    margin:0;
    padding:0;
}

html,body{
    height:100%;
}

body{

    display:flex;

    flex-direction:column;

    font-family:Georgia, serif;

    background-color:#f6f1e7;

    background-image:
        linear-gradient(
            rgba(246,241,231,0.95),
            rgba(246,241,231,0.95)
        ),
        url('./bg-pattern.png');

    background-repeat:repeat;

    background-size:450px;

    background-attachment:fixed;

    color:#2d1b12;

    line-height:1.7;
}

/* MAIN AREA */

.main-content{
    flex:1;
}

/* CONTAINER */

.container{
    width:95%;
    max-width:1000px;
    margin:auto;
    padding:20px;
}

/* HEADER */

.site-header{
    text-align:center;
    padding:25px 20px 10px;
}

.site-header img{
    width:130px;
    height:auto;
    display:block;
    margin:auto;
}

.site-title{
    font-size:34px;
    color:#5a0f1c;
    margin-top:15px;
    font-weight:bold;
}

.site-subtitle{
    color:#7b5b45;
    margin-top:8px;
    font-size:16px;
}

/* PAGE TITLE */

.page-title{
    text-align:center;
    margin:25px 0;
    color:#4a0d66;
    font-size:32px;
}

/* CARD */

.card{

    background:
        rgba(255,253,249,0.92);

    backdrop-filter:blur(3px);

    border-radius:16px;

    padding:25px;

    margin-bottom:25px;

    border:1px solid #e7d7bd;

    box-shadow:
        0 4px 18px rgba(0,0,0,0.08);
}

/* BUTTONS */

.btn{
    display:inline-block;

    background:#5a0f1c;

    color:white;

    text-decoration:none;

    padding:12px 20px;

    border-radius:10px;

    transition:0.3s;
}

.btn:hover{
    background:#7a1728;
}

/* BACK BUTTON */

.back-btn{
    margin-bottom:20px;
}

/* FORM */

input,
textarea,
select{
    width:100%;

    padding:12px;

    margin-top:8px;

    margin-bottom:18px;

    border-radius:10px;

    border:1px solid #ccb89f;
}

label{
    font-weight:bold;
}

/* TABLE */

.table-wrap{
    overflow-x:auto;
}

.table{
    width:100%;
    border-collapse:collapse;
    background:white;
}

.table th{
    background:#5a0f1c;
    color:white;
}

.table th,
.table td{
    padding:12px;
    border:1px solid #ddd;
}

/* FOOTER */

.site-footer{
    background:#2a0c12;

    color:#f3e2bf;

    text-align:center;

    padding:18px;

    border-top:4px solid #8b6a3d;
}

/* MOBILE */

@media(max-width:768px){

    .site-title{
        font-size:26px;
    }

    .page-title{
        font-size:24px;
    }

    .card{
        padding:18px;
    }

    .btn{
        width:100%;
        text-align:center;
        margin-bottom:10px;
    }
}
/* =========================
   TICKET DESIGN
========================= */

.ticket-card{

    background:#fffdf8;

    border:3px solid #c6a76b;

    border-radius:24px;

    overflow:hidden;

    max-width:850px;

    margin:20px auto;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.12);
}

.ticket-top{

    background:
        linear-gradient(
            135deg,
            #5a0f1c,
            #7a1728
        );

    color:white;

    text-align:center;

    padding:30px 20px;
}

.ticket-event{
    font-size:34px;
    margin-top:15px;
}

.ticket-sub{
    opacity:0.9;
    margin-top:10px;
}

.ticket-badge{

    display:inline-block;

    background:#d4af37;

    color:#2a0c12;

    padding:8px 18px;

    border-radius:30px;

    font-weight:bold;

    font-size:14px;
}

.ticket-body{

    display:flex;

    gap:30px;

    justify-content:space-between;

    align-items:center;

    padding:30px;

    flex-wrap:wrap;
}

.ticket-info{
    flex:1;
    min-width:250px;
}

.ticket-info p{
    margin-bottom:18px;
}

.ticket-qr{
    text-align:center;
}

.ticket-qr img{

    width:260px;

    max-width:100%;

    border:8px solid #f2eadf;

    border-radius:18px;
}

.ticket-status{
    margin-top:18px;
}

.valid-status{

    background:#0f7a36;

    color:white;

    padding:10px 18px;

    border-radius:30px;

    font-weight:bold;
}

.used-status{

    background:#a31212;

    color:white;

    padding:10px 18px;

    border-radius:30px;

    font-weight:bold;
}

.ticket-footer{

    background:#f7efe2;

    padding:18px;

    text-align:center;

    font-size:14px;

    border-top:1px dashed #c6a76b;
}

/* PRINT */

@media print{

    .btn,
    .site-header,
    .site-footer{
        display:none;
    }

    body{
        background:white;
    }

    .ticket-card{
        box-shadow:none;
        border:2px solid #000;
    }
}

/* MOBILE */

@media(max-width:768px){

    .ticket-event{
        font-size:26px;
    }

    .ticket-body{
        flex-direction:column;
        text-align:center;
    }

    .ticket-info{
        text-align:center;
    }
}
/* =========================
   ADMIN ACTION BUTTONS
========================= */

.action-buttons{

    display:flex;

    flex-wrap:wrap;

    gap:10px;

    justify-content:center;
}

.action-buttons .btn{

    min-width:90px;

    text-align:center;
}

/* =========================
   TABLE IMPROVEMENTS
========================= */

.table{

    border-radius:14px;

    overflow:hidden;
}

.table td{

    vertical-align:middle;
}

.table tr:nth-child(even){

    background:#faf6ef;
}

.table tr:hover{

    background:#f3eadb;
}

/* =========================
   MOBILE TABLE
========================= */

@media(max-width:768px){

    .table{

        font-size:14px;
    }

    .table th,
    .table td{

        padding:10px;
    }

    .action-buttons{

        flex-direction:column;
    }

    .action-buttons .btn{

        width:100%;
    }
}