/* ═══════════════════════════════════════════════════════════════════ NIS2 Agile - Main Stylesheet Professional compliance management UI ═══════════════════════════════════════════════════════════════════ */ /* ── CSS Variables ────────────────────────────────────────────────── */ :root { /* Primary palette */ --primary: #1a73e8; --primary-light: #4a9af5; --primary-dark: #1557b0; --primary-bg: #e8f0fe; /* Status colors */ --secondary: #34a853; --secondary-light: #5cb876; --secondary-bg: #e6f4ea; --warning: #fbbc04; --warning-light: #fdd663; --warning-bg: #fef7e0; --danger: #ea4335; --danger-light: #f28b82; --danger-bg: #fce8e6; --info: #4285f4; --info-bg: #e8f0fe; /* Neutrals */ --gray-50: #f8fafc; --gray-100: #f1f5f9; --gray-200: #e2e8f0; --gray-300: #cbd5e1; --gray-400: #94a3b8; --gray-500: #64748b; --gray-600: #475569; --gray-700: #334155; --gray-800: #1e293b; --gray-900: #0f172a; /* Sidebar */ --sidebar-bg: #1e293b; --sidebar-hover: #334155; --sidebar-active: #1a73e8; --sidebar-text: #94a3b8; --sidebar-text-active: #ffffff; --sidebar-width: 260px; /* Layout */ --content-bg: #f1f5f9; --card-bg: #ffffff; --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06); --card-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06); --border-radius: 8px; --border-radius-lg: 12px; --border-radius-sm: 4px; /* Typography */ --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace; /* Transitions */ --transition-fast: 150ms ease; --transition: 250ms ease; } /* ── Reset & Base ─────────────────────────────────────────────────── */ *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } body { font-family: var(--font-family); background: var(--content-bg); color: var(--gray-700); line-height: 1.6; min-height: 100vh; } a { color: var(--primary); text-decoration: none; transition: color var(--transition-fast); } a:hover { color: var(--primary-dark); } img { max-width: 100%; } /* ── Layout ───────────────────────────────────────────────────────── */ .app-layout { display: flex; min-height: 100vh; } .sidebar { width: var(--sidebar-width); background: var(--sidebar-bg); color: var(--sidebar-text); display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 100; transition: transform var(--transition); overflow-y: auto; } .sidebar-brand { padding: 24px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); display: flex; align-items: center; gap: 12px; } .sidebar-brand-icon { width: 36px; height: 36px; background: var(--primary); border-radius: var(--border-radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .sidebar-brand-icon svg { width: 20px; height: 20px; fill: #fff; } .sidebar-brand h1 { font-size: 1.125rem; font-weight: 700; color: #fff; letter-spacing: -0.01em; } .sidebar-brand span { font-size: 0.7rem; color: var(--sidebar-text); display: block; margin-top: 2px; text-transform: uppercase; letter-spacing: 0.05em; } .sidebar-nav { flex: 1; padding: 12px 0; } .sidebar-nav-label { padding: 16px 20px 8px; font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-500); } .sidebar-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 20px; color: var(--sidebar-text); font-size: 0.875rem; font-weight: 500; border-radius: 0; transition: all var(--transition-fast); border-left: 3px solid transparent; } .sidebar-nav a:hover { background: var(--sidebar-hover); color: var(--sidebar-text-active); } .sidebar-nav a.active { background: rgba(26, 115, 232, 0.12); color: var(--primary-light); border-left-color: var(--primary); } .sidebar-nav a svg { width: 20px; height: 20px; flex-shrink: 0; opacity: 0.7; } .sidebar-nav a.active svg, .sidebar-nav a:hover svg { opacity: 1; } .sidebar-footer { padding: 16px 20px; border-top: 1px solid rgba(255, 255, 255, 0.08); } .sidebar-user { display: flex; align-items: center; gap: 10px; } .sidebar-user-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 0.8rem; flex-shrink: 0; } .sidebar-user-info { flex: 1; min-width: 0; } .sidebar-user-name { font-size: 0.8rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sidebar-user-role { font-size: 0.7rem; color: var(--gray-400); } .sidebar-logout-btn { background: none; border: none; color: var(--gray-400); cursor: pointer; padding: 4px; border-radius: var(--border-radius-sm); transition: color var(--transition-fast); } .sidebar-logout-btn:hover { color: var(--danger); } .main-content { flex: 1; margin-left: var(--sidebar-width); min-height: 100vh; } .content-header { background: var(--card-bg); padding: 20px 32px; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; } .content-header h2 { font-size: 1.375rem; font-weight: 700; color: var(--gray-900); letter-spacing: -0.01em; } .content-header-actions { display: flex; align-items: center; gap: 12px; } .content-body { padding: 24px 32px; } /* ── Mobile sidebar toggle ────────────────────────────────────────── */ .sidebar-toggle { display: none; position: fixed; top: 16px; left: 16px; z-index: 200; background: var(--sidebar-bg); border: none; color: #fff; width: 40px; height: 40px; border-radius: var(--border-radius); cursor: pointer; align-items: center; justify-content: center; box-shadow: var(--card-shadow); } /* ── Cards ────────────────────────────────────────────────────────── */ .card { background: var(--card-bg); border-radius: var(--border-radius-lg); box-shadow: var(--card-shadow); transition: box-shadow var(--transition); overflow: hidden; } .card:hover { box-shadow: var(--card-shadow-hover); } .card-header { padding: 16px 24px; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; } .card-header h3 { font-size: 1rem; font-weight: 600; color: var(--gray-900); } .card-body { padding: 24px; } .card-footer { padding: 16px 24px; border-top: 1px solid var(--gray-100); background: var(--gray-50); } /* ── Stat Cards ───────────────────────────────────────────────────── */ .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 24px; } .stat-card { background: var(--card-bg); border-radius: var(--border-radius-lg); box-shadow: var(--card-shadow); padding: 20px 24px; display: flex; align-items: flex-start; gap: 16px; transition: box-shadow var(--transition), transform var(--transition); } .stat-card:hover { box-shadow: var(--card-shadow-hover); transform: translateY(-2px); } .stat-card-icon { width: 48px; height: 48px; border-radius: var(--border-radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .stat-card-icon svg { width: 24px; height: 24px; } .stat-card-icon.primary { background: var(--primary-bg); color: var(--primary); } .stat-card-icon.primary svg { fill: var(--primary); } .stat-card-icon.success { background: var(--secondary-bg); color: var(--secondary); } .stat-card-icon.success svg { fill: var(--secondary); } .stat-card-icon.warning { background: var(--warning-bg); color: var(--warning); } .stat-card-icon.warning svg { fill: var(--warning); } .stat-card-icon.danger { background: var(--danger-bg); color: var(--danger); } .stat-card-icon.danger svg { fill: var(--danger); } .stat-card-content h4 { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--gray-500); margin-bottom: 4px; } .stat-card-value { font-size: 1.75rem; font-weight: 700; color: var(--gray-900); line-height: 1.2; } .stat-card-change { font-size: 0.75rem; margin-top: 4px; } .stat-card-change.up { color: var(--secondary); } .stat-card-change.down { color: var(--danger); } /* ── Score Gauge ──────────────────────────────────────────────────── */ .score-gauge { position: relative; width: 180px; height: 180px; margin: 0 auto; } .score-gauge svg { transform: rotate(-90deg); } .score-gauge-circle-bg { fill: none; stroke: var(--gray-200); stroke-width: 12; } .score-gauge-circle { fill: none; stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset 1s ease, stroke 0.5s ease; } .score-gauge-value { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; } .score-gauge-number { font-size: 2.5rem; font-weight: 800; color: var(--gray-900); line-height: 1; } .score-gauge-label { font-size: 0.75rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; } /* Score colors */ .score-critical { --score-color: var(--danger); } .score-low { --score-color: #f97316; } .score-medium { --score-color: var(--warning); } .score-good { --score-color: #84cc16; } .score-excellent { --score-color: var(--secondary); } .score-gauge-circle { stroke: var(--score-color, var(--primary)); } /* ── Risk Matrix Colors ───────────────────────────────────────────── */ .risk-critical { background: var(--danger); color: #fff; } .risk-high { background: #f97316; color: #fff; } .risk-medium { background: var(--warning); color: var(--gray-900); } .risk-low { background: var(--secondary); color: #fff; } .risk-info { background: var(--info); color: #fff; } .risk-text-critical { color: var(--danger); } .risk-text-high { color: #f97316; } .risk-text-medium { color: #d97706; } .risk-text-low { color: var(--secondary); } /* ── Buttons ──────────────────────────────────────────────────────── */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; font-size: 0.875rem; font-weight: 600; font-family: inherit; border: 1px solid transparent; border-radius: var(--border-radius); cursor: pointer; transition: all var(--transition-fast); white-space: nowrap; text-decoration: none; line-height: 1.4; } .btn:disabled { opacity: 0.5; cursor: not-allowed; } .btn svg { width: 18px; height: 18px; } .btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); } .btn-primary:hover:not(:disabled) { background: var(--primary-dark); border-color: var(--primary-dark); } .btn-secondary { background: var(--gray-100); color: var(--gray-700); border-color: var(--gray-300); } .btn-secondary:hover:not(:disabled) { background: var(--gray-200); border-color: var(--gray-400); } .btn-success { background: var(--secondary); color: #fff; border-color: var(--secondary); } .btn-success:hover:not(:disabled) { background: var(--secondary-light); } .btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); } .btn-danger:hover:not(:disabled) { background: var(--danger-light); } .btn-warning { background: var(--warning); color: var(--gray-900); border-color: var(--warning); } .btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); } .btn-outline:hover:not(:disabled) { background: var(--primary); color: #fff; } .btn-ghost { background: transparent; color: var(--gray-600); border-color: transparent; } .btn-ghost:hover:not(:disabled) { background: var(--gray-100); color: var(--gray-800); } .btn-sm { padding: 6px 14px; font-size: 0.8rem; } .btn-lg { padding: 14px 28px; font-size: 1rem; } .btn-icon { padding: 8px; width: 36px; height: 36px; } .btn-group { display: flex; gap: 8px; } /* ── Forms ────────────────────────────────────────────────────────── */ .form-group { margin-bottom: 20px; } .form-label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; } .form-label .required { color: var(--danger); margin-left: 2px; } .form-input, .form-select, .form-textarea { width: 100%; padding: 10px 14px; font-size: 0.875rem; font-family: inherit; color: var(--gray-700); background: var(--card-bg); border: 1px solid var(--gray-300); border-radius: var(--border-radius); transition: border-color var(--transition-fast), box-shadow var(--transition-fast); outline: none; } .form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15); } .form-input::placeholder, .form-textarea::placeholder { color: var(--gray-400); } .form-input.error, .form-select.error, .form-textarea.error { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(234, 67, 53, 0.1); } .form-textarea { resize: vertical; min-height: 100px; } .form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; } .form-help { font-size: 0.75rem; color: var(--gray-500); margin-top: 4px; } .form-error { font-size: 0.75rem; color: var(--danger); margin-top: 4px; } .form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; } /* Radio & Checkbox */ .form-radio-group, .form-check-group { display: flex; flex-wrap: wrap; gap: 12px; } .form-radio, .form-check { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 8px 16px; border: 1px solid var(--gray-200); border-radius: var(--border-radius); transition: all var(--transition-fast); font-size: 0.875rem; } .form-radio:hover, .form-check:hover { border-color: var(--primary); background: var(--primary-bg); } .form-radio input[type="radio"], .form-check input[type="checkbox"] { accent-color: var(--primary); } .form-radio.selected, .form-check.selected { border-color: var(--primary); background: var(--primary-bg); } /* Range Slider */ .form-range { width: 100%; accent-color: var(--primary); margin: 8px 0; } .form-range-labels { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--gray-500); } /* ── Tables ───────────────────────────────────────────────────────── */ .table-container { overflow-x: auto; border-radius: var(--border-radius-lg); } table { width: 100%; border-collapse: collapse; font-size: 0.875rem; } thead { background: var(--gray-50); } thead th { padding: 12px 16px; font-weight: 600; color: var(--gray-600); text-align: left; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 2px solid var(--gray-200); white-space: nowrap; } tbody td { padding: 12px 16px; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); } tbody tr { transition: background var(--transition-fast); } tbody tr:hover { background: var(--gray-50); } tbody tr:last-child td { border-bottom: none; } /* ── Badges / Tags ────────────────────────────────────────────────── */ .badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; font-size: 0.7rem; font-weight: 600; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.03em; white-space: nowrap; } .badge-primary { background: var(--primary-bg); color: var(--primary); } .badge-success { background: var(--secondary-bg); color: #15803d; } .badge-warning { background: var(--warning-bg); color: #a16207; } .badge-danger { background: var(--danger-bg); color: var(--danger); } .badge-info { background: var(--info-bg); color: var(--primary); } .badge-neutral { background: var(--gray-100); color: var(--gray-600); } .badge-lg { padding: 6px 16px; font-size: 0.8rem; } .tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; font-size: 0.75rem; font-weight: 500; background: var(--gray-100); color: var(--gray-600); border-radius: var(--border-radius-sm); border: 1px solid var(--gray-200); } /* ── Progress Bar ─────────────────────────────────────────────────── */ .progress { width: 100%; height: 8px; background: var(--gray-200); border-radius: 100px; overflow: hidden; } .progress-bar { height: 100%; border-radius: 100px; transition: width 0.8s ease; background: var(--primary); } .progress-bar.success { background: var(--secondary); } .progress-bar.warning { background: var(--warning); } .progress-bar.danger { background: var(--danger); } .progress-lg { height: 12px; } .progress-label { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 0.8rem; } .progress-label span:first-child { font-weight: 600; color: var(--gray-700); } .progress-label span:last-child { color: var(--gray-500); } /* ── Modal ────────────────────────────────────────────────────────── */ .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(4px); z-index: 1000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all var(--transition); } .modal-overlay.active { opacity: 1; visibility: visible; } .modal { background: var(--card-bg); border-radius: var(--border-radius-lg); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2); width: 90%; max-width: 560px; max-height: 85vh; overflow-y: auto; transform: translateY(20px) scale(0.95); transition: transform var(--transition); } .modal-overlay.active .modal { transform: translateY(0) scale(1); } .modal-header { padding: 20px 24px; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; } .modal-header h3 { font-size: 1.125rem; font-weight: 700; color: var(--gray-900); } .modal-close { background: none; border: none; color: var(--gray-400); cursor: pointer; padding: 4px; border-radius: var(--border-radius-sm); transition: color var(--transition-fast); line-height: 1; } .modal-close:hover { color: var(--gray-700); } .modal-body { padding: 24px; } .modal-footer { padding: 16px 24px; border-top: 1px solid var(--gray-100); display: flex; justify-content: flex-end; gap: 8px; } /* ── Notifications / Toasts ───────────────────────────────────────── */ .notification-container { position: fixed; top: 20px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; pointer-events: none; } .notification { background: var(--card-bg); border-radius: var(--border-radius); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); padding: 14px 20px; display: flex; align-items: center; gap: 12px; min-width: 320px; max-width: 480px; pointer-events: auto; animation: slideIn 0.3s ease; border-left: 4px solid var(--gray-400); } .notification.success { border-left-color: var(--secondary); } .notification.error { border-left-color: var(--danger); } .notification.warning { border-left-color: var(--warning); } .notification.info { border-left-color: var(--primary); } .notification-icon { width: 20px; height: 20px; flex-shrink: 0; } .notification.success .notification-icon { color: var(--secondary); } .notification.error .notification-icon { color: var(--danger); } .notification.warning .notification-icon { color: var(--warning); } .notification.info .notification-icon { color: var(--primary); } .notification-message { flex: 1; font-size: 0.875rem; color: var(--gray-700); font-weight: 500; } .notification-close { background: none; border: none; color: var(--gray-400); cursor: pointer; padding: 2px; font-size: 1.1rem; line-height: 1; } .notification.fade-out { animation: slideOut 0.3s ease forwards; } @keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } @keyframes slideOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } } /* ── Steps / Wizard ───────────────────────────────────────────────── */ .steps { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 32px; padding: 0 16px; overflow-x: auto; } .step { display: flex; align-items: center; gap: 8px; padding: 8px 16px; font-size: 0.8rem; font-weight: 500; color: var(--gray-400); white-space: nowrap; position: relative; cursor: pointer; transition: color var(--transition-fast); } .step-number { width: 28px; height: 28px; border-radius: 50%; background: var(--gray-200); color: var(--gray-500); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; flex-shrink: 0; transition: all var(--transition-fast); } .step.active .step-number { background: var(--primary); color: #fff; } .step.active { color: var(--primary); } .step.completed .step-number { background: var(--secondary); color: #fff; } .step.completed { color: var(--secondary); } .step-connector { width: 32px; height: 2px; background: var(--gray-200); flex-shrink: 0; } .step.completed + .step-connector, .step.completed ~ .step-connector { background: var(--secondary); } /* ── Activity Feed ────────────────────────────────────────────────── */ .activity-list { list-style: none; } .activity-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gray-100); } .activity-item:last-child { border-bottom: none; } .activity-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--primary-bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .activity-icon svg { width: 16px; height: 16px; fill: var(--primary); } .activity-content { flex: 1; } .activity-text { font-size: 0.875rem; color: var(--gray-700); } .activity-time { font-size: 0.75rem; color: var(--gray-400); margin-top: 2px; } /* ── Deadline Item ────────────────────────────────────────────────── */ .deadline-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gray-100); } .deadline-item:last-child { border-bottom: none; } .deadline-date { width: 48px; height: 48px; border-radius: var(--border-radius); display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 700; } .deadline-date .day { font-size: 1.125rem; line-height: 1; } .deadline-date .month { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.05em; } .deadline-date.urgent { background: var(--danger-bg); color: var(--danger); } .deadline-date.soon { background: var(--warning-bg); color: #a16207; } .deadline-date.normal { background: var(--primary-bg); color: var(--primary); } .deadline-info { flex: 1; } .deadline-title { font-size: 0.875rem; font-weight: 600; color: var(--gray-700); } .deadline-desc { font-size: 0.75rem; color: var(--gray-500); } /* ── Quick Actions ────────────────────────────────────────────────── */ .quick-actions { display: flex; gap: 12px; flex-wrap: wrap; } .quick-action-btn { display: flex; align-items: center; gap: 10px; padding: 14px 20px; background: var(--card-bg); border: 2px dashed var(--gray-200); border-radius: var(--border-radius-lg); cursor: pointer; transition: all var(--transition-fast); font-family: inherit; color: var(--gray-600); font-size: 0.875rem; font-weight: 600; } .quick-action-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-bg); } .quick-action-btn svg { width: 20px; height: 20px; } /* ── Auth Pages ───────────────────────────────────────────────────── */ .auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%); padding: 20px; } .auth-card { background: var(--card-bg); border-radius: var(--border-radius-lg); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); width: 100%; max-width: 440px; overflow: hidden; } .auth-header { padding: 32px 32px 0; text-align: center; } .auth-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 24px; } .auth-logo-icon { width: 44px; height: 44px; background: var(--primary); border-radius: var(--border-radius); display: flex; align-items: center; justify-content: center; } .auth-logo-icon svg { width: 24px; height: 24px; fill: #fff; } .auth-logo-text { font-size: 1.5rem; font-weight: 800; color: var(--gray-900); letter-spacing: -0.02em; } .auth-logo-text span { color: var(--primary); } .auth-subtitle { font-size: 0.875rem; color: var(--gray-500); margin-bottom: 8px; } .auth-body { padding: 32px; } .auth-footer { padding: 0 32px 32px; text-align: center; } .auth-footer p { font-size: 0.8125rem; color: var(--gray-500); } .auth-footer a { font-weight: 600; } .auth-error { background: var(--danger-bg); color: var(--danger); padding: 10px 16px; border-radius: var(--border-radius); font-size: 0.8125rem; font-weight: 500; margin-bottom: 16px; display: none; } .auth-error.visible { display: block; } /* Password Strength */ .password-strength { margin-top: 8px; } .password-strength-bar { display: flex; gap: 4px; margin-bottom: 4px; } .password-strength-segment { flex: 1; height: 4px; border-radius: 2px; background: var(--gray-200); transition: background var(--transition-fast); } .password-strength-segment.active.weak { background: var(--danger); } .password-strength-segment.active.fair { background: #f97316; } .password-strength-segment.active.good { background: var(--warning); } .password-strength-segment.active.strong { background: var(--secondary); } .password-strength-text { font-size: 0.7rem; color: var(--gray-500); } /* ── Classification Badge ─────────────────────────────────────────── */ .classification-preview { padding: 20px; border-radius: var(--border-radius-lg); border: 2px solid var(--gray-200); text-align: center; transition: all var(--transition); } .classification-preview.essential { border-color: var(--danger); background: var(--danger-bg); } .classification-preview.important { border-color: var(--warning); background: var(--warning-bg); } .classification-preview.not-applicable { border-color: var(--gray-300); background: var(--gray-50); } .classification-label { font-size: 1.5rem; font-weight: 800; } .classification-preview.essential .classification-label { color: var(--danger); } .classification-preview.important .classification-label { color: #a16207; } .classification-preview.not-applicable .classification-label { color: var(--gray-500); } .classification-desc { font-size: 0.8125rem; color: var(--gray-600); margin-top: 8px; line-height: 1.5; } /* ── Category Score Bars (Assessment) ─────────────────────────────── */ .category-score { margin-bottom: 16px; } .category-score-header { display: flex; justify-content: space-between; margin-bottom: 6px; } .category-score-name { font-size: 0.8125rem; font-weight: 600; color: var(--gray-700); } .category-score-value { font-size: 0.8125rem; font-weight: 700; } /* ── Empty State ──────────────────────────────────────────────────── */ .empty-state { text-align: center; padding: 48px 24px; color: var(--gray-400); } .empty-state svg { width: 64px; height: 64px; margin-bottom: 16px; opacity: 0.4; } .empty-state h4 { font-size: 1rem; color: var(--gray-600); margin-bottom: 8px; } .empty-state p { font-size: 0.875rem; max-width: 320px; margin: 0 auto; } /* ── Loading Spinner ──────────────────────────────────────────────── */ .spinner { width: 24px; height: 24px; border: 3px solid var(--gray-200); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.7s linear infinite; margin: 0 auto; } .spinner-lg { width: 40px; height: 40px; border-width: 4px; } @keyframes spin { to { transform: rotate(360deg); } } .loading-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, 0.8); display: flex; align-items: center; justify-content: center; z-index: 10; border-radius: inherit; } /* ── Grid Helpers ─────────────────────────────────────────────────── */ .grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; } .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; } /* ── Utility Classes ──────────────────────────────────────────────── */ .text-center { text-align: center; } .text-right { text-align: right; } .text-muted { color: var(--gray-500); } .text-primary { color: var(--primary); } .text-success { color: var(--secondary); } .text-danger { color: var(--danger); } .text-warning { color: #a16207; } .font-bold { font-weight: 700; } .font-semibold { font-weight: 600; } .mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mb-0 { margin-bottom: 0; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; } .p-16 { padding: 16px; } .p-24 { padding: 24px; } .gap-8 { gap: 8px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .flex { display: flex; } .flex-col { flex-direction: column; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .flex-1 { flex: 1; } .hidden { display: none !important; } .w-full { width: 100%; } /* ── Responsive ───────────────────────────────────────────────────── */ @media (max-width: 1024px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 768px) { .sidebar { transform: translateX(-100%); } .sidebar.open { transform: translateX(0); } .sidebar-toggle { display: flex; } .main-content { margin-left: 0; } .content-header { padding: 16px 20px; padding-left: 60px; } .content-body { padding: 16px 20px; } .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .grid-2, .grid-3 { grid-template-columns: 1fr; } .steps { overflow-x: auto; justify-content: flex-start; -webkit-overflow-scrolling: touch; } .form-radio-group { flex-direction: column; } .quick-actions { flex-direction: column; } .modal { width: 95%; margin: 16px; } .auth-card { max-width: 100%; } } @media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } .stat-card { padding: 16px; } } /* ── Page Load Transition ────────────────────────────────────────── */ .main-content { animation: fadeInUp 0.35s ease both; } @keyframes fadeInUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } /* ── Skeleton Loaders ────────────────────────────────────────────── */ .skeleton { background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%); background-size: 200% 100%; animation: shimmer 1.5s ease-in-out infinite; border-radius: var(--border-radius-sm); } .skeleton-text { height: 14px; margin-bottom: 8px; width: 80%; } .skeleton-text-sm { height: 10px; margin-bottom: 6px; width: 60%; } .skeleton-title { height: 20px; margin-bottom: 12px; width: 50%; } .skeleton-circle { border-radius: 50%; } .skeleton-card { padding: 24px; background: var(--card-bg); border-radius: var(--border-radius-lg); box-shadow: var(--card-shadow); } @keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } } /* ── Mobile Sidebar Backdrop ─────────────────────────────────────── */ .sidebar-backdrop { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(2px); z-index: 99; opacity: 0; transition: opacity var(--transition); } .sidebar-backdrop.visible { opacity: 1; } @media (max-width: 768px) { .sidebar-backdrop.visible { display: block; } } /* ── Focus Visible (Keyboard Accessibility) ──────────────────────── */ :focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; } .btn:focus-visible { box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.3); } .form-input:focus-visible, .form-select:focus-visible, .form-textarea:focus-visible { outline: none; } .sidebar-nav a:focus-visible { outline-offset: -2px; outline-color: var(--primary-light); } /* ── Button Loading State ────────────────────────────────────────── */ .btn.loading { position: relative; color: transparent !important; pointer-events: none; } .btn.loading::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, 0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.6s linear infinite; } .btn-secondary.loading::after, .btn-ghost.loading::after { border-color: rgba(0, 0, 0, 0.15); border-top-color: var(--gray-600); } /* ── Staggered Card Entrance ─────────────────────────────────────── */ .stats-grid > * { animation: fadeInUp 0.4s ease both; } .stats-grid > *:nth-child(1) { animation-delay: 0.05s; } .stats-grid > *:nth-child(2) { animation-delay: 0.1s; } .stats-grid > *:nth-child(3) { animation-delay: 0.15s; } .stats-grid > *:nth-child(4) { animation-delay: 0.2s; } /* ── Custom Scrollbar (Sidebar) ──────────────────────────────────── */ .sidebar::-webkit-scrollbar { width: 4px; } .sidebar::-webkit-scrollbar-track { background: transparent; } .sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 4px; } .sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); } /* ── Tooltip ─────────────────────────────────────────────────────── */ [data-tooltip] { position: relative; } [data-tooltip]::after { content: attr(data-tooltip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%) scale(0.95); background: var(--gray-800); color: #fff; padding: 5px 10px; border-radius: var(--border-radius-sm); font-size: 0.7rem; font-weight: 500; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity var(--transition-fast), transform var(--transition-fast); z-index: 50; } [data-tooltip]:hover::after { opacity: 1; transform: translateX(-50%) scale(1); } /* ── Clickable Table Rows ────────────────────────────────────────── */ tbody tr.clickable { cursor: pointer; } tbody tr.clickable:hover { background: var(--primary-bg); } tbody tr.clickable:active { background: rgba(26, 115, 232, 0.12); } /* ── Alert Banners ───────────────────────────────────────────────── */ .alert { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border-radius: var(--border-radius); font-size: 0.875rem; margin-bottom: 16px; border-left: 4px solid; } .alert-info { background: var(--info-bg); border-left-color: var(--info); color: var(--gray-700); } .alert-warning { background: var(--warning-bg); border-left-color: var(--warning); color: var(--gray-700); } .alert-danger { background: var(--danger-bg); border-left-color: var(--danger); color: var(--gray-700); } .alert-success { background: var(--secondary-bg); border-left-color: var(--secondary); color: var(--gray-700); } .alert svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; } /* ── Tabs ────────────────────────────────────────────────────────── */ .tabs { display: flex; border-bottom: 2px solid var(--gray-200); margin-bottom: 24px; overflow-x: auto; } .tab { padding: 10px 20px; font-size: 0.875rem; font-weight: 600; color: var(--gray-500); border-bottom: 2px solid transparent; margin-bottom: -2px; cursor: pointer; white-space: nowrap; transition: all var(--transition-fast); background: none; border-top: none; border-left: none; border-right: none; font-family: inherit; } .tab:hover { color: var(--gray-700); } .tab.active { color: var(--primary); border-bottom-color: var(--primary); } /* ── Print Styles ────────────────────────────────────────────────── */ @media print { .sidebar, .sidebar-toggle, .sidebar-backdrop, .content-header-actions, .notification-container, .modal-overlay, .btn { display: none !important; } .main-content { margin-left: 0 !important; animation: none !important; } .content-header { position: static; border-bottom: 2px solid #000; padding: 16px 0; } .content-body { padding: 16px 0; } .card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; } .stats-grid > * { animation: none !important; } body { background: #fff; color: #000; font-size: 12pt; } a { color: #000; text-decoration: underline; } .badge { border: 1px solid currentColor; } } /* ═══════════════════════════════════════════════════════════════════ Sistema Segnalazioni & Risoluzione AI (feedback.js) ═══════════════════════════════════════════════════════════════════ */ /* FAB */ #feedback-fab { position: fixed; bottom: 28px; right: 28px; z-index: 8000; width: 52px; height: 52px; border-radius: 50%; background: #ef4444; color: #fff; border: none; cursor: pointer; box-shadow: 0 4px 16px rgba(239,68,68,.4); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: background .2s, transform .15s, box-shadow .2s; } #feedback-fab:hover { background: #dc2626; transform: scale(1.08); box-shadow: 0 6px 20px rgba(239,68,68,.5); } #feedback-fab:active { transform: scale(.96); } /* Overlay */ .feedback-overlay { display: none; position: fixed; inset: 0; z-index: 9000; background: rgba(15,23,42,.6); backdrop-filter: blur(3px); align-items: center; justify-content: center; padding: 16px; } .feedback-overlay.active { display: flex; } /* Modal */ .feedback-modal { background: #1e293b; border: 1px solid rgba(239,68,68,.2); border-radius: 14px; width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; box-shadow: 0 24px 64px rgba(0,0,0,.4); color: #f8fafc; font-size: .9rem; } /* Modal header */ .feedback-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 0; border-bottom: 1px solid rgba(239,68,68,.12); gap: 8px; } .feedback-modal-tabs { display: flex; gap: 4px; flex-wrap: wrap; } .feedback-tab { background: none; border: none; color: #94a3b8; padding: 10px 14px; cursor: pointer; font-size: .82rem; font-weight: 500; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; white-space: nowrap; } .feedback-tab.active { color: #ef4444; border-bottom-color: #ef4444; } .feedback-tab:hover { color: #f8fafc; } .feedback-close { background: none; border: none; color: #64748b; cursor: pointer; font-size: 1rem; padding: 8px; border-radius: 6px; transition: color .2s, background .2s; flex-shrink: 0; } .feedback-close:hover { color: #f8fafc; background: rgba(255,255,255,.06); } /* Tab panes */ .feedback-tab-pane { padding: 20px; } /* Form elements */ .feedback-form-row { margin-bottom: 16px; } .feedback-label { display: block; font-size: .8rem; font-weight: 600; color: #94a3b8; margin-bottom: 6px; letter-spacing: .02em; text-transform: uppercase; } .feedback-required { color: #ef4444; } .feedback-hint { font-weight: 400; font-size: .75rem; text-transform: none; letter-spacing: 0; color: #64748b; margin-left: 6px; } .feedback-select, .feedback-textarea, .feedback-input { width: 100%; background: #0f172a; border: 1px solid rgba(239,68,68,.2); border-radius: 8px; color: #f8fafc; padding: 10px 12px; font-size: .875rem; font-family: inherit; transition: border-color .2s; box-sizing: border-box; } .feedback-select:focus, .feedback-textarea:focus, .feedback-input:focus { outline: none; border-color: #ef4444; box-shadow: 0 0 0 2px rgba(239,68,68,.15); } .feedback-textarea { resize: vertical; min-height: 100px; } .feedback-charcount { text-align: right; font-size: .72rem; color: #64748b; margin-top: 4px; } /* Drag-drop area */ .feedback-drop-area { border: 2px dashed rgba(239,68,68,.3); border-radius: 8px; padding: 20px; text-align: center; color: #64748b; font-size: .8rem; cursor: pointer; transition: border-color .2s, background .2s; position: relative; } .feedback-drop-area:hover, .feedback-drop-active { border-color: #ef4444; background: rgba(239,68,68,.04); } .feedback-drop-area i { font-size: 1.4rem; display: block; margin-bottom: 6px; color: #475569; } .feedback-file-label { color: #ef4444; cursor: pointer; text-decoration: underline; } .feedback-preview { position: relative; display: inline-block; margin-top: 10px; } .feedback-preview img { max-height: 120px; max-width: 100%; border-radius: 6px; border: 1px solid rgba(239,68,68,.3); } .feedback-remove-img { position: absolute; top: -6px; right: -6px; background: #ef4444; color: #fff; border: none; border-radius: 50%; width: 20px; height: 20px; font-size: .65rem; cursor: pointer; display: flex; align-items: center; justify-content: center; } /* Errors */ .feedback-error { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); border-radius: 6px; color: #fca5a5; padding: 10px 12px; font-size: .82rem; margin-top: 10px; } /* Form actions */ .feedback-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(239,68,68,.1); } .btn-primary-red { background: #ef4444; color: #fff; border: none; border-radius: 8px; padding: 10px 20px; font-size: .875rem; font-weight: 600; cursor: pointer; transition: background .2s; } .btn-primary-red:hover:not(:disabled) { background: #dc2626; } .btn-primary-red:disabled { opacity: .6; cursor: not-allowed; } .btn-ghost { background: none; color: #94a3b8; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 10px 16px; font-size: .875rem; font-weight: 500; cursor: pointer; transition: color .2s, border-color .2s; } .btn-ghost:hover { color: #f8fafc; border-color: rgba(255,255,255,.2); } .btn-success { background: #16a34a; color: #fff; border: none; border-radius: 8px; padding: 10px 20px; font-size: .875rem; font-weight: 600; cursor: pointer; transition: background .2s; } .btn-success:hover:not(:disabled) { background: #15803d; } .btn-success:disabled { opacity: .6; cursor: not-allowed; } /* Fase 2: risposta AI */ .feedback-ai-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.25); color: #fca5a5; padding: 5px 12px; border-radius: 20px; font-size: .78rem; font-weight: 600; margin-bottom: 14px; } .feedback-ai-box { background: rgba(6,182,212,.06); border: 1px solid rgba(6,182,212,.2); border-radius: 8px; padding: 14px; color: #cbd5e1; line-height: 1.6; font-size: .875rem; margin-bottom: 16px; } .feedback-resolve-question { color: #94a3b8; font-size: .85rem; margin: 0 0 12px; } .feedback-resolve-actions { display: flex; gap: 10px; flex-wrap: wrap; } .feedback-password-gate { margin-top: 16px; padding: 14px; background: rgba(239,68,68,.06); border: 1px solid rgba(239,68,68,.2); border-radius: 8px; } .feedback-password-row { display: flex; gap: 8px; margin-top: 8px; } .feedback-password-row .feedback-input { flex: 1; } .feedback-resolved-ok { display: flex; align-items: center; gap: 10px; background: rgba(22,163,74,.12); border: 1px solid rgba(22,163,74,.3); border-radius: 8px; color: #86efac; padding: 14px; margin-top: 16px; font-size: .9rem; } .feedback-resolved-ok i { font-size: 1.3rem; color: #22c55e; } /* "Le mie segnalazioni" tab */ .feedback-loading { color: #64748b; text-align: center; padding: 24px; font-size: .875rem; } .feedback-empty { color: #64748b; text-align: center; padding: 20px 0; font-size: .875rem; } .feedback-mine-row { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.05); } .feedback-mine-row:last-child { border-bottom: none; } .feedback-mine-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; } .feedback-mine-tipo { font-size: .78rem; color: #94a3b8; } .feedback-badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: .72rem; font-weight: 600; border: 1px solid; } .feedback-mine-date { font-size: .72rem; color: #475569; margin-left: auto; } .feedback-mine-desc { color: #cbd5e1; font-size: .85rem; margin: 0 0 6px; line-height: 1.5; } .feedback-mine-ai { background: rgba(6,182,212,.05); border-left: 3px solid rgba(6,182,212,.3); padding: 8px 10px; border-radius: 0 6px 6px 0; color: #94a3b8; font-size: .78rem; line-height: 1.5; } /* Responsive */ @media (max-width: 480px) { #feedback-fab { bottom: 20px; right: 20px; } .feedback-modal { border-radius: 10px; } .feedback-resolve-actions { flex-direction: column; } .feedback-password-row { flex-direction: column; } }