* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
    background: #f8fafc;
    color: #1e293b;
}
.app-container {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
}
.logo-area {
    padding: 24px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
}
.nav-links {
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 8px;
}
.nav-links a {
    padding: 12px 16px;
    text-decoration: none;
    color: #475569;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}
.nav-links a:hover, .nav-links a.active {
    background: #f1f5f9;
    color: #2563eb;
    transform: translateX(4px);
}
.main-content {
    flex: 1;
    padding: 40px;
}
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}
.top-bar h1 {
    font-size: 1.75rem;
    color: #0f172a;
}
.card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 1px 3px 0 rgba(0,0,0,0.05);
    padding: 24px;
}
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}
.metric-card h3 {
    font-size: 0.875rem;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 8px;
}
.metric-card p {
    font-size: 2rem;
    font-weight: 700;
    color: #0f172a;
}
.status-active {
    color: #16a34a;
}
.table-container {
    padding: 0;
    overflow: hidden;
}
.table-actions {
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}
.table-actions input {
    width: 300px;
    padding: 10px 16px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    outline: none;
}
.scrollable-table {
    max-height: 450px;
    overflow-y: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
th {
    background: #f8fafc;
    padding: 16px 24px;
    font-weight: 600;
    color: #475569;
    position: sticky;
    top: 0;
    border-bottom: 1px solid #e2e8f0;
}
td {
    padding: 16px 24px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}
.btn-primary {
    background: #2563eb;
    color: white;
}
.btn-primary:hover {
    background: #1d4ed8;
}
.btn-secondary {
    background: #e2e8f0;
    color: #475569;
}
.btn-danger {
    background: #fee2e2;
    color: #991b1b;
    padding: 6px 12px;
}
.btn-edit {
    background: #e0f2fe;
    color: #0369a1;
    padding: 6px 12px;
    margin-right: 8px;
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 100;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-box {
    background: white;
    padding: 32px;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}
.form-group input, .form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    outline: none;
}
.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
