/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f7fb;
    color: #1f2937;
    min-height: 100vh;
}

/* TOP BAR */

.topbar {
    height: 60px;
    background: #0f172a;
    color: white;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 24px;

    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.topbar-title {
    font-size: 20px;
    font-weight: bold;
}

.topbar-user {
    font-size: 14px;
}

/* LAYOUT */

.app-layout {
    display: flex;
    min-height: calc(100vh - 60px);
}

/* SIDEBAR */

.sidebar {
    width: 240px;
    background: #111827;
    padding: 20px 0;
}

.sidebar a {
    display: block;

    color: #d1d5db;

    text-decoration: none;

    padding: 14px 24px;

    transition: 0.2s;
}

.sidebar a:hover {
    background: #1f2937;
    color: white;
    text-decoration: none;
}

/* DISABLED SIDEBAR LINKS */

.sidebar-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sidebar-disabled:hover {
    background: transparent !important;
    color: #d1d5db !important;
    text-decoration: none !important;
}

/* MAIN CONTENT */

.main-content {
    flex: 1;
    padding: 24px;
}

/* PAGE TITLES */

h1,
h2,
h3 {
    margin-bottom: 16px;
    color: #111827;
}

/* CARDS */

.card {
    background: white;

    border-radius: 12px;

    padding: 20px;

    margin-bottom: 20px;

    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* DASHBOARD GRID */

.dashboard-grid {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

    gap: 20px;

    margin-bottom: 24px;
}

/* STATS CARD */

.stat-card {
    background: white;

    border-radius: 12px;

    padding: 20px;

    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stat-title {
    font-size: 14px;
    color: #6b7280;
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    margin-top: 10px;
}

/* TABLES */

table {
    width: 100%;
    border-collapse: collapse;

    background: white;

    border-radius: 10px;

    overflow: hidden;
}

table th {
    background: #e5e7eb;

    text-align: left;

    padding: 12px;

    font-size: 14px;
}

table td {
    padding: 12px;

    border-top: 1px solid #e5e7eb;

    font-size: 14px;
}

/* FORMS */

input,
select,
textarea {
    width: 100%;

    padding: 10px 12px;

    border: 1px solid #cbd5e1;

    border-radius: 8px;

    margin-top: 6px;
}

textarea {
    min-height: 100px;
}

/* BUTTONS */

button,
.btn {
    background: #2563eb;

    color: white;

    border: none;

    border-radius: 8px;

    padding: 10px 18px;

    cursor: pointer;

    text-decoration: none;

    display: inline-block;

    transition: 0.2s;
}

button:hover,
.btn:hover {
    background: #1d4ed8;
    text-decoration: none;
}

/* ALERTS */

.alert {
    padding: 14px 18px;

    border-radius: 8px;

    margin-bottom: 20px;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* LINKS */

a {
    color: #2563eb;
}

a:hover {
    text-decoration: underline;
}
/* STATUS BADGES */

.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-info {
    background: #dbeafe;
    color: #1e40af;
}

.badge-muted {
    background: #e5e7eb;
    color: #374151;
}
/* FORM GRID */

.form-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 24px;

    margin-bottom: 24px;
}

.form-section {
    background: white;

    padding: 20px;

    border-radius: 12px;

    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.form-section h3 {
    margin-bottom: 20px;
}

/* RESPONSIVE */

@media (max-width: 900px) {

    .form-grid {
        grid-template-columns: 1fr;
    }

}
/* LIST TOOLS */

.list-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.list-search {
    max-width: 380px;
}

/* SCROLLABLE TABLE */

.table-scroll {
    width: 100%;
    max-height: 520px;
    overflow: auto;
    border-radius: 10px;
}

.table-scroll table {
    min-width: 1200px;
}

.table-scroll th {
    position: sticky;
    top: 0;
    z-index: 2;
}
.table-scroll table {
    border-radius: 0;
}

.table-scroll th {
    box-shadow: 0 1px 0 #cbd5e1;
}
.card .btn {
    margin-right: 10px;
    margin-bottom: 10px;
}