/* ======================================================
   DARAJA 3.0 TESTER
   Modern Developer Dashboard
====================================================== */

:root{

    --bg:#f4f7fb;
    --bg2:#ffffff;

    --sidebar:#ffffff;

    --card:#ffffff;

    --text:#1b2430;
    --muted:#687385;

    --border:#d9e2ec;

    --primary:#00a651;
    --primary-dark:#008944;

    --blue:#1976d2;

    --danger:#e53935;

    --shadow:0 15px 40px rgba(0,0,0,.08);

    --radius:18px;

    --transition:.3s;

}

body.dark{

    --bg:#0f172a;
    --bg2:#111827;

    --sidebar:#111827;

    --card:#1e293b;

    --text:#f8fafc;
    --muted:#94a3b8;

    --border:#334155;

    --shadow:0 20px 50px rgba(0,0,0,.45);

}

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    background:var(--bg);

    color:var(--text);

    font-family:Inter,Segoe UI,Roboto,sans-serif;

    transition:.3s;

}

/* ==========================
LAYOUT
========================== */

.container{

    display:flex;

    min-height:100vh;

}

/* ==========================
SIDEBAR
========================== */

.sidebar{

    width:260px;

    background:var(--sidebar);

    border-right:1px solid var(--border);

    padding:30px 20px;

    position:fixed;

    left:0;

    top:0;

    bottom:0;

    overflow:auto;

    transition:.3s;

    box-shadow:var(--shadow);

}

.logo{

    margin-bottom:40px;

}

.logo h2{

    color:var(--primary);

    margin-bottom:5px;

}

.logo span{

    color:var(--muted);

    font-size:.9rem;

}

.sidebar ul{

    list-style:none;

}

.sidebar li{

    margin-bottom:12px;

}

.sidebar a{

    display:block;

    text-decoration:none;

    color:var(--text);

    padding:12px 16px;

    border-radius:12px;

    transition:.25s;

    font-weight:500;

}

.sidebar a:hover{

    background:var(--primary);

    color:white;

    transform:translateX(6px);

}

/* =======================
CONTENT
======================= */

.content{

    flex:1;

    margin-left:260px;

    padding:40px;

}

header{

    margin-bottom:35px;

}

header h1{

    font-size:2rem;

    margin-bottom:8px;

}

header p{

    color:var(--muted);

}

/* =======================
CARDS
======================= */

.card{

    background:var(--card);

    border-radius:var(--radius);

    padding:25px;

    margin-bottom:25px;

    box-shadow:var(--shadow);

    border:1px solid var(--border);

    transition:.3s;

}

.card:hover{

    transform:translateY(-4px);

}

.card h2{

    margin-bottom:20px;

}

/* =======================
GRID
======================= */

.grid{

    display:grid;

    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));

    gap:15px;

}

/* =======================
INPUTS
======================= */

input,
select,
textarea{

    width:100%;

    padding:14px;

    background:transparent;

    border:1px solid var(--border);

    color:var(--text);

    border-radius:12px;

    outline:none;

    transition:.3s;

    font-size:15px;

}

input:focus,
select:focus,
textarea:focus{

    border-color:var(--primary);

    box-shadow:0 0 0 4px rgba(0,166,81,.15);

}

/* =======================
BUTTONS
======================= */

button{

    margin-top:18px;

    padding:14px 24px;

    border:none;

    cursor:pointer;

    border-radius:12px;

    background:linear-gradient(135deg,#00a651,#0dd36e);

    color:white;

    font-size:15px;

    font-weight:600;

    transition:.25s;

}

button:hover{

    transform:translateY(-3px);

    box-shadow:0 12px 24px rgba(0,166,81,.3);

}

button:active{

    transform:scale(.98);

}

/* =======================
CODE BLOCK
======================= */

pre{

    background:#0b1220;

    color:#49ff87;

    padding:20px;

    border-radius:15px;

    overflow:auto;

    font-size:14px;

    line-height:1.5;

    min-height:180px;

}

/* =======================
SCROLLBAR
======================= */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-thumb{

    background:var(--primary);

    border-radius:20px;

}

::-webkit-scrollbar-track{

    background:transparent;

}

/* =======================
TOP BAR
======================= */

.top-actions{

    display:flex;

    justify-content:flex-end;

    margin-bottom:20px;

    gap:10px;

}

.theme-toggle{

    background:var(--blue);

}

.theme-toggle:hover{

    background:#135aa8;

}

/* =======================
BADGES
======================= */

.badge{

    display:inline-block;

    padding:5px 12px;

    border-radius:50px;

    background:rgba(0,166,81,.15);

    color:var(--primary);

    font-size:.8rem;

    font-weight:600;

}

/* =======================
ANIMATION
======================= */

.card{

    animation:fade .5s ease;

}

@keyframes fade{

    from{

        opacity:0;

        transform:translateY(20px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* =======================
MOBILE MENU
======================= */

.menu-toggle{

    display:none;

    position:fixed;

    top:20px;

    left:20px;

    z-index:999;

    background:var(--primary);

    color:white;

    border:none;

    width:48px;

    height:48px;

    border-radius:12px;

}

/* =======================
RESPONSIVE
======================= */

@media(max-width:900px){

    .sidebar{

        transform:translateX(-100%);

        z-index:998;

    }

    .sidebar.active{

        transform:translateX(0);

    }

    .content{

        margin-left:0;

        padding:90px 20px 30px;

    }

    .menu-toggle{

        display:block;

    }

}

@media(max-width:600px){

    .grid{

        grid-template-columns:1fr;

    }

    header h1{

        font-size:1.5rem;

    }

    .card{

        padding:18px;

    }

    button{

        width:100%;

    }

}

/* =======================
GLASS EFFECT
======================= */

.glass{

    backdrop-filter:blur(15px);

    background:rgba(255,255,255,.06);

}

/* =======================
STATUS COLORS
======================= */

.success{

    color:#00c853;

}

.error{

    color:#ff5252;

}

.warning{

    color:#ffb300;

}

.info{

    color:#42a5f5;

}

/* =======================
TABLES
======================= */

table{

    width:100%;

    border-collapse:collapse;

}

th,td{

    padding:14px;

    border-bottom:1px solid var(--border);

}

th{

    text-align:left;

    background:rgba(0,166,81,.08);

}

/* =======================
FOOTER
======================= */

footer{

    margin-top:40px;

    text-align:center;

    color:var(--muted);

    padding-bottom:30px;

}