/* =========================
   GLOBAL RESET & BASE
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 14px;
}

a {
    text-decoration: none;
    color: #2563eb;
}

a:hover {
    text-decoration: underline;
}

/* =========================
   LAYOUT
========================= */
.wrapper {
    display: flex;
    min-height: calc(100vh - 60px);
}

.content {
    flex: 1;
    padding: 30px;
    background: transparent;
}

/* =========================
   TOPBAR
========================= */
.topbar {
    height: 60px;
    background: #0f172a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.topbar .logo {
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.4px;
}

.topbar a {
    color: #38bdf8;
    margin-left: 15px;
    font-size: 14px;
}

.topbar a:hover {
    color: #ffffff;
}

/* =========================
   SIDEBAR
========================= */
.sidebar {
    width: 220px;
    background: #020617;
    padding: 20px 0;
    border-right: 1px solid rgba(255,255,255,0.08);
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li a {
    display: block;
    padding: 12px 22px;
    color: #e5e7eb;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar ul li a:hover {
    background: rgba(56,189,248,0.12);
    color: #38bdf8;
    border-left: 3px solid #38bdf8;
}

/* =========================
   HEADINGS
========================= */
h1, h2, h3 {
    margin-bottom: 14px;
    color: #020617;
}

h1 {
    font-size: 28px;
    font-weight: 700;
}

h2 {
    font-size: 22px;
}

h3 {
    font-size: 16px;
}

/* =========================
   CARDS
========================= */
.card {
    background: #ffffff;
    border-radius: 14px;
    padding: 24px;
    border: none;
    box-shadow: 0 18px 40px rgba(15,23,42,0.18);
}

.card + .card {
    margin-top: 20px;
}

/* =========================
   FORMS
========================= */
form label {
    display: block;
    margin-bottom: 6px;
    margin-top: 14px;
    font-weight: 600;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 11px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    font-size: 14px;
}

form textarea {
    resize: vertical;
}

form input:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56,189,248,0.2);
}

/* =========================
   BUTTONS
========================= */
.btn {
    display: inline-block;
    padding: 9px 16px;
    border-radius: 8px;
    background: #2563eb;
    color: #fff;
    font-size: 13px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:hover {
    background: #1e40af;
}

.btn-primary {
    background: #2563eb;
}

.btn-secondary {
    background: #64748b;
}

.btn-secondary:hover {
    background: #475569;
}

.btn-small {
    padding: 6px 11px;
    font-size: 12px;
}

/* =========================
   ALERTS
========================= */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-weight: 500;
}

.alert-success {
    background: #dcfce7;
    color: #14532d;
}

.alert-danger {
    background: #fee2e2;
    color: #7f1d1d;
}

.alert-warning {
    background: #fef9c3;
    color: #78350f;
}

/* =========================
   TABLES
========================= */
.table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(15,23,42,0.12);
}

.table thead {
    background: #f8fafc;
}

.table th,
.table td {
    padding: 14px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
}

.table th {
    font-weight: 600;
    color: #020617;
}

.table tr:hover {
    background: #f1f5f9;
}

/* =========================
   BADGES
========================= */
.badge {
    display: inline-block;
    padding: 5px 10px;
    font-size: 11px;
    border-radius: 999px;
    font-weight: 600;
}

.badge-success {
    background: #dcfce7;
    color: #14532d;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background: #fee2e2;
    color: #7f1d1d;
}

.badge-info {
    background: #e0f2fe;
    color: #075985;
}

.badge-secondary {
    background: #e5e7eb;
    color: #374151;
}

/* =========================
   LOGIN PAGE
========================= */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(135deg, #0f172a, #020617);
}

.login-box {
    background: #ffffff;
    padding: 35px;
    width: 360px;
    border-radius: 16px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.35);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 25px;
}

/* =========================
   UTILITIES
========================= */
.highlight {
    font-size: 26px;
    font-weight: 700;
    color: #2563eb;
}

/* =========================
   MOBILE RESPONSIVE
========================= */
@media (max-width: 768px) {
    .wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .content {
        padding: 18px;
    }

    .login-box {
        width: 92%;
    }

    .table {
        font-size: 12px;
    }
}


/* =========================================================
   ✅ FIXES ONLY (NO STRUCTURE CHANGE)
   Dashboard professional feel
========================================================= */

/* Remove heavy background image effect */
body {
    background: linear-gradient(180deg, #f8fafc, #eef2f7);
}

/* Dashboard hero improvement */
.dashboard-hero {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 45px;
    margin-bottom: 30px;
    box-shadow: 0 18px 40px rgba(15,23,42,0.18);
}

.dashboard-hero h1 {
    font-size: 26px;
    font-weight: 700;
}

.dashboard-hero p {
    color: #475569;
    max-width: 700px;
    line-height: 1.6;
}

/* Dashboard cards fix */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.dash-card {
    background: #ffffff;
    padding: 28px;
    border-radius: 14px;
    box-shadow: 0 14px 32px rgba(15,23,42,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dash-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 55px rgba(15,23,42,0.25);
}

.dash-card h3 {
    margin-top: 10px;
    margin-bottom: 6px;
}

.dash-card p {
    color: #64748b;
    font-size: 13px;
}
