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

:root{
    --bg:#020617;
    --panel:#0f172a;
    --panel2:#111827;
    --border:#1e293b;
    --blue:#3b82f6;
    --blue-dark:#2563eb;
    --text:#ffffff;
    --muted:#94a3b8;
}

body{
    font-family:Arial, sans-serif;
    background:var(--bg);
    color:var(--text);
}

/* Images */

img{
    display:block;
    max-width:100%;
    height:auto;
}

/* Links */

a{
    color:inherit;
    text-decoration:none;
}

/* Buttons */

.btn{
    display:inline-block;
    padding:14px 20px;
    border-radius:14px;
    text-decoration:none;
    font-weight:bold;
    background:var(--blue);
    color:white;
}

.btn:hover{
    background:var(--blue-dark);
}

/* Cards */

.card{
    background:var(--panel);
    border:1px solid var(--border);
    border-radius:22px;
    padding:28px;
}

/* Grids */

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

.form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
}

/* Forms */

input,
textarea,
select{
    width:100%;
    padding:14px;
    border-radius:12px;
    border:1px solid #334155;
    background:#020617;
    color:white;
    font-size:16px;
}

textarea{
    min-height:120px;
}

/* Tables */

table{
    width:100%;
    border-collapse:collapse;
}

th,
td{
    padding:15px;
    border-bottom:1px solid var(--border);
    text-align:left;
}

/* ==========================
   DASHBOARD LAYOUT
========================== */

.sidebar{
    position:fixed;
    top:0;
    left:0;
    width:260px;
    height:100vh;
    background:#0f172a;
    border-right:1px solid #1e293b;
    padding:30px 20px;
    overflow-y:auto;
}

.sidebar-logo{
    text-align:center;
    margin-bottom:40px;
}

.sidebar-logo img{
    width:180px;
    max-width:100%;
    background:white;
    padding:12px;
    border-radius:16px;
    margin:0 auto;
}

.sidebar a{
    display:block;
    color:#cbd5e1;
    text-decoration:none;
    padding:14px 16px;
    margin-bottom:8px;
    border-radius:10px;
    transition:0.2s;
}

.sidebar a:hover{
    background:#1e293b;
    color:white;
}

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

.topbar{
    margin-bottom:30px;
}

.topbar h1{
    font-size:38px;
    margin-bottom:10px;
}

.topbar p{
    color:var(--muted);
}

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

@media(max-width:800px){

    .sidebar{
        position:relative;
        width:100%;
        height:auto;
        border-right:none;
        border-bottom:1px solid #1e293b;
    }

    .main{
        margin-left:0;
        padding:24px;
    }

    .grid,
    .form-grid{
        grid-template-columns:1fr;
    }

    table{
        display:block;
        overflow-x:auto;
        white-space:nowrap;
    }

    .topbar h1{
        font-size:30px;
    }
  
}

.sidebar-logo a{
    display:block;
}

.sidebar-logo a img{
    width:180px !important;
    max-width:100% !important;
    height:auto !important;
    margin:0 auto !important;
}