body{
    margin:0;
    font-family:Arial, sans-serif;
    background:linear-gradient(135deg,#eef5ff,#f8fbff);
    overflow-x:hidden;
}

.content{
    margin-left:230px;
    padding:20px;
    box-sizing:border-box;
}

.content h2{
    margin:0 0 18px;
    color:#111;
}

.cards{
    display:flex;
    flex-wrap:wrap;
    gap:20px;
    margin-bottom:25px;
}


.card{
    flex:1;
    min-width:200px;
    background:#fff;
    border-radius:10px;
    padding:20px;
    box-shadow:0 2px 10px rgba(0,0,0,.1);
    text-align:center;
}

.card h3{
    margin:0;
    color:#555;
}

.card h1{
    margin-top:15px;
    color:#2196F3;
}

.table-wrap{
    width:100%;
    max-width:100%;
    overflow:auto;
    -webkit-overflow-scrolling:touch;
    border-radius:10px;
    box-shadow:0 2px 10px rgba(0,0,0,.1);
    background:#fff;
}

table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
}

table th{
    background:#2196F3;
    color:white;
    padding:10px;
    text-align:left;
    white-space:nowrap;
}

table td{
    padding:10px;
    border-bottom:1px solid #eee;
    vertical-align:middle;
    white-space:nowrap;
}

table tr:nth-child(even){
    background:#f9f9f9;
}

table tr:hover{
    background:#eaf4ff;
}

.btn{
    padding:10px 16px;
    color:white;
    text-decoration:none;
    border:none;
    border-radius:5px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    line-height:1;
    white-space:nowrap;
    box-sizing:border-box;
}

.edit{
    background:#ff9800;
}

.delete{
    background:#f44336;
}

.green{
    background:#4CAF50;
}

/* Search forms on list pages */
.search-box{
    display:flex;
    align-items:center;
    gap:8px;
    margin:16px 0 20px;
    flex-wrap:nowrap;
}

.search-box input[type="text"]{
    flex:1 1 auto;
    min-width:0;
    width:auto !important;
    max-width:none !important;
    padding:10px;
    border:1px solid #ccc;
    border-radius:5px;
    font-size:15px;
    box-sizing:border-box;
}

.search-btn,
.reset-btn,
.search-box input[type="submit"],
.search-box a.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    height:40px;
    padding:0 14px;
    line-height:1;
    box-sizing:border-box;
    white-space:nowrap;
    text-decoration:none;
    border:none;
    border-radius:5px;
    cursor:pointer;
}

.search-btn{
    background:#f39c12;
    color:white;
}

.search-btn:hover{
    background:#e67e22;
}

.reset-btn{
    background:#e74c3c;
    color:white;
}

.reset-btn:hover{
    background:#c0392b;
}

.add{
    background:#f39c12;
    color:white;
}

.add:hover{
    background:#e67e22;
}

/* ---------- Form Design ---------- */

.form-container{
    max-width:450px;
    margin:60px auto;
    background:#fff;
    padding:30px;
    border-radius:10px;
    box-shadow:0 2px 10px rgba(0,0,0,.1);
    width:min(90%, 450px);
    box-sizing:border-box;
}

.form-container h2{
    text-align:center;
    margin-bottom:25px;
}

.form-group{
    margin-bottom:18px;
}

.form-group label{
    display:block;
    margin-bottom:8px;
    font-weight:bold;
}

.form-group input,
.form-group select{
    width:100%;
    padding:10px;
    border:1px solid #ccc;
    border-radius:5px;
    box-sizing:border-box;
}

.form-btn{
    width:100%;
    padding:12px;
    background:#2196F3;
    color:white;
    border:none;
    border-radius:5px;
    cursor:pointer;
    font-size:16px;
}

.form-btn:hover{
    background:#1976d2;
}

.back-link{
    display:block;
    margin-top:20px;
    text-align:center;
    text-decoration:none;
    color:#2563eb;
}

/* ===== Demo Transaction Summary ===== */

.demo-summary{
    display:flex;
    gap:12px;
    overflow-x:auto;
    padding-bottom:8px;
    margin:15px 0;
    scrollbar-width:none;
}

.demo-summary::-webkit-scrollbar{
    display:none;
}

.demo-box{
    flex:0 0 180px;
    padding:15px;
    border-radius:12px;
    text-align:center;
    color:#fff;
    box-shadow:0 4px 12px rgba(0,0,0,.12);
}

.demo-box h4{
    margin:0;
    font-size:15px;
}

.demo-box h2{
    margin:10px 0 0;
    font-size:28px;
}

.total-box{
    background:#16a34a;
}

.commission-box{
    background:#2563eb;
}

.balance-green{
    background:#16a34a;
}

.balance-red{
    background:#dc2626;
}

/* Pagination */

.pagination{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:6px;
    margin:18px 0;
}

.pagination a{
    display:flex;
    align-items:center;
    justify-content:center;
    min-width:38px;
    height:38px;
    padding:0 12px;
    text-decoration:none;
    border-radius:6px;
    background:#fff;
    color:#333;
    font-size:14px;
    font-weight:600;
    box-shadow:0 2px 6px rgba(0,0,0,.12);
    transition:.3s;
}

.pagination a:hover,
.pagination a.active{
    background:#2196F3;
    color:#fff;
}

@media(max-width:768px){

    .content{
        margin-left:0;
        margin-top:52px;
        padding:12px;

    }

    .content h2{
        text-align:center;
        margin:10px 0 16px;
    }

    .content hr{
        margin:12px 0 16px;
    }

    .search-box{
    gap:6px;
    margin:8px 0 6px;
}

    .search-box input[type="text"]{
        font-size:15px;
    }

    .search-btn,
    .reset-btn,
    .search-box input[type="submit"],
    .search-box a.btn{
        height:38px;
        padding:0 12px;
        font-size:14px;
    }

    .btn{
        padding:8px 12px;
        margin:2px;
    }

    .table-wrap{
        max-height:calc(100vh - 250px);
    }

    table th,
    table td{
        padding:8px;
    }

    .form-container{
        margin:0px auto;
        width:min(92%, 450px);
        padding:20px;
    }

.login-page{
    min-height:100svh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:20px;
    box-sizing:border-box;
    background:linear-gradient(135deg,#eef5ff,#f8fbff);
}

.login-page .form-container{
    width:min(92%,450px);
    margin:0;
    padding:35px;
    background:#fff;
    border-radius:22px;
    box-shadow:0 15px 40px rgba(0,0,0,.12);
    border:1px solid #ececec;
    box-sizing:border-box;
}

.form-group input{
    height:55px;
    border:2px solid #e8e8e8;
    border-radius:12px;
    font-size:17px;
    transition:.3s;
}

.form-group input:focus{
    border-color:#2196F3;
    box-shadow:0 0 0 4px rgba(33,150,243,.12);
    outline:none;
}

.form-container{
    position:relative;
    overflow:hidden;
}


.form-btn{
    height:56px;
    border:none;
    border-radius:12px;
    font-size:18px;
    font-weight:bold;
    background:linear-gradient(135deg,#2196F3,#1565C0);
    transition:.3s;
}

.form-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 8px 18px rgba(33,150,243,.35);
}

.cards{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px

}

.card{
    min-width:0;
    padding:15px;
    border-radius:14px;
}

.card h3{
    font-size:16px;
}

.card h1{
    font-size:30px;
    margin-top:10px;
}

/* ================= DEMO DASHBOARD ================= */

.demo-full-cards{
    display:flex;
    flex-direction:column;
    gap:20px;
    margin-top:20px;
}

.demo-full-cards .card{
    width:100%;
    flex:none;
}

/* ===== Mobile Demo Transaction Cards ===== */

.demo-summary{
    display:flex;
    flex-direction:row;
    gap:8px;
    overflow-x:auto;
    padding-bottom:6px;
}

.demo-box{
    flex:0 0 120px;
    padding:7px;
    border-radius:10px;
}

.demo-box h4{
    font-size:12px;
    margin:0;
}

.demo-box h2{
    font-size:18px;
    margin-top:6px;
}

 .pagination{
        gap:4px;
        margin:15px 0;
    }

    .pagination a{
        min-width:34px;
        height:34px;
        padding:0 10px;
        font-size:13px;
    }


}
