* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6fa;
    color: #1f2937;
}

.layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: #111827;
    color: #f9fafb;
    padding: 24px 16px;
}

.brand {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.site-meta {
    opacity: 0.75;
    font-size: 13px;
    margin-bottom: 24px;
}

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

.sidebar a {
    color: #f9fafb;
    text-decoration: none;
    background: #1f2937;
    padding: 10px 12px;
    border-radius: 8px;
}

.sidebar a:hover {
    background: #374151;
}

.content {
    padding: 28px;
}

.cards {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin: 18px 0;
}

.card, .panel {
    background: #ffffff;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 2px 12px rgba(17, 24, 39, 0.08);
}

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

th, td {
    border-bottom: 1px solid #e5e7eb;
    padding: 10px;
    text-align: left;
}

.actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.inline-form {
    display: inline;
}

input[type="text"],
input[type="password"],
input[type="file"],
textarea,
select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 10px;
    margin: 6px 0 12px;
    background: #fff;
}

button, .danger-btn {
    border: 0;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    background: #2563eb;
    color: #fff;
}

.danger-btn {
    background: #dc2626;
}

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

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

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

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

@media (max-width: 900px) {
    .layout {
        grid-template-columns: 1fr;
    }
}

