*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family:'Segoe UI',Arial,sans-serif;
    background:linear-gradient(135deg,#eef4ff,#f8fbff);
    color:#172033;
}

a{
    text-decoration:none;
}

.wrapper{
    width:1200px;
    max-width:94%;
    margin:auto;
}

.topbar{
    background:linear-gradient(135deg,#2563eb,#38bdf8);
    color:white;
    padding:28px 0;
    border-bottom-left-radius:28px;
    border-bottom-right-radius:28px;
    box-shadow:0 10px 35px rgba(37,99,235,.25);
}

.topbar h1{
    margin:0;
    font-size:28px;
}

.topbar p{
    margin:6px 0 0;
    opacity:.9;
}

.card{
    background:rgba(255,255,255,.92);
    backdrop-filter:blur(15px);
    border:1px solid rgba(255,255,255,.8);
    border-radius:22px;
    padding:24px;
    margin-top:24px;
    box-shadow:0 15px 40px rgba(15,23,42,.08);
}

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:20px;
}

.stat{
    position:relative;
    overflow:hidden;
}

.stat::after{
    content:"";
    position:absolute;
    right:-30px;
    top:-30px;
    width:100px;
    height:100px;
    background:linear-gradient(135deg,#60a5fa,#22d3ee);
    border-radius:50%;
    opacity:.18;
}

.stat-title{
    color:#64748b;
    font-size:15px;
    font-weight:600;
}

.stat-number{
    margin-top:10px;
    font-size:32px;
    font-weight:800;
    color:#0f172a;
}

.stat-money{
    margin-top:6px;
    color:#2563eb;
    font-weight:700;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    border:none;
    cursor:pointer;
    padding:13px 20px;
    border-radius:14px;
    font-weight:700;
    color:white;
    background:linear-gradient(135deg,#2563eb,#38bdf8);
    box-shadow:0 8px 20px rgba(37,99,235,.28);
    transition:.2s;
}

.btn:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 25px rgba(37,99,235,.35);
}

.btn-green{
    background:linear-gradient(135deg,#16a34a,#22c55e);
}

.btn-red{
    background:linear-gradient(135deg,#dc2626,#fb7185);
}

.btn-gray{
    background:linear-gradient(135deg,#475569,#64748b);
}

.actions{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.table-box{
    overflow-x:auto;
}

table{
    width:100%;
    border-collapse:collapse;
    background:white;
    border-radius:16px;
    overflow:hidden;
}

th{
    background:#f1f5f9;
    color:#334155;
    text-align:left;
    font-size:14px;
}

th,td{
    padding:15px;
    border-bottom:1px solid #e2e8f0;
}

tr:hover td{
    background:#f8fafc;
}

.badge{
    padding:7px 12px;
    border-radius:999px;
    font-size:13px;
    font-weight:700;
    display:inline-block;
}

.badge-success{
    background:#dcfce7;
    color:#15803d;
}

.badge-warning{
    background:#fef3c7;
    color:#b45309;
}

.badge-danger{
    background:#fee2e2;
    color:#b91c1c;
}

.form-box{
    max-width:460px;
    margin:60px auto;
}

.input,
select{
    width:100%;
    padding:14px 16px;
    border:1px solid #cbd5e1;
    border-radius:14px;
    font-size:15px;
    outline:none;
    margin-top:8px;
}

.input:focus,
select:focus{
    border-color:#2563eb;
    box-shadow:0 0 0 4px rgba(37,99,235,.12);
}

.label{
    font-weight:700;
    color:#334155;
    margin-top:15px;
    display:block;
}

.alert{
    padding:15px;
    border-radius:16px;
    margin-top:18px;
    font-weight:600;
}

.alert-red{
    background:#fee2e2;
    color:#991b1b;
}

.alert-blue{
    background:#dbeafe;
    color:#1e40af;
}

.bill-header{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:14px;
}

.info-box{
    background:#f8fafc;
    padding:15px;
    border-radius:16px;
    border:1px solid #e2e8f0;
}

.info-box span{
    display:block;
    color:#64748b;
    font-size:13px;
    margin-bottom:5px;
}

.info-box b{
    color:#0f172a;
}

.total-row td{
    font-weight:800;
    color:#0f172a;
    background:#f8fafc;
}

.pay-box{
    margin-top:24px;
    padding:22px;
    border-radius:20px;
    background:linear-gradient(135deg,#eff6ff,#ecfeff);
    border:1px solid #bfdbfe;
}

.footer{
    text-align:center;
    margin:40px 0 20px;
    color:#64748b;
    font-size:14px;
}

@media(max-width:600px){
    .topbar{
        padding:22px 0;
        border-radius:0 0 22px 22px;
    }

    .topbar h1{
        font-size:23px;
    }

    .card{
        padding:18px;
        border-radius:18px;
    }

    th,td{
        padding:12px;
        font-size:14px;
    }

    .btn{
        width:100%;
    }
}