body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
    background-color: #f3f4f6; 
    color: #0f172a; 
    padding: 2rem; 
    margin: 0;
}
.container { 
    max-width: 1300px; 
    margin: 0 auto; 
    display: flex; 
    flex-direction: column; 
    align-items: center;
    width: 100%;
}
.header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    border-bottom: 2px solid #cbd5e1; 
    padding-bottom: 1rem; 
    margin-bottom: 2rem; 
    width: 100%;
}

.toolbar { 
    background: white; 
    padding: 1rem; 
    border-radius: 8px; 
    border: 1px solid #cbd5e1; 
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); 
    margin-bottom: 2rem; 
    display: flex; 
    flex-direction: column; 
    gap: 1rem; 
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
}
@media (min-width: 768px) { 
    .toolbar { flex-direction: row; align-items: center; justify-content: center; gap: 2rem; } 
}


.header h1 { margin: 0; font-size: 1.85rem; color: #312e81; }
.grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 1024px) { .grid { grid-template-columns: 1fr 2fr; } }
.card { background: white; padding: 1.5rem; border: 1px solid #cbd5e1; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); border-radius: 8px; box-sizing: border-box; }
.card h2 { font-size: 1.15rem; margin-top: 0; padding-bottom: 0.5rem; border-bottom: 1px solid #e2e8f0; margin-bottom: 1.25rem; }
.card h2.text-indigo { color: #312e81; } 
.card h2.text-emerald { color: #064e3b; }
.form-group { margin-bottom: 1.15rem; }
label { display: block; font-size: 0.875rem; font-weight: 700; margin-bottom: 0.375rem; color: #1e293b; }
input, select { width: 100%; padding: 0.625rem; border: 2px solid #94a3b8; border-radius: 6px; box-sizing: border-box; background: #ffffff; color: #0f172a; font-size: 0.95rem; }
input:focus, select:focus { border-color: #312e81; outline: none; }
button { width: 100%; padding: 0.65rem; border: none; border-radius: 6px; color: white; font-weight: 700; cursor: pointer; font-size: 0.9rem; }
.btn-indigo { background-color: #312e81; } 
.btn-indigo:hover { background-color: #1e1b4b; }
.btn-emerald { background-color: #064e3b; } 
.btn-emerald:hover { background-color: #022c22; }
.scroll-table { max-height: 280px; overflow-y: auto; border: 1px solid #cbd5e1; border-radius: 6px; margin-bottom: 2rem; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.9rem; }
th { background: #1e293b; position: sticky; top: 0; padding: 0.75rem; font-weight: 700; color: #ffffff; border-bottom: 2px solid #0f172a; z-index: 10; }
td { padding: 0.75rem; border-bottom: 1px solid #cbd5e1; color: #0f172a; }
tr:hover { background-color: #e2e8f0; }
.badge { background: #312e81; color: #ffffff; padding: 0.25rem 0.6rem; border-radius: 9999px; font-size: 0.75rem; font-weight: 700; float: right; }
.badge-emerald { background: #064e3b; }
.logout-btn { background: #e5e7eb; color: #374151; padding: 0.5rem 1rem; border-radius: 6px; text-decoration: none; font-size: 0.875rem; font-weight: 700; border: 1px solid #cbd5e1; }
.logout-btn:hover { background: #d1d5db; }
.alert-box { padding: 0.75rem; border-radius: 6px; font-size: 0.8rem; font-weight: 700; margin-bottom: 1rem; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.row-disabled { background-color: #fee2e2 !important; font-weight: bold; }

.login-body { display: flex; align-items: center; justify-content: center; height: 100vh; }
.login-card { background: white; padding: 2rem; border-radius: 12px; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1); border: 1px solid #cbd5e1; width: 100%; max-width: 400px; box-sizing: border-box; }
.login-card h1 { font-size: 1.5rem; text-align: center; color: #312e81; margin-top: 0; margin-bottom: 1.5rem; }
.layout-with-sidebar { 
    display: flex; 
    flex-direction: column; 
    gap: 2rem; 
    margin-top: 1rem; 
    width: 100%;
    box-sizing: border-box;
    align-items: center;
}
@media (min-width: 768px) { 
    .layout-with-sidebar { flex-direction: row; align-items: flex-start; justify-content: center; } 
}
.sidebar-menu { width: 100%; display: flex; flex-direction: row; gap: 0.5rem; flex-wrap: wrap; }
@media (min-width: 768px) { .sidebar-menu { width: 250px; flex-direction: column; flex-shrink: 0; } }
.menu-item { display: block; padding: 0.75rem 1rem; border-radius: 6px; text-decoration: none; font-weight: 600; font-size: 0.95rem; color: #475569; background: #e2e8f0; border-left: 4px solid transparent; }
.menu-item:hover { background: #cbd5e1; color: #0f172a; }
.menu-item.active { background: #312e81; color: white; border-left-color: #4338ca; }
.content-area { 
    flex-grow: 1; 
    min-width: 0; 
    width: 100%;
}
