/* =========================
   GLOBAL RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

body {
    background: #f4f6f9;
    color: #1f2937;
}

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

.layout {
    display: flex;
    min-height: 100vh;
}

/* =========================
   SIDEBAR
========================= */

.sidebar {
    width: 240px;
    background: #0f172a;
    color: #ffffff;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
}

.logo {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 30px;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-item {
    text-decoration: none;
    color: #cbd5e1;
    font-size: 14px;
    padding: 8px 0;
    transition: 0.2s ease;
}

.nav-item:hover {
    color: #ffffff;
}

.nav-item.active {
    color: #ffffff;
    font-weight: 600;
}

/* =========================
   MAIN
========================= */

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* =========================
   TOPBAR
========================= */

.topbar {
    background: #ffffff;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e7eb;
}

.top-left h1 {
    font-size: 22px;
    margin-bottom: 4px;
}

.subtext {
    font-size: 13px;
    color: #6b7280;
}

/* =========================
   CONTENT
========================= */

.content {
    padding: 30px;
}

/* =========================
   CARD
========================= */

.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.card-header {
    margin-bottom: 20px;
}

/* =========================
   FUNDING CARDS
========================= */

.request-card {
    padding: 18px 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.request-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.request-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
    font-size: 13px;
    color: #6b7280;
}

.request-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* =========================
   STATUS BADGES
========================= */

.status-approved,
.status-pending,
.status-rejected {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.status-approved {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
}

.status-pending {
    background: rgba(180, 83, 9, 0.1);
    color: #b45309;
}

.status-rejected {
    background: rgba(185, 28, 28, 0.1);
    color: #b91c1c;
}

/* =========================
   INPUTS
========================= */

.input-small {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    min-width: 180px;
    transition: 0.2s ease;
}

.input-small:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* =========================
   BUTTONS
========================= */

button {
    border: none;
    cursor: pointer;
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 8px;
    transition: 0.2s ease;
}

.btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-danger {
    background: #dc2626;
    color: #ffffff;
}

.btn-danger:hover {
    background: #b91c1c;
}

/* =========================
   STATES
========================= */

.loading-state,
.empty-state {
    font-size: 14px;
    color: #6b7280;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 992px) {

    .sidebar {
        width: 200px;
    }

}

@media (max-width: 768px) {

    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
    }

    .nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .request-body {
        grid-template-columns: 1fr;
    }

    .request-actions {
        flex-direction: column;
    }

    .request-actions button,
    .input-small {
        width: 100%;
    }

}