/* ============================================================
   Vision Web Labs ERP - Core Stylesheet
   ============================================================ */

:root {
    --vwl-primary: #4f46e5;
    --vwl-primary-dark: #4338ca;
    --vwl-sidebar-bg: #111827;
    --vwl-sidebar-hover: #1f2937;
    --vwl-sidebar-width: 260px;
    --vwl-topbar-height: 64px;
}

body {
    background-color: #f4f6fb;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.auth-body {
    background: linear-gradient(135deg, var(--vwl-primary) 0%, #7c3aed 100%);
}
.auth-wrapper { padding: 24px; }
.auth-card { width: 100%; max-width: 440px; border-radius: 16px; }
.auth-logo { font-size: 2.5rem; color: var(--vwl-primary); }

.app-shell { display: flex; min-height: 100vh; }

.app-sidebar {
    width: var(--vwl-sidebar-width);
    background: var(--vwl-sidebar-bg);
    color: #e5e7eb;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    overflow-y: auto;
    z-index: 1030;
    transition: transform 0.2s ease;
}

.sidebar-brand {
    display: flex; align-items: center; gap: 10px;
    padding: 20px; font-weight: 700; font-size: 1.1rem; color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-brand i { color: var(--vwl-primary); font-size: 1.4rem; }

.sidebar-nav { padding: 12px; display: flex; flex-direction: column; }
.sidebar-nav .nav-link {
    color: #cbd5e1; padding: 10px 14px; border-radius: 8px; margin-bottom: 2px;
    display: flex; align-items: center; gap: 10px; font-size: 0.925rem;
}
.sidebar-nav .nav-link:hover { background: var(--vwl-sidebar-hover); color: #fff; }
.sidebar-nav .nav-link.active { background: var(--vwl-primary); color: #fff; }
.sidebar-nav .nav-link.disabled { opacity: 0.4; cursor: not-allowed; }

.sidebar-divider { border-color: rgba(255, 255, 255, 0.08); margin: 12px 0; }
.sidebar-section-title { text-transform: uppercase; font-size: 0.7rem; letter-spacing: 0.05em; color: #6b7280; padding: 0 14px 8px; }

.app-main { margin-left: var(--vwl-sidebar-width); flex: 1; display: flex; flex-direction: column; min-width: 0; }

.app-topbar {
    height: var(--vwl-topbar-height); background: #fff; border-bottom: 1px solid #e5e7eb;
    display: flex; align-items: center; padding: 0 24px; gap: 16px;
    position: sticky; top: 0; z-index: 1020;
}

.app-content { padding: 24px; flex: 1; }

.stat-card { border: none; border-radius: 14px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); }
.stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.bg-primary-soft { background: rgba(79, 70, 229, 0.1); color: var(--vwl-primary); }
.bg-success-soft { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.bg-warning-soft { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.bg-info-soft { background: rgba(6, 182, 212, 0.1); color: #06b6d4; }
.bg-danger-soft { background: rgba(220, 38, 38, 0.1); color: #dc2626; }
.bg-secondary-soft { background: rgba(107, 114, 128, 0.12); color: #6b7280; }

.kanban-card { cursor: grab; }
.kanban-list { border-radius: 10px; transition: background 0.15s ease; padding: 4px; }

.card { border-radius: 14px; border: 1px solid #eef0f5; }

@media (max-width: 991.98px) {
    .app-sidebar { transform: translateX(-100%); }
    .app-sidebar.show { transform: translateX(0); }
    .app-main { margin-left: 0; }
}

.permission-group { border: 1px solid #eef0f5; border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; }
.permission-group-title { text-transform: capitalize; font-weight: 600; margin-bottom: 8px; }
