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

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

a {
    text-decoration: none;
}

.app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.topbar {
    height: 70px;
    background: #0f172a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}

.topbar h1 {
    font-size: 24px;
    font-weight: 700;
}

.layout {
    display: flex;
    flex: 1;
}

.sidebar {
    width: 240px;
    background: #1e293b;
    padding: 24px 0;
    min-height: calc(100vh - 70px);
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin-bottom: 4px;
}

.sidebar a {
    display: block;
    color: #e5e7eb;
    padding: 12px 24px;
    transition: background 0.2s ease;
}

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

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

.page-title {
    font-size: 28px;
    margin-bottom: 24px;
    font-weight: bold;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

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

.card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #6b7280;
}

.card p {
    font-size: 28px;
    font-weight: bold;
    color: #111827;
}

.section {
    margin-top: 32px;
}

.section h2 {
    margin-bottom: 16px;
    font-size: 22px;
}

.placeholder-box {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.btn {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

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

.btn-secondary {
    background: #64748b;
}

.btn-secondary:hover {
    background: #475569;
}

.table-wrapper {
    margin-top: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    overflow: hidden;
}

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

.table th,
.table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.table th {
    background: #f8fafc;
    color: #334155;
    font-weight: 700;
}

.table tr:hover td {
    background: #f9fafb;
}

.form-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    max-width: 800px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
}

.form-group textarea {
    resize: vertical;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

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

.badge-gray {
    background: #e5e7eb;
    color: #374151;
}

.action-link {
    color: #2563eb;
    font-weight: 600;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 600;
}