/* General layout */
body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background-color: #0f172a;
    color: #f1f5f9;
}

/* Navbar */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #1e293b;
    border-bottom: 1px solid #334155;
}

header h1 {
    margin: 0;
    font-size: 1.2rem;
    color: #f8fafc;
}

header nav a {
    color: #94a3b8;
    text-decoration: none;
    margin-left: 1.5rem;
}

header nav a:hover {
    color: #f8fafc;
}

/* Summary bar */
.summary {
    display: flex;
    gap: 3rem;
    padding: 1.5rem 2rem;
    background-color: #1e293b;
    border-bottom: 1px solid #334155;
}

.summary-item {
    display: flex;
    flex-direction: column;
}

.summary-item span:first-child {
    font-size: 0.85rem;
    color: #94a3b8;
}

.summary-item span:last-child {
    font-weight: 600;
    font-size: 1.1rem;
    color: #f8fafc;
}

/* Main grid */
.dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 2rem;
    padding: 2rem;
}

.card {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card h2 {
    margin-top: 0;
    font-size: 1.1rem;
    color: #f8fafc;
    margin-bottom: 1rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    color: #f8fafc;
    font-size: 0.9rem;
}

th,
td {
    padding: 0.75rem;
    border-bottom: 1px solid #334155;
    text-align: left;
}

th {
    color: #94a3b8;
    font-weight: 500;
}

/* Response badges */
.status {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

.status.success {
    background-color: #16a34a;
    color: #fff;
}

.status.error {
    background-color: #dc2626;
    color: #fff;
}

.status.warning {
    background-color: #d97706;
    color: #fff;
}

/* Filters and buttons */
.filter-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.filter-bar input {
    flex: 1;
    background-color: #0f172a;
    border: 1px solid #334155;
    border-radius: 4px;
    padding: 0.5rem;
    color: #f8fafc;
}

.filter-bar button {
    background-color: #334155;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 0.8rem;
    color: #f8fafc;
    cursor: pointer;
}

.filter-bar button:hover {
    background-color: #475569;
}

/* Sidebar for logged in user */
.sidebar {
    position: fixed;
    left: 0;
    top: 100;
    bottom: 0;
    width: 180px;
    background-color: #1e293b;
    border-right: 1px solid #334155;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar a {
    color: #f8fafc;
    text-decoration: none;
    padding: 0.6rem;
    border-radius: 4px;
    background-color: #334155;
    text-align: center;
}

.sidebar a:hover {
    background-color: #475569;
}

.main-content {
    margin-left: 200px;
}
