:root {

    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --bg-main: #0f172a;
    --bg-sidebar: #1e293b;
    --surface: #1e293b;
    --surface-alt: #334155;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #334155;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Common UI --- */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(to bottom right, var(--primary), var(--primary-dark));
    border: none;
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
}

.form-control {
    background-color: var(--surface-alt);
    border: 1px solid var(--border);
    color: white;
    border-radius: var(--radius-sm);
    padding: 0.75rem;
}

.form-control:focus {
    background-color: var(--surface-alt);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

.form-control::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.8;
}

/* --- Modals --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.custom-modal {
    background-color: var(--bg-sidebar);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    position: relative;
    animation: modalSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.custom-modal-header {
    background-color: rgba(255, 255, 255, 0.02);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--surface-alt);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}