:root {
    --adm-primary: #6366f1;
    --adm-primary-dark: #4f46e5;
    --adm-purple: #8b5cf6;
    --adm-bg: #eef0f4;
    --adm-white: #ffffff;
    --adm-text: #1e1e2d;
    --adm-text-muted: #6b7280;
    --adm-border: #e5e7eb;
    --adm-success: #10b981;
    --adm-danger: #ef4444;
    --adm-radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'DM Sans', 'Hind Siliguri', sans-serif;
    background: var(--adm-bg);
    color: var(--adm-text);
}

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

.adm-sidebar {
    width: 240px;
    background: linear-gradient(180deg, var(--adm-primary), var(--adm-purple));
    color: #fff;
    padding: 24px 16px;
}

.adm-brand { font-size: 20px; font-weight: 700; margin-bottom: 32px; }

.adm-nav-link {
    display: block;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 4px;
    font-weight: 500;
    transition: background 0.2s;
}

.adm-nav-link:hover, .adm-nav-link.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.adm-main { flex: 1; padding: 32px; }

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

.adm-page-head h1 { font-size: 22px; font-weight: 700; }

.adm-card {
    background: var(--adm-white);
    border-radius: var(--adm-radius);
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.adm-toolbar { margin-bottom: 16px; }

.adm-input, .adm-textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--adm-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 16px;
}

.adm-input:focus, .adm-textarea:focus {
    outline: none;
    border-color: var(--adm-primary);
}

.adm-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--adm-text-muted);
}

.adm-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.15s, opacity 0.15s;
}

.adm-btn:active { transform: scale(0.97); }

.adm-btn-primary {
    background: linear-gradient(135deg, var(--adm-primary), var(--adm-purple));
    color: #fff;
}

.adm-btn-secondary {
    background: var(--adm-bg);
    color: var(--adm-text);
}

.adm-btn-danger {
    background: #fee2e2;
    color: var(--adm-danger);
}

.adm-btn-small { padding: 6px 12px; font-size: 13px; }

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

.adm-table th {
    text-align: left;
    padding: 12px;
    font-size: 13px;
    color: var(--adm-text-muted);
    border-bottom: 2px solid var(--adm-border);
}

.adm-table td {
    padding: 12px;
    border-bottom: 1px solid var(--adm-border);
    font-size: 14px;
}

.adm-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.adm-badge-active { background: #d1fae5; color: #059669; }
.adm-badge-inactive { background: #f3f4f6; color: #6b7280; }

.adm-loading { text-align: center; color: var(--adm-text-muted); padding: 24px; }

/* Modal */
.adm-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.adm-modal-overlay.show { display: flex; }

.adm-modal {
    background: #fff;
    border-radius: var(--adm-radius);
    padding: 24px;
    width: 480px;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
}

.adm-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.adm-modal-head h2 { font-size: 18px; font-weight: 700; }

.adm-modal-close {
    cursor: pointer;
    font-size: 22px;
    color: var(--adm-text-muted);
}

.adm-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 8px;
}

/* Toast */
.adm-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--adm-text);
    color: #fff;
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s, transform 0.25s;
    pointer-events: none;
    z-index: 200;
}

.adm-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.adm-toast.success { background: var(--adm-success); }
.adm-toast.error { background: var(--adm-danger); }
