.card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}
.btn {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { background: transparent; border: 1px solid var(--border-input); color: var(--text-primary); }
.btn-outline:hover { background: var(--bg-hover); }
.btn-danger { background: var(--red); color: white; }
.btn-danger:hover { background: #DC2626; }

.form-group { margin-bottom: 16px; }
.form-label { display: block; margin-bottom: 6px; font-size: var(--text-sm); color: var(--text-secondary); font-weight: 500; }
.form-control {
    width: 100%; height: 40px; background: var(--bg-input); border: 1px solid var(--border-input);
    border-radius: 8px; padding: 0 12px; outline: none; transition: border-color 0.2s;
}
.form-control:focus { border-color: var(--accent); }
textarea.form-control { height: auto; padding: 12px; resize: vertical; }

.badge { padding: 4px 10px; border-radius: 999px; font-size: var(--text-xs); font-weight: 500; display: inline-block; }
.badge-green { background: var(--green-light); color: var(--green); }
.badge-red { background: var(--red-light); color: var(--red); }
.badge-amber { background: var(--amber-light); color: var(--amber); }
.badge-gray { background: var(--bg-hover); color: var(--text-secondary); }

.table-responsive { overflow-x: auto; width: 100%; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { color: var(--text-muted); font-weight: 500; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.05em; }
tbody tr:hover { background-color: rgba(0,0,0,0.01); }

.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-content { background: var(--bg-card); border-radius: 16px; padding: 24px; width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto; transform: scale(0.95); transition: transform 0.3s; box-shadow: var(--shadow-lg); }
.modal-overlay.active .modal-content { transform: scale(1); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.modal-title { font-size: var(--text-xl); margin: 0; }
.modal-close { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; }

#toast-root { position: fixed; top: 20px; right: 20px; z-index: 1050; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--bg-card); border-radius: 8px; padding: 12px 16px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 12px; width: 300px; animation: slideInRight 0.3s forwards; border-left: 4px solid transparent; }
.toast-success { border-left-color: var(--green); }
.toast-error { border-left-color: var(--red); }
.toast-warning { border-left-color: var(--amber); }
.toast-info { border-left-color: var(--purple); }

.skeleton-page { width: 100%; height: 500px; background: linear-gradient(90deg, var(--bg-hover) 25%, var(--border) 50%, var(--bg-hover) 75%); background-size: 200% 100%; animation: loading 1.5s infinite; border-radius: 16px; }
@keyframes loading { from { background-position: 200% 0; } to { background-position: -200% 0; } }
