/* CSS Variables & Theme */
:root {
    /* Color Palette - Professional SaaS Blue/Slate */
    --primary-color: #2563eb;       /* Primary Blue */
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;     /* Slate Gray */
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;

    /* Backgrounds */
    --bg-body: #f1f5f9;             /* Light Grayish Blue */
    --bg-card: #ffffff;
    --bg-sidebar: #1e293b;          /* Dark Sidebar for SaaS look */
    --bg-sidebar-hover: #334155;
    
    /* Text */
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #f8fafc;

    /* Borders & Shadows */
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    /* Dimensions */
    --sidebar-width: 260px;
    --header-height: 64px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
}

/* --- Clean Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* --- Utilities --- */
.card-saas {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    border-radius: 0.75rem;
}

.btn-saas-primary {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    transition: all 0.2s;
}
.btn-saas-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
    transform: translateY(-1px);
}

/* --- Toast Notifications --- */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}
.toast {
    background: white;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--primary-color);
    min-width: 300px;
    margin-bottom: 10px;
    overflow: hidden;
}
.toast.success { border-left-color: var(--success-color); }
.toast.error { border-left-color: var(--danger-color); }
.toast.warning { border-left-color: var(--warning-color); }

.toast-header {
    background: transparent;
    border-bottom: none;
    padding: 0.75rem 1rem 0;
}
.toast-body {
    padding: 0.5rem 1rem 1rem;
    font-weight: 500;
}

/* --- Generic Modal --- */
.modal-content {
    border: none;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
}
.modal-header {
    border-bottom: 1px solid var(--border-color);
    background-color: #f8fafc;
    border-top-left-radius: 0.75rem;
    border-top-right-radius: 0.75rem;
}
.modal-footer {
    border-top: 1px solid var(--border-color);
    background-color: #f8fafc;
    border-bottom-left-radius: 0.75rem;
    border-bottom-right-radius: 0.75rem;
}
