* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f4f6f8;
    color: #1f2937;
}

a {
    color: #0f766e;
    text-decoration: none;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-box, .card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    width: 100%;
}

.login-box {
    max-width: 420px;
}

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

.sidebar {
    width: 240px;
    background: #111827;
    color: #fff;
    padding: 24px 16px;
}

.sidebar h1 {
    font-size: 18px;
    margin: 0 0 24px;
}

.sidebar nav a {
    display: block;
    color: #d1d5db;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 6px;
}

.sidebar nav a.active,
.sidebar nav a:hover {
    background: #0f766e;
    color: #fff;
}

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

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.stat-card .number {
    font-size: 28px;
    font-weight: 700;
    color: #0f766e;
}

label {
    display: block;
    margin: 12px 0 6px;
    font-weight: 600;
}

input[type=text],
input[type=password],
input[type=url],
input[type=email],
input[type=number],
input[type=date],
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
}

textarea {
    min-height: 120px;
}

.btn {
    display: inline-block;
    background: #0f766e;
    color: #fff !important;
    border: 0;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 14px;
}

.btn-secondary {
    background: #6b7280;
}

.btn-danger {
    background: #b91c1c;
}

.btn-sm {
    padding: 6px 10px;
    font-size: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
    font-size: 14px;
}

th {
    background: #f9fafb;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6b7280;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

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

.alert-success {
    background: #d1fae5;
    color: #065f46;
}

.filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    background: #e5e7eb;
}

.badge-pending { background: #fef3c7; color: #92400e; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-error { background: #fee2e2; color: #991b1b; }

.options-list {
    margin: 0;
    padding-left: 18px;
}

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

@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
}
