/* =====================================================
   AVS Mobile Sales & Service Center
   Main Style Sheet
   Developer: AK Development
===================================================== */

:root{
    --primary:#0f172a;
    --secondary:#1e293b;
    --accent:#2563eb;
    --success:#16a34a;
    --danger:#dc2626;
    --warning:#f59e0b;
    --white:#ffffff;
    --light:#f8fafc;
    --border:#e2e8f0;
    --text:#334155;
    --shadow:0 10px 25px rgba(0,0,0,0.08);
    --radius:14px;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Segoe UI',sans-serif;
    background:#f1f5f9;
    color:var(--text);
    line-height:1.6;
}

/* ================= HEADER ================= */

.header{
    background:linear-gradient(135deg,#0f172a,#1e293b);
    color:#fff;
    padding:15px 25px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-shadow:var(--shadow);
}

.logo{
    display:flex;
    align-items:center;
    gap:12px;
}

.logo img{
    width:50px;
    height:50px;
    object-fit:contain;
}

.logo h2{
    font-size:20px;
    font-weight:700;
}

/* ================= SIDEBAR ================= */

.sidebar{
    width:260px;
    background:#fff;
    position:fixed;
    top:0;
    left:0;
    height:100vh;
    border-right:1px solid var(--border);
    padding-top:80px;
    overflow-y:auto;
}

.sidebar ul{
    list-style:none;
}

.sidebar ul li{
    margin:5px 10px;
}

.sidebar ul li a{
    display:block;
    padding:12px 15px;
    text-decoration:none;
    color:#334155;
    border-radius:10px;
    transition:.3s;
    font-weight:500;
}

.sidebar ul li a:hover{
    background:var(--accent);
    color:#fff;
}

/* ================= CONTENT ================= */

.main-content{
    margin-left:260px;
    padding:25px;
}

/* ================= CARD ================= */

.card{
    background:#fff;
    border-radius:var(--radius);
    padding:20px;
    margin-bottom:20px;
    box-shadow:var(--shadow);
}

.card-title{
    font-size:18px;
    font-weight:700;
    margin-bottom:15px;
}

/* ================= DASHBOARD BOX ================= */

.stats-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
}

.stat-box{
    background:#fff;
    border-radius:var(--radius);
    padding:25px;
    box-shadow:var(--shadow);
}

.stat-title{
    font-size:14px;
    color:#64748b;
}

.stat-value{
    font-size:28px;
    font-weight:700;
    margin-top:8px;
}

/* ================= FORM ================= */

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

label{
    display:block;
    margin-bottom:6px;
    font-weight:600;
}

.form-control{
    width:100%;
    padding:12px;
    border:1px solid var(--border);
    border-radius:10px;
    outline:none;
    transition:.3s;
}

.form-control:focus{
    border-color:var(--accent);
}

/* ================= BUTTON ================= */

.btn{
    display:inline-block;
    padding:12px 18px;
    border:none;
    border-radius:10px;
    cursor:pointer;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

.btn-primary{
    background:var(--accent);
    color:#fff;
}

.btn-success{
    background:var(--success);
    color:#fff;
}

.btn-danger{
    background:var(--danger);
    color:#fff;
}

.btn-warning{
    background:var(--warning);
    color:#fff;
}

.btn:hover{
    opacity:.9;
    transform:translateY(-2px);
}

/* ================= TABLE ================= */

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

.table th,
.table td{
    padding:12px;
    border:1px solid var(--border);
    text-align:left;
}

.table th{
    background:#0f172a;
    color:#fff;
}

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

/* ================= LOGIN ================= */

.login-container{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
}

.login-box{
    width:100%;
    max-width:420px;
    background:#fff;
    padding:30px;
    border-radius:var(--radius);
    box-shadow:var(--shadow);
}

.login-title{
    text-align:center;
    margin-bottom:25px;
    font-size:24px;
    font-weight:700;
}

/* ================= INVOICE ================= */

.invoice{
    background:#fff;
    padding:30px;
    border-radius:var(--radius);
}

.invoice-header{
    display:flex;
    justify-content:space-between;
    margin-bottom:25px;
}

.invoice-total{
    text-align:right;
    font-size:22px;
    font-weight:700;
    color:var(--success);
}

/* ================= FOOTER ================= */

.footer{
    margin-top:20px;
    text-align:center;
    color:#64748b;
    font-size:13px;
}

/* ================= MOBILE ================= */

@media(max-width:768px){

    .sidebar{
        width:100%;
        height:auto;
        position:relative;
        padding-top:10px;
    }

    .main-content{
        margin-left:0;
    }

    .header{
        flex-direction:column;
        gap:10px;
    }

    .invoice-header{
        flex-direction:column;
        gap:15px;
    }
}