
/* RESET */
body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f4f6f9;
}

/* LOGIN + SIGNUP PAGE */
.login-page {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 14px;
    width: 320px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.login-box h2 {
    margin-bottom: 25px;
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    outline: none;
}

.login-box input:focus {
    border-color: #2563eb;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-bottom: 10px;
}

.login-box button:hover {
    background: #1e40af;
}

.secondary {
    background: #e5e7eb !important;
    color: #111 !important;
}

/* SIDEBAR */
.sidebar {
    width: 230px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    background: #0f172a;
    color: white;
    padding: 25px 20px;
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 30px;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    padding: 14px;
    margin-bottom: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.sidebar ul li:hover {
    background: #1e293b;
}

/* MAIN AREA */
.main {
    margin-left: 250px;
    padding: 25px;
}

/* TOPBAR */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* DASHBOARD CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.card {
    background: white;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-4px);
}

.card h3 {
    margin: 0;
    font-size: 16px;
    color: #6b7280;
}

.card p {
    font-size: 26px;
    font-weight: bold;
    margin-top: 10px;
}

/* SECTIONS */
.section {
    margin-top: 35px;
}

.hidden {
    display: none;
}

/* INPUTS */
input {
    padding: 12px;
    margin: 10px 10px 10px 0;
    width: 220px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    outline: none;
}

input:focus {
    border-color: #2563eb;
}

/* BUTTON */
button {
    padding: 12px 22px;
    background: #2563eb;
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

button:hover {
    background: #1e40af;
}

/* LIST BOX */
ul {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* CHART */
canvas {
    margin-top: 40px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* DARK MODE */
.dark {
    background: #0b1120;
    color: white;
}

.dark .topbar,
.dark .card,
.dark ul,
.dark canvas {
    background: #111827;
    color: white;
}
