*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    background:#f5f7fb;
    color:#222;
    line-height:1.6;
}

a{
    text-decoration:none;
    color:inherit;
}

img{
    max-width:100%;
    display:block;
}

.container{
    width:94%;
    max-width:1200px;
    margin:auto;
}

/* HEADER */

.site-header{
    background:#ffffff;
    border-bottom:1px solid #e5e7eb;
    padding:15px 0;
}

.header-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}

.logo{
    font-size:24px;
    font-weight:800;
    color:#0d6efd;
}

.nav{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

/* BUTTONS */

.btn{
    display:inline-block;
    border:none;
    background:#0d6efd;
    color:#fff;
    padding:10px 18px;
    border-radius:7px;
    cursor:pointer;
    font-size:14px;
    transition:.2s;
}

.btn:hover{
    opacity:.9;
    transform:translateY(-1px);
}

.btn-success{
    background:#198754;
}

.btn-danger{
    background:#dc3545;
}

.btn-warning{
    background:#ffc107;
    color:#222;
}

.btn-secondary{
    background:#6c757d;
}

.btn-info{
    background:#0dcaf0;
    color:#fff;
}

/* CARD */

.card{
    background:#fff;
    padding:22px;
    border-radius:12px;
    box-shadow:0 2px 12px rgba(0,0,0,.08);
    margin-bottom:20px;
}

/* FORMS */

.form-group{
    margin-bottom:16px;
}

label{
    display:block;
    font-weight:600;
    margin-bottom:6px;
}

input,
select,
textarea{
    width:100%;
    padding:12px;
    border:1px solid #d5d9df;
    border-radius:7px;
    outline:none;
    font-size:15px;
    background:#fff;
}

input:focus,
select:focus,
textarea:focus{
    border-color:#0d6efd;
    box-shadow:0 0 0 3px rgba(13,110,253,.10);
}

textarea{
    min-height:110px;
    resize:vertical;
}

/* AUTH */

.auth-container{
    min-height:80vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:40px 0;
}
.auth-page{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:30px 15px;
    background:#f5f7fb;
}

.auth-card{
    width:100%;
    max-width:480px;
    background:#fff;
    padding:30px;
    border-radius:14px;
    box-shadow:0 5px 25px rgba(0,0,0,.08);
}

.auth-header{
    margin-bottom:25px;
}

.auth-header h1{
    margin-bottom:5px;
    font-size:28px;
}

.auth-header p{
    color:#777;
    font-size:15px;
}

.form-message{
    padding:12px 15px;
    border-radius:7px;
    margin-bottom:18px;
}

.form-message.success{
    background:#d1e7dd;
    color:#0f5132;
}

.form-message.error{
    background:#f8d7da;
    color:#842029;
}

.form-group{
    margin-bottom:16px;
}

.form-group label{
    display:block;
    font-weight:600;
    margin-bottom:6px;
}

.form-group label span{
    color:#777;
    font-weight:400;
    font-size:13px;
}

.form-group input,
.form-group textarea,
.form-group select{
    width:100%;
    padding:12px;
    border:1px solid #d5d9df;
    border-radius:7px;
    outline:none;
    font-size:15px;
    background:#fff;
}

.form-group textarea{
    min-height:110px;
    resize:vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus{
    border-color:#0d6efd;
    box-shadow:0 0 0 3px rgba(13,110,253,.10);
}

.auth-button{
    width:100%;
    margin-top:5px;
    font-size:16px;
    padding:12px 18px;
}

.auth-footer{
    text-align:center;
    margin-top:22px;
    padding-top:18px;
    border-top:1px solid #eee;
}

.auth-footer p{
    margin-bottom:5px;
    color:#666;
}

.auth-footer a{
    color:#0d6efd;
    font-weight:600;
}

.forgot-password{
    text-align:right;
    margin-top:-7px;
    margin-bottom:18px;
}

.forgot-password a{
    color:#0d6efd;
    font-size:14px;
}
.auth-card{
    width:100%;
    max-width:480px;
    background:#fff;
    padding:30px;
    border-radius:14px;
    box-shadow:0 5px 25px rgba(0,0,0,.08);
}

.auth-card h1,
.auth-card h2{
    margin-bottom:8px;
}

.auth-subtitle{
    color:#777;
    margin-bottom:25px;
}

.auth-links{
    margin-top:18px;
    text-align:center;
}

.auth-links a{
    color:#0d6efd;
    font-weight:600;
}

/* ALERT */

.alert{
    padding:12px 15px;
    border-radius:7px;
    margin-bottom:15px;
}

.alert-success{
    background:#d1e7dd;
    color:#0f5132;
}

.alert-danger{
    background:#f8d7da;
    color:#842029;
}

.alert-warning{
    background:#fff3cd;
    color:#664d03;
}

.alert-info{
    background:#cff4fc;
    color:#055160;
}

/* TABLE */

.table-wrapper{
    width:100%;
    overflow-x:auto;
}

table{
    width:100%;
    border-collapse:collapse;
    background:#fff;
}

table th{
    background:#0d6efd;
    color:#fff;
    padding:12px;
    text-align:left;
    white-space:nowrap;
}

table td{
    padding:11px;
    border:1px solid #e1e1e1;
    vertical-align:middle;
}

/* GRID */

.grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.stats-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
    gap:20px;
    margin:20px 0;
}

.stat-card{
    background:#fff;
    padding:22px;
    border-radius:12px;
    box-shadow:0 2px 12px rgba(0,0,0,.08);
}

.stat-card h3{
    font-size:15px;
    color:#666;
}

.stat-card h2{
    margin-top:5px;
    color:#0d6efd;
}

/* STATUS */

.status{
    display:inline-block;
    padding:5px 10px;
    border-radius:5px;
    font-size:12px;
    font-weight:600;
}

.status-active{
    background:#d1e7dd;
    color:#0f5132;
}

.status-inactive{
    background:#f8d7da;
    color:#842029;
}

.status-pending{
    background:#fff3cd;
    color:#664d03;
}

.status-completed{
    background:#d1e7dd;
    color:#0f5132;
}

/* PRODUCT */

.product-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(180px,1fr));
    gap:18px;
}

.product-card{
    background:#fff;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 2px 10px rgba(0,0,0,.07);
}

.product-card img{
    width:100%;
    height:180px;
    object-fit:cover;
}

.product-info{
    padding:14px;
}

/* FOOTER */

.site-footer{
    background:#111827;
    color:#fff;
    margin-top:50px;
    padding:30px 0;
}

/* MOBILE */

@media(max-width:768px){

    .header-inner{
        flex-direction:column;
        align-items:flex-start;
    }

    .nav{
        width:100%;
    }

    .nav .btn{
        flex:1;
        text-align:center;
    }

    .auth-card{
        padding:22px;
    }

    table{
        font-size:13px;
    }

    table th,
    table td{
        padding:8px;
    }

}

@media(max-width:480px){

    .container{
        width:92%;
    }

    .btn{
        padding:9px 13px;
        font-size:13px;
    }

    .product-grid{
        grid-template-columns:repeat(2,1fr);
        gap:10px;
    }

    .product-card img{
        height:140px;
    }

}