/* =========================
   GLOBAL RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #0f172a;
    color: #e5e7eb;
    line-height: 1.6;
}
a{
    text-decoration:none;
}

img{
    max-width:100%;
    height:auto;
}

/* =========================
   CONTAINER
========================= */
.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    padding: 20px;
}


/*
|--------------------------------------------------------------------------
| DASHBOARD
|--------------------------------------------------------------------------
*/

.stats-card{
    border-radius:15px;
    background:#fff;
    padding:20px;
    box-shadow:0 3px 12px rgba(0,0,0,.08);
}

.stats-value{
    font-size:30px;
    font-weight:bold;
}

/*
|--------------------------------------------------------------------------
| HERO
|--------------------------------------------------------------------------
*/

.hero{
    padding:60px 20px;
    text-align:center;
    background:#ffffff;
}

.hero h1{
    font-size:42px;
    font-weight:bold;
}

.hero p{
    font-size:18px;
    color:#666;
}

/* =========================
   HEADER
========================= */
header {
    background: #111827;
    padding: 15px 20px;
    color: #fff;
}

header h1 {
    font-size: 20px;
}
.navbar{
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.logo{
    font-size:24px;
    font-weight:700;
}

/* =========================
   FORM STYLE
========================= */
form {
    background: #1f2937;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: none;
    border-radius: 6px;
    outline: none;
}

button {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #1d4ed8;
}

/* =========================
   CARD
========================= */
.card {
    background: #1f2937;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
}
.card:hover{
    transform:translateY(-3px);
    transition:.3s;
}

.card-body{
    padding:20px;
}

/*
|--------------------------------------------------------------------------
| PRODUCT
|--------------------------------------------------------------------------
*/

.product-card{
    height:100%;
}

.product-title{
    font-size:18px;
    font-weight:600;
}

.product-price{
    color:#198754;
    font-size:20px;
    font-weight:bold;
}

/*
|--------------------------------------------------------------------------
| TABLET
|--------------------------------------------------------------------------
*/

@media (min-width:769px) and (max-width:1024px){

    .hero h1{
        font-size:34px;
    }

    .product-title{
        font-size:16px;
    }

    .product-price{
        font-size:18px;
    }
}

/*
|--------------------------------------------------------------------------
| WINDOWS / DESKTOP
|--------------------------------------------------------------------------
*/

@media (min-width:1025px){

    .container{
        max-width:1280px;
    }

    .hero{
        padding:80px 30px;
    }

    .hero h1{
        font-size:52px;
    }

    .hero p{
        font-size:20px;
    }

    .desktop-grid{
        display:grid;
        grid-template-columns:
            repeat(4,1fr);
        gap:20px;
    }

    .sidebar{
        width:260px;
    }

    .content{
        width:calc(100% - 260px);
    }
}

/*
|--------------------------------------------------------------------------
| DARK MODE
|--------------------------------------------------------------------------
*/

.dark-mode{
    background:#0f172a;
    color:#fff;
}

.dark-mode .card{
    background:#1e293b;
    color:#fff;
}

.dark-mode .form-control{
    background:#334155;
    color:#fff;
    border:1px solid #475569;
}

.dark-mode footer{
    background:#020617;
}
/*
|--------------------------------------------------------------------------
| FORM
|--------------------------------------------------------------------------
*/

.form-control{
    border-radius:10px;
}

.form-control:focus{
    box-shadow:none;
}

/* =========================
   ALERT
========================= */
.alert {
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
}

.alert-danger {
    background: #7f1d1d;
    color: #fecaca;
}

.alert-success {
    background: #14532d;
    color: #bbf7d0;
}

/*
|--------------------------------------------------------------------------
| BUTTON
|--------------------------------------------------------------------------
*/

.btn{
    border-radius:10px;
}

.btn-primary{
    font-weight:600;
}

/* =========================
   TABLE
========================= */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: #1f2937;
}

table th, table td {
    padding: 10px;
    border-bottom: 1px solid #374151;
    text-align: left;
}

/* =========================
   FOOTER
========================= */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background: #0d6efd;
    color: #9ca3af;
}

footer a{
    color:#fff;
}

footer a:hover{
    opacity:.8;
}

/* =========================
   MOBILE RESPONSIVE
========================= */
@media (max-width: 768px) {

    header h1 {
        font-size: 16px;
        text-align: center;
    }

    .container {
        width: 95%;
        padding: 10px;
    }

    form {
        padding: 15px;
    }

    button {
        font-size: 14px;
    }

    table {
        font-size: 12px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .hero{
        padding:40px 15px;
    }

    .hero h1{
        font-size:28px;
    }

    .hero p{
        font-size:15px;
    }

    .navbar-brand{
        font-size:18px;
    }

    .card-body{
        padding:15px;
    }

    .product-title{
        font-size:15px;
    }

    .product-price{
        font-size:17px;
    }

    .btn{
        width:100%;
    }

    .stats-value{
        font-size:22px;
    }

    .mobile-hide{
        display:none;
    }

    .container{
        padding-left:12px;
        padding-right:12px;
    }
}