:root { --ink: #0F1218; --cyan: #00E5FF; --cyan-dark: #00B8D4; --white: #FFFFFF; --gray-100: #F2F4F7; --gray-500: #5B6573; --card-bg: #162240; --border-color: rgba(255, 255, 255, 0.1); --danger: #EF4444; --warning: #F59E0B; --success: #10B981; --sidebar-width: 260px; --header-height: 64px; --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif; --radius: 12px; --radius-sm: 8px; --radius-xs: 6px; --transition: 0.2s ease; } *, *::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-stack); background: var(--ink); color: var(--white); line-height: 1.6; min-height: 100vh; } a { color: var(--cyan); text-decoration: none; transition: color var(--transition); } a:hover { color: var(--cyan-dark); } ul, ol { list-style: none; } img { max-width: 100%; display: block; } button { font-family: var(--font-stack); cursor: pointer; border: none; outline: none; } input, textarea, select { font-family: var(--font-stack); outline: none; } h1, h2, h3, h4, h5, h6 { font-weight: 600; line-height: 1.3; } ::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.15); border-radius: 3px; } ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.25); } /* ===== LOGIN SCREEN ===== */ .login-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--ink); padding: 20px; } .login-container { width: 100%; max-width: 420px; } .login-logo { text-align: center; margin-bottom: 32px; } .login-logo-icon { width: 56px; height: 56px; background: var(--cyan); border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 28px; color: var(--ink); margin-bottom: 16px; } .login-logo h1 { font-size: 22px; font-weight: 700; color: var(--white); } .login-logo p { font-size: 14px; color: var(--gray-500); margin-top: 4px; } .login-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 36px 32px; } .login-card h2 { font-size: 20px; margin-bottom: 8px; } .login-card .login-subtitle { font-size: 14px; color: var(--gray-500); margin-bottom: 24px; } .form-group { margin-bottom: 20px; } .form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--gray-100); margin-bottom: 6px; } .form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 14px; background: var(--ink); border: 1px solid var(--border-color); border-radius: var(--radius-xs); color: var(--white); font-size: 14px; transition: border-color var(--transition); } .form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--cyan); } .form-group input::placeholder { color: var(--gray-500); } .form-hint { font-size: 12px; color: var(--gray-500); margin-top: 4px; } .form-row { display: flex; gap: 12px; } .form-row .form-group { flex: 1; } .login-footer { text-align: center; margin-top: 24px; font-size: 13px; color: var(--gray-500); } .login-footer a { font-weight: 500; } /* ===== APP LAYOUT ===== */ .app-layout { display: flex; min-height: 100vh; } /* ===== SIDEBAR ===== */ .sidebar { width: var(--sidebar-width); min-width: var(--sidebar-width); background: var(--ink); border-right: 1px solid var(--border-color); display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 100; overflow-y: auto; } .sidebar-header { padding: 20px 20px 16px; border-bottom: 1px solid var(--border-color); } .sidebar-logo { display: flex; align-items: center; gap: 10px; } .sidebar-logo-icon { width: 36px; height: 36px; background: var(--cyan); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--ink); flex-shrink: 0; } .sidebar-logo-text { font-size: 16px; font-weight: 700; color: var(--white); white-space: nowrap; } .sidebar-nav { padding: 12px 12px 0; flex: 1; } .sidebar-section-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-500); padding: 8px 12px 6px; } .nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px; color: var(--gray-500); transition: all var(--transition); cursor: pointer; } .nav-item:hover { background: rgba(255, 255, 255, 0.05); color: var(--white); } .nav-item.active { background: rgba(0, 229, 255, 0.1); color: var(--cyan); } .nav-item .nav-icon { width: 20px; text-align: center; font-size: 16px; flex-shrink: 0; } .nav-badge { margin-left: auto; background: var(--danger); color: var(--white); font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 10px; min-width: 20px; text-align: center; } .sidebar-footer { padding: 12px; border-top: 1px solid var(--border-color); } .sidebar-user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius-sm); transition: background var(--transition); cursor: pointer; } .sidebar-user:hover { background: rgba(255, 255, 255, 0.05); } .sidebar-user-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--cyan); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: var(--ink); flex-shrink: 0; } .sidebar-user-info { overflow: hidden; } .sidebar-user-name { font-size: 13px; font-weight: 600; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sidebar-user-role { font-size: 11px; color: var(--gray-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* ===== MAIN CONTENT AREA ===== */ .main-content { flex: 1; margin-left: var(--sidebar-width); min-width: 0; } /* ===== TOP HEADER BAR ===== */ .top-header { height: var(--header-height); background: var(--ink); border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; position: sticky; top: 0; z-index: 90; } .header-left { display: flex; align-items: center; gap: 16px; } .page-title { font-size: 18px; font-weight: 700; } .breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gray-500); } .breadcrumb a { color: var(--gray-500); } .breadcrumb a:hover { color: var(--cyan); } .breadcrumb .separator { color: var(--gray-500); } .header-right { display: flex; align-items: center; gap: 12px; } .header-search { position: relative; } .header-search input { padding: 8px 14px 8px 36px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: var(--white); font-size: 13px; width: 220px; transition: border-color var(--transition), width 0.3s ease; } .header-search input:focus { border-color: var(--cyan); width: 280px; } .header-search .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--gray-500); pointer-events: none; } .header-btn { width: 38px; height: 38px; border-radius: var(--radius-sm); background: var(--card-bg); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--gray-500); transition: all var(--transition); position: relative; } .header-btn:hover { color: var(--white); border-color: var(--cyan); } .header-btn.has-notification::after { content: ''; position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; background: var(--danger); border-radius: 50%; border: 2px solid var(--card-bg); } /* ===== PAGE CONTENT ===== */ .page-content { padding: 24px; } .section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; } .section-header h2 { font-size: 20px; } .section-header-actions { display: flex; gap: 8px; align-items: center; } /* ===== BUTTONS ===== */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px; font-size: 14px; font-weight: 500; border-radius: var(--radius-sm); transition: all var(--transition); white-space: nowrap; line-height: 1.4; } .btn-primary { background: var(--cyan); color: var(--ink); } .btn-primary:hover { background: var(--cyan-dark); } .btn-outline { background: transparent; color: var(--cyan); border: 1px solid var(--cyan); } .btn-outline:hover { background: rgba(0, 229, 255, 0.1); } .btn-success { background: var(--success); color: var(--white); } .btn-success:hover { opacity: 0.85; } .btn-danger { background: var(--danger); color: var(--white); } .btn-danger:hover { opacity: 0.85; } .btn-sm { padding: 5px 12px; font-size: 12px; border-radius: var(--radius-xs); } .btn-icon { width: 34px; height: 34px; padding: 0; border-radius: var(--radius-xs); } .btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; } /* ===== FILTERS BAR ===== */ .filters-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; } .filter-group { display: flex; align-items: center; gap: 8px; } .filter-group label { font-size: 13px; color: var(--gray-500); white-space: nowrap; } .filter-group select, .filter-group input { padding: 8px 12px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-xs); color: var(--white); font-size: 13px; min-width: 140px; } .filter-group select:focus, .filter-group input:focus { border-color: var(--cyan); } .filter-active-indicator { display: inline-block; width: 8px; height: 8px; background: var(--cyan); border-radius: 50%; } /* ===== STATS GRID ===== */ .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; } .stat-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 20px; transition: border-color var(--transition), transform var(--transition); } .stat-card:hover { border-color: var(--cyan); transform: translateY(-2px); } .stat-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; } .stat-card-icon { width: 42px; height: 42px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 20px; } .stat-card-icon.cyan { background: rgba(0, 229, 255, 0.15); color: var(--cyan); } .stat-card-icon.success { background: rgba(16, 185, 129, 0.15); color: var(--success); } .stat-card-icon.warning { background: rgba(245, 158, 11, 0.15); color: var(--warning); } .stat-card-icon.danger { background: rgba(239, 68, 68, 0.15); color: var(--danger); } .stat-card-change { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 20px; } .stat-card-change.up { color: var(--success); background: rgba(16, 185, 129, 0.1); } .stat-card-change.down { color: var(--danger); background: rgba(239, 68, 68, 0.1); } .stat-card-value { font-size: 28px; font-weight: 700; line-height: 1.2; } .stat-card-label { font-size: 13px; color: var(--gray-500); margin-top: 4px; } /* ===== TABLES ===== */ .table-container { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius); overflow: hidden; } .table-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border-color); } .table-header h3 { font-size: 16px; } .table-header-actions { display: flex; gap: 8px; } .table-wrapper { overflow-x: auto; } table { width: 100%; border-collapse: collapse; } table thead { background: rgba(255, 255, 255, 0.03); } table th { padding: 12px 16px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-500); text-align: left; white-space: nowrap; } table th.sortable { cursor: pointer; user-select: none; } table th.sortable:hover { color: var(--white); } table th.sortable .sort-arrow { font-size: 10px; margin-left: 4px; } table td { padding: 12px 16px; font-size: 14px; border-bottom: 1px solid var(--border-color); vertical-align: middle; } table tbody tr { transition: background var(--transition); } table tbody tr:hover { background: rgba(255, 255, 255, 0.03); } table tbody tr.status-completed { border-left: 3px solid var(--success); } table tbody tr.status-in_progress { border-left: 3px solid var(--cyan); } table tbody tr.status-pending { border-left: 3px solid var(--warning); } table tbody tr.status-overdue { border-left: 3px solid var(--danger); } .table-footer { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-top: 1px solid var(--border-color); font-size: 13px; color: var(--gray-500); } .pagination { display: flex; align-items: center; gap: 4px; } .pagination button { width: 32px; height: 32px; border-radius: var(--radius-xs); background: transparent; color: var(--gray-500); font-size: 13px; display: flex; align-items: center; justify-content: center; transition: all var(--transition); } .pagination button:hover { background: rgba(255, 255, 255, 0.05); color: var(--white); } .pagination button.active { background: var(--cyan); color: var(--ink); font-weight: 600; } .pagination button:disabled { opacity: 0.3; cursor: not-allowed; } /* ===== STATUS BADGES ===== */ .badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1.5; } .badge-dot { width: 6px; height: 6px; border-radius: 50%; } .badge-completed { background: rgba(16, 185, 129, 0.15); color: var(--success); } .badge-completed .badge-dot { background: var(--success); } .badge-in_progress { background: rgba(0, 229, 255, 0.15); color: var(--cyan); } .badge-in_progress .badge-dot { background: var(--cyan); } .badge-pending { background: rgba(245, 158, 11, 0.15); color: var(--warning); } .badge-pending .badge-dot { background: var(--warning); } .badge-overdue { background: rgba(239, 68, 68, 0.15); color: var(--danger); } .badge-overdue .badge-dot { background: var(--danger); } /* ===== ANALYTICS CHART BARS ===== */ .chart-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 24px; } .chart-card h3 { font-size: 16px; margin-bottom: 20px; } .chart-bars { display: flex; align-items: flex-end; gap: 12px; height: 200px; padding-top: 20px; } .chart-bar-group { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; } .chart-bar { width: 100%; max-width: 48px; border-radius: 6px 6px 0 0; background: var(--cyan); transition: height 0.4s ease, background var(--transition); position: relative; min-height: 4px; } .chart-bar:hover { background: var(--cyan-dark); } .chart-bar-value { font-size: 11px; font-weight: 600; margin-bottom: 4px; color: var(--gray-100); } .chart-bar-label { font-size: 11px; color: var(--gray-500); margin-top: 8px; text-align: center; } .chart-bar.warning-bar { background: var(--warning); } .chart-bar.danger-bar { background: var(--danger); } .chart-bar.success-bar { background: var(--success); } /* ===== MODAL ===== */ .modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; } .modal-box { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius); width: 100%; max-width: 560px; max-height: 90vh; display: flex; flex-direction: column; animation: modalIn 0.2s ease; } @keyframes modalIn { from { opacity: 0; transform: translateY(-16px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } } .modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border-color); } .modal-header h3 { font-size: 18px; } .modal-close { width: 32px; height: 32px; border-radius: var(--radius-xs); background: transparent; color: var(--gray-500); font-size: 20px; display: flex; align-items: center; justify-content: center; transition: all var(--transition); } .modal-close:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); } .modal-body { padding: 24px; overflow-y: auto; flex: 1; } .modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 16px 24px; border-top: 1px solid var(--border-color); } .modal-lg { max-width: 720px; } .modal-sm { max-width: 400px; } /* ===== NOTIFICATIONS PANEL ===== */ .notifications-toggle { position: relative; } .notifications-panel { position: absolute; top: calc(100% + 12px); right: 0; width: 360px; max-height: 480px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius); overflow: hidden; z-index: 200; animation: modalIn 0.15s ease; } .notifications-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border-color); } .notifications-header h4 { font-size: 15px; } .notifications-mark-read { font-size: 12px; color: var(--cyan); cursor: pointer; background: none; } .notifications-mark-read:hover { color: var(--cyan-dark); } .notifications-list { max-height: 380px; overflow-y: auto; } .notification-item { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border-color); transition: background var(--transition); cursor: pointer; } .notification-item:hover { background: rgba(255, 255, 255, 0.03); } .notification-item.unread { background: rgba(0, 229, 255, 0.05); } .notification-item.unread::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 4px; background: var(--cyan); border-radius: 50%; } .notification-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; } .notification-icon.info { background: rgba(0, 229, 255, 0.15); color: var(--cyan); } .notification-icon.warning { background: rgba(245, 158, 11, 0.15); color: var(--warning); } .notification-icon.danger { background: rgba(239, 68, 68, 0.15); color: var(--danger); } .notification-icon.success { background: rgba(16, 185, 129, 0.15); color: var(--success); } .notification-content { flex: 1; min-width: 0; } .notification-text { font-size: 13px; line-height: 1.4; } .notification-time { font-size: 11px; color: var(--gray-500); margin-top: 2px; } .notifications-footer { padding: 12px 16px; border-top: 1px solid var(--border-color); text-align: center; } .notifications-footer a { font-size: 13px; font-weight: 500; } /* ===== AI CHAT ===== */ .chat-container { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius); display: flex; flex-direction: column; height: 500px; overflow: hidden; } .chat-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--border-color); } .chat-header-info { display: flex; align-items: center; gap: 10px; } .chat-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--cyan); display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--ink); } .chat-header-text h4 { font-size: 14px; } .chat-header-text span { font-size: 11px; color: var(--success); display: flex; align-items: center; gap: 4px; } .chat-header-text span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--success); } .chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; } .chat-message { display: flex; gap: 10px; max-width: 85%; } .chat-message.user { align-self: flex-end; flex-direction: row-reverse; } .chat-message-avatar { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; } .chat-message.bot .chat-message-avatar { background: var(--cyan); color: var(--ink); } .chat-message.user .chat-message-avatar { background: var(--gray-500); color: var(--white); } .chat-bubble { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; line-height: 1.5; } .chat-message.bot .chat-bubble { background: rgba(255, 255, 255, 0.05); color: var(--white); border-top-left-radius: 2px; } .chat-message.user .chat-bubble { background: rgba(0, 229, 255, 0.15); color: var(--white); border-top-right-radius: 2px; } .chat-bubble-time { font-size: 10px; color: var(--gray-500); margin-top: 4px; } .chat-input-area { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--border-color); } .chat-input-area input { flex: 1; padding: 10px 14px; background: var(--ink); border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: var(--white); font-size: 14px; } .chat-input-area input:focus { border-color: var(--cyan); } .chat-input-area input::placeholder { color: var(--gray-500); } .chat-send-btn { width: 38px; height: 38px; border-radius: var(--radius-sm); background: var(--cyan); color: var(--ink); font-size: 18px; display: flex; align-items: center; justify-content: center; transition: background var(--transition); } .chat-send-btn:hover { background: var(--cyan-dark); } .chat-typing-indicator { display: flex; align-items: center; gap: 4px; padding: 10px 14px; } .chat-typing-indicator span { width: 7px; height: 7px; border-radius: 50%; background: var(--gray-500); animation: typingBounce 1.4s infinite ease-in-out both; } .chat-typing-indicator span:nth-child(1) { animation-delay: -0.32s; } .chat-typing-indicator span:nth-child(2) { animation-delay: -0.16s; } @keyframes typingBounce { 0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; } 40% { transform: scale(1); opacity: 1; } } /* ===== HSE CONFIG SECTION ===== */ .config-section { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius); margin-bottom: 24px; overflow: hidden; } .config-section-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border-color); cursor: pointer; user-select: none; } .config-section-header:hover { background: rgba(255, 255, 255, 0.02); } .config-section-header h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; } .config-section-arrow { font-size: 14px; transition: transform var(--transition); color: var(--gray-500); } .config-section.open .config-section-arrow { transform: rotate(90deg); } .config-section-body { padding: 20px; } .config-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; } .config-field { display: flex; flex-direction: column; gap: 6px; } .config-field label { font-size: 13px; font-weight: 500; color: var(--gray-100); } .config-field input, .config-field select, .config-field textarea { padding: 9px 12px; background: var(--ink); border: 1px solid var(--border-color); border-radius: var(--radius-xs); color: var(--white); font-size: 14px; } .config-field input:focus, .config-field select:focus, .config-field textarea:focus { border-color: var(--cyan); } .config-field textarea { resize: vertical; min-height: 80px; } .config-field .hint { font-size: 12px; color: var(--gray-500); } .config-actions { display: flex; gap: 8px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border-color); } .config-toggle { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; } .config-toggle input { display: none; } .config-toggle-slider { width: 44px; height: 24px; background: var(--ink); border: 1px solid var(--border-color); border-radius: 12px; position: relative; transition: background var(--transition), border-color var(--transition); } .config-toggle-slider::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--gray-500); transition: transform var(--transition), background var(--transition); } .config-toggle input:checked + .config-toggle-slider { background: rgba(0, 229, 255, 0.2); border-color: var(--cyan); } .config-toggle input:checked + .config-toggle-slider::after { transform: translateX(20px); background: var(--cyan); } .config-toggle-label { font-size: 13px; color: var(--white); } /* ===== FILE LIST ===== */ .file-list { display: flex; flex-direction: column; gap: 4px; } .file-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-xs); transition: background var(--transition); cursor: pointer; } .file-item:hover { background: rgba(255, 255, 255, 0.03); } .file-icon { width: 38px; height: 38px; border-radius: var(--radius-xs); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; } .file-icon.pdf { background: rgba(239, 68, 68, 0.15); color: var(--danger); } .file-icon.image { background: rgba(0, 229, 255, 0.15); color: var(--cyan); } .file-icon.doc { background: rgba(16, 185, 129, 0.15); color: var(--success); } .file-icon.sheet { background: rgba(245, 158, 11, 0.15); color: var(--warning); } .file-info { flex: 1; min-width: 0; } .file-name { font-size: 14px; font-weight: 500; } .file-meta { font-size: 12px; color: var(--gray-500); display: flex; gap: 8px; } .file-actions { display: flex; gap: 4px; } .file-actions button { width: 30px; height: 30px; border-radius: var(--radius-xs); background: transparent; color: var(--gray-500); font-size: 14px; display: flex; align-items: center; justify-content: center; transition: all var(--transition); } .file-actions button:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); } .file-upload-zone { border: 2px dashed var(--border-color); border-radius: var(--radius); padding: 40px 20px; text-align: center; transition: border-color var(--transition); cursor: pointer; } .file-upload-zone:hover { border-color: var(--cyan); } .file-upload-zone .upload-icon { font-size: 40px; margin-bottom: 12px; color: var(--gray-500); } .file-upload-zone p { font-size: 14px; color: var(--gray-500); } .file-upload-zone .upload-link { color: var(--cyan); font-weight: 500; } /* ===== EMPTY STATE ===== */ .empty-state { text-align: center; padding: 48px 20px; color: var(--gray-500); } .empty-state-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.4; } .empty-state h4 { font-size: 16px; color: var(--white); margin-bottom: 4px; } .empty-state p { font-size: 14px; max-width: 320px; margin: 0 auto 16px; } /* ===== LOADING SPINNER ===== */ .spinner { width: 20px; height: 20px; border: 2px solid rgba(255, 255, 255, 0.2); border-top-color: var(--cyan); border-radius: 50%; animation: spin 0.6s linear infinite; } .spinner-lg { width: 36px; height: 36px; border-width: 3px; } @keyframes spin { to { transform: rotate(360deg); } } .loading-screen { display: flex; align-items: center; justify-content: center; min-height: 300px; } /* ===== TABS ===== */ .tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border-color); margin-bottom: 20px; } .tab { padding: 10px 20px; font-size: 14px; font-weight: 500; color: var(--gray-500); border-bottom: 2px solid transparent; transition: all var(--transition); cursor: pointer; background: none; } .tab:hover { color: var(--white); } .tab.active { color: var(--cyan); border-bottom-color: var(--cyan); } /* ===== TOOLTIP ===== */ .tooltip { position: relative; } .tooltip::after { content: attr(data-tooltip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); padding: 6px 10px; background: var(--ink); border: 1px solid var(--border-color); border-radius: var(--radius-xs); font-size: 12px; color: var(--white); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity var(--transition); } .tooltip:hover::after { opacity: 1; } /* ===== PROGRESS BAR ===== */ .progress-bar { height: 8px; background: rgba(255, 255, 255, 0.05); border-radius: 4px; overflow: hidden; } .progress-bar-fill { height: 100%; border-radius: 4px; transition: width 0.4s ease; } .progress-bar-fill.cyan { background: var(--cyan); } .progress-bar-fill.success { background: var(--success); } .progress-bar-fill.warning { background: var(--warning); } .progress-bar-fill.danger { background: var(--danger); } /* ===== ALERT BANNERS ===== */ .alert { padding: 12px 16px; border-radius: var(--radius-xs); font-size: 14px; display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; } .alert-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; } .alert-info { background: rgba(0, 229, 255, 0.1); border: 1px solid rgba(0, 229, 255, 0.2); color: var(--cyan); } .alert-success { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.2); color: var(--success); } .alert-warning { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.2); color: var(--warning); } .alert-danger { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); color: var(--danger); } /* ===== INFO ROW / DETAIL ===== */ .info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; } .info-item { display: flex; flex-direction: column; gap: 2px; } .info-label { font-size: 12px; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.3px; } .info-value { font-size: 14px; color: var(--white); } /* ===== SEVERITY INDICATORS ===== */ .severity-critical { color: var(--danger); font-weight: 600; } .severity-high { color: var(--warning); font-weight: 600; } .severity-medium { color: var(--cyan); font-weight: 600; } .severity-low { color: var(--success); font-weight: 600; } /* ===== MOBILE MENU ===== */ .mobile-menu-btn { display: none; width: 38px; height: 38px; border-radius: var(--radius-xs); background: transparent; color: var(--white); font-size: 20px; align-items: center; justify-content: center; } /* ===== RESPONSIVE ===== */ @media (max-width: 768px) { :root { --sidebar-width: 0px; } .sidebar { transform: translateX(-100%); transition: transform 0.3s ease; width: 260px; min-width: 260px; left: 0; } .sidebar.mobile-open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5); } .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 99; } .sidebar-overlay.visible { display: block; } .main-content { margin-left: 0; } .mobile-menu-btn { display: flex; } .top-header { padding: 0 16px; } .page-content { padding: 16px; } .header-search input { width: 140px; } .header-search input:focus { width: 180px; } .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .stat-card { padding: 14px; } .stat-card-value { font-size: 22px; } .section-header { flex-direction: column; align-items: flex-start; } .filters-bar { flex-direction: column; align-items: flex-start; } .filter-group select, .filter-group input { width: 100%; min-width: 0; } .chat-container { height: 400px; } .chat-message { max-width: 90%; } .modal-box { max-width: 100%; margin: 10px; max-height: 85vh; } .notifications-panel { width: 300px; right: -60px; } .config-grid { grid-template-columns: 1fr; } .info-grid { grid-template-columns: 1fr; } .table-wrapper { font-size: 12px; } table th, table td { padding: 8px 10px; font-size: 12px; } .form-row { flex-direction: column; gap: 0; } .login-card { padding: 24px 20px; } } /* ===== UTILITY ===== */ .text-cyan { color: var(--cyan); } .text-success { color: var(--success); } .text-warning { color: var(--warning); } .text-danger { color: var(--danger); } .text-gray { color: var(--gray-500); } .text-sm { font-size: 13px; } .text-xs { font-size: 11px; } .text-center { text-align: center; } .text-right { text-align: right; } .font-medium { font-weight: 500; } .font-semibold { font-weight: 600; } .font-bold { font-weight: 700; } .mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .flex { display: flex; } .flex-col { flex-direction: column; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .justify-center { justify-content: center; } .flex-1 { flex: 1; } .w-full { width: 100%; } .hidden { display: none; } .truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .animate-fade-in { animation: fadeIn 0.3s ease; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .animate-slide-up { animation: slideUp 0.3s ease; } @keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }