@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&family=Rajdhani:wght@600;700&display=swap');

:root {
    --bg: #0b0e14;
    --card-bg: #161b22;
    --accent: #fcc419;
    --cyan: #00d4ff;
    --danger: #ff4757;
    --success: #20C607;
    --text: #ffffff;
    --text-dim: #8b949e;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* --- NAVIGATION SYSTEM --- */
.header-bar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 65px;
    background: rgba(22, 27, 34, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    border-bottom: 1px solid #30363d;
}

.menu-trigger {
    background: #21262d;
    color: var(--accent);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 1.2rem;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: #0d1117;
    z-index: 1200;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 30px 20px;
    border-right: 1px solid #30363d;
}

.sidebar.active {
    left: 0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1100;
    display: none;
}

.overlay.active {
    display: block;
}

.sidebar .logo {
    font-family: 'Rajdhani';
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: var(--accent);
}

.nav-links {
    list-style: none;
}

.nav-links li {
    margin-bottom: 10px;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 12px;
    font-family: 'Rajdhani';
    font-weight: 600;
}

.nav-links a.active {
    background: rgba(252, 196, 25, 0.1);
    color: var(--accent);
}

/* --- DASHBOARD ELEMENTS --- */
.container {
    padding: 85px 20px 40px;
    max-width: 1200px;
    margin: auto;
}

.card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 25px;
    border: 1px solid #30363d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 20px;
}

/* Counter & Buttons */
.counter-box {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.count-val {
    font-size: 4rem;
    font-family: 'Rajdhani';
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.btn-group {
    display: flex;
    gap: 15px;
}

.btn {
    flex: 1;
    height: 55px;
    border-radius: 15px;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    font-weight: bold;
}

.btn-p {
    background: var(--accent);
    color: #000;
}

.btn-m {
    background: #30363d;
    color: #fff;
}

/* Progress Bar */
.p-bar-bg {
    background: #21262d;
    height: 10px;
    border-radius: 10px;
    margin-top: 20px;
    overflow: hidden;
}

.p-bar-fill {
    height: 100%;
    transition: 0.5s ease-out;
}

/* Form Elements */
.input-field {
    width: 100%;
    background: #0d1117;
    border: 1px solid #30363d;
    padding: 12px;
    border-radius: 12px;
    color: #fff;
    margin-bottom: 15px;
}

@media (min-width: 769px) {
    .menu-trigger {
        display: none;
    }
    
    .header-bar {
        padding: 0 50px;
    }
}