/* ========================================================================== ServerManager - Theme Variables ========================================================================== */ :root, [data-theme="dark"] { --bg-primary: #0f1117; --bg-secondary: #161822; --bg-tertiary: #1c1f2e; --bg-card: #1a1d2b; --bg-hover: #22263b; --bg-input: #1c1f2e; --border-color: #2a2d3d; --border-light: #323550; --text-primary: #e1e4ed; --text-secondary: #9ca3af; --text-muted: #6b7280; --accent: #6366f1; --accent-hover: #818cf8; --accent-light: rgba(99, 102, 241, 0.15); --success: #22c55e; --success-bg: rgba(34, 197, 94, 0.15); --warning: #f59e0b; --warning-bg: rgba(245, 158, 11, 0.15); --danger: #ef4444; --danger-bg: rgba(239, 68, 68, 0.15); --info: #3b82f6; --info-bg: rgba(59, 130, 246, 0.15); --purple: #8b5cf6; --purple-bg: rgba(139, 92, 246, 0.15); --sidebar-width: 260px; --sidebar-collapsed: 68px; --topbar-height: 60px; --radius-sm: 6px; --radius: 8px; --radius-lg: 12px; --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3); --shadow: 0 4px 6px rgba(0, 0, 0, 0.3); --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4); --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace; --transition: 0.2s ease; } [data-theme="light"] { --bg-primary: #f8f9fc; --bg-secondary: #ffffff; --bg-tertiary: #f0f1f5; --bg-card: #ffffff; --bg-hover: #eef0f4; --bg-input: #ffffff; --border-color: #d1d5db; --border-light: #e5e7eb; --text-primary: #111827; --text-secondary: #4b5563; --text-muted: #9ca3af; --accent: #4f46e5; --accent-hover: #6366f1; --accent-light: rgba(79, 70, 229, 0.08); --success: #16a34a; --success-bg: rgba(22, 163, 74, 0.08); --warning: #d97706; --warning-bg: rgba(217, 119, 6, 0.08); --danger: #dc2626; --danger-bg: rgba(220, 38, 38, 0.08); --info: #2563eb; --info-bg: rgba(37, 99, 235, 0.08); --purple: #7c3aed; --purple-bg: rgba(124, 58, 237, 0.08); --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06); --shadow: 0 4px 6px rgba(0, 0, 0, 0.07); --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1); } *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; } html { font-size: 14px; } body { font-family: var(--font-sans); background: var(--bg-primary); color: var(--text-primary); line-height: 1.6; min-height: 100vh; overflow-x: hidden; } a { color: var(--accent); text-decoration: none; transition: color var(--transition); } a:hover { color: var(--accent-hover); } code, pre { font-family: var(--font-mono); font-size: 0.88em; } /* App Container */ .app-layout { display: flex; min-height: 100vh; } /* ========================================================================== Sidebar ========================================================================== */ .sidebar { width: var(--sidebar-width); background: var(--bg-secondary); border-right: 1px solid var(--border-color); display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 100; transition: width var(--transition), transform var(--transition); overflow: hidden; } .sidebar::-webkit-scrollbar { width: 4px; } .sidebar::-webkit-scrollbar-thumb { background: transparent; } .sidebar:hover::-webkit-scrollbar-thumb { background: var(--border-color); } .sidebar.collapsed { width: var(--sidebar-collapsed); } .sidebar.collapsed .sidebar-header::after { display: none; } .sidebar-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border-color); height: var(--topbar-height); min-height: var(--topbar-height); position: relative; } .sidebar-header::after { content: ''; position: absolute; bottom: -1px; left: 1.25rem; right: 1.25rem; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); border-radius: 1px; } .sidebar-brand { display: flex; align-items: center; gap: 0.75rem; color: var(--text-primary); font-weight: 700; font-size: 1.2rem; white-space: nowrap; text-decoration: none; } .sidebar-brand i { font-size: 1.5rem; color: var(--accent); } .nav-item i, .nav-sub-item i, .nav-item-toggle i { pointer-events: none; } .sidebar-nav { flex: 1; overflow-y: auto; padding: 0.75rem 0; } .sidebar-footer { border-top: 1px solid var(--border-color); padding: 0.75rem 1rem; } .user-info { display: flex; align-items: center; gap: 0.6rem; } .user-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; flex-shrink: 0; } .user-details { flex: 1; min-width: 0; display: flex; flex-direction: column; } .user-name { font-weight: 600; font-size: 0.85rem; color: var(--text-primary); line-height: 1.2; } .user-role { font-size: 0.72rem; color: var(--text-muted); line-height: 1.2; } .user-menu { display: flex; gap: 0.25rem; flex-shrink: 0; } .user-menu a { color: var(--text-muted); padding: 0.25rem; font-size: 0.85rem; transition: color var(--transition); } .user-menu a:hover { color: var(--text-primary); } .nav-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 1.25rem; margin: 0 0.5rem; color: var(--text-secondary); border-radius: var(--radius-sm); transition: all var(--transition); font-size: 0.9rem; white-space: nowrap; text-decoration: none; position: relative; } .nav-item i { width: 20px; text-align: center; flex-shrink: 0; font-size: 1rem; } .nav-item:hover { color: var(--text-primary); background: var(--bg-hover); } .nav-item.active { color: var(--accent); background: var(--accent-light); font-weight: 600; } .nav-item.active::before { content: ''; position: absolute; left: -0.5rem; top: 50%; transform: translateY(-50%); width: 3px; height: 20px; background: var(--accent); border-radius: 0 2px 2px 0; } .nav-divider { height: 1px; background: var(--border-color); margin: 0.5rem 1rem; opacity: 0.5; } .nav-section { padding: 0.6rem 1.25rem 0.35rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-weight: 700; white-space: nowrap; } /* Collapsed state */ .sidebar.collapsed .nav-item span, .sidebar.collapsed .nav-chevron, .sidebar.collapsed .notification-badge, .sidebar.collapsed .nav-divider, .sidebar.collapsed .nav-section { display: none; } .sidebar.collapsed .sidebar-brand { justify-content: center; } .sidebar.collapsed .nav-item { justify-content: center; padding: 0.65rem; margin: 0 0.35rem; } /* ========================================================================== Main Content ========================================================================== */ .main-area { flex: 1; margin-left: var(--sidebar-width); transition: margin-left var(--transition); min-height: 100vh; display: flex; flex-direction: column; } .sidebar.collapsed ~ .main-area { margin-left: var(--sidebar-collapsed); } /* ========================================================================== Top Bar ========================================================================== */ .topbar { height: var(--topbar-height); background: var(--bg-secondary); border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; padding: 0 1.5rem; position: sticky; top: 0; z-index: 50; } .topbar-left { display: flex; align-items: center; gap: 1rem; } .topbar-right { display: flex; align-items: center; gap: 0.5rem; } .topbar-user { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; color: var(--text-secondary); white-space: nowrap; cursor: pointer; background: none; border: none; font-family: inherit; padding: 0.4rem 0.6rem; border-radius: var(--radius-sm); transition: background var(--transition); } .topbar-user:hover { background: var(--bg-hover); } .topbar-user-dropdown { position: relative; } .dropdown-menu-right { right: 0; left: auto; } .dropdown-header { padding: 0.55rem 1rem; font-size: 0.88rem; display: flex; flex-direction: column; gap: 2px; } .dropdown-header small { font-size: 0.72rem; color: var(--text-muted); } .btn-icon { background: none; border: none; color: var(--text-secondary); cursor: pointer; padding: 0.5rem; border-radius: var(--radius-sm); font-size: 1rem; transition: all var(--transition); } .btn-icon:hover { color: var(--text-primary); background: var(--bg-hover); } /* ========================================================================== Content Area ========================================================================== */ .page-content { flex: 1; padding: 1.5rem; } .container { max-width: 100%; } /* ========================================================================== Page Header ========================================================================== */ .page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; } .page-title { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.25rem; } .page-subtitle { color: var(--text-muted); font-size: 0.9rem; } .back-link { margin-bottom: 0.5rem; } .back-link a { font-size: 0.85rem; color: var(--text-muted); transition: color var(--transition); } .back-link a:hover { color: var(--accent); } /* ========================================================================== Stats Grid ========================================================================== */ .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; } .stat-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 1.25rem; display: flex; align-items: center; gap: 1rem; transition: transform var(--transition), box-shadow var(--transition); } .stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); } .stat-icon { width: 48px; height: 48px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; } .stat-card-primary .stat-icon { background: var(--accent-light); color: var(--accent); } .stat-card-success .stat-icon { background: var(--success-bg); color: var(--success); } .stat-card-danger .stat-icon { background: var(--danger-bg); color: var(--danger); } .stat-card-warning .stat-icon { background: var(--warning-bg); color: var(--warning); } .stat-card-info .stat-icon { background: var(--info-bg); color: var(--info); } .stat-card-purple .stat-icon { background: var(--purple-bg); color: var(--purple); } .stat-info { display: flex; flex-direction: column; } .stat-value { font-size: 1.5rem; font-weight: 700; line-height: 1.2; } .stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; } /* ========================================================================== Dashboard Grid ========================================================================== */ .dashboard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } .dashboard-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); overflow: hidden; } .dashboard-card.full-width { grid-column: 1 / -1; } /* ========================================================================== Cards ========================================================================== */ .card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); margin-bottom: 1.25rem; } .card-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border-color); } .card-header h2, .card-header h3 { font-size: 1rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; } .card-header h2 i, .card-header h3 i { color: var(--accent); } .card-body { padding: 1.25rem; } .card-filters { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; } /* ========================================================================== Tables ========================================================================== */ .table-responsive { overflow-x: auto; } .table { width: 100%; border-collapse: collapse; } .table th { text-align: left; padding: 0.7rem 1rem; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 600; border-bottom: 2px solid var(--border-color); white-space: nowrap; } .table td { padding: 0.7rem 1rem; border-bottom: 1px solid var(--border-color); font-size: 0.9rem; vertical-align: middle; } .table tbody tr:hover { background: rgba(255, 255, 255, 0.02); } .table-hover tbody tr:hover { background: rgba(255, 255, 255, 0.04); } .table-sm th, .table-sm td { padding: 0.5rem 0.75rem; font-size: 0.82rem; } .actions-cell { white-space: nowrap; } /* ========================================================================== Buttons ========================================================================== */ .btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 1rem; font-size: 0.88rem; font-weight: 500; border: 1px solid transparent; border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition); white-space: nowrap; text-decoration: none; font-family: inherit; line-height: 1.4; } .btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); } .btn-primary { background: var(--accent); color: white; border-color: var(--accent); } .btn-primary:hover { background: var(--accent-hover); color: white; } .btn-secondary { background: var(--bg-tertiary); color: var(--text-primary); border-color: var(--border-color); } .btn-secondary:hover { background: var(--bg-hover); color: var(--text-primary); } .btn-dark { background: #1a1a2e; color: var(--text-primary); border-color: var(--border-color); } .btn-dark:hover { background: #16213e; color: var(--text-primary); } .btn-danger { background: var(--danger); color: white; border-color: var(--danger); } .btn-danger:hover { background: #dc2626; color: white; } .btn-warning { background: var(--warning); color: #1a1a1a; border-color: var(--warning); } .btn-sm { padding: 0.35rem 0.65rem; font-size: 0.8rem; } .btn-xs { padding: 0.25rem 0.5rem; font-size: 0.75rem; border-radius: 4px; } .btn-block { width: 100%; justify-content: center; } .btn-group { display: flex; gap: 0.25rem; align-items: center; } /* ========================================================================== Forms ========================================================================== */ .form { max-width: 100%; } .form-section { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); } .form-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; } .form-section h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; } .form-section h3 i { color: var(--accent); } .form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 1rem; } .form-row-3 { grid-template-columns: repeat(3, 1fr); } .form-group { margin-bottom: 1rem; } .form-group label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 0.35rem; } .form-input, .form-select { width: 100%; padding: 0.55rem 0.75rem; background: var(--bg-input); border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: var(--text-primary); font-size: 0.9rem; font-family: inherit; transition: border-color var(--transition), box-shadow var(--transition); } .form-input:focus, .form-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2); } .form-input::placeholder { color: var(--text-muted); } .form-select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 2rem; } textarea.form-input { resize: vertical; min-height: 80px; } .form-hint { display: block; font-size: 0.78rem; color: var(--text-muted); margin-top: 0.3rem; } .input-group { position: relative; display: flex; } .input-group .form-input { flex: 1; padding-right: 2.5rem; } .input-toggle-password { position: absolute; right: 0; top: 0; bottom: 0; background: none; border: none; color: var(--text-muted); padding: 0 0.75rem; cursor: pointer; display: flex; align-items: center; } .input-toggle-password:hover { color: var(--text-primary); } .checkbox-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.9rem; } .checkbox-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; } .font-mono { font-family: var(--font-mono) !important; font-size: 0.8rem !important; } .search-box { position: relative; min-width: 220px; } .search-box i { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 0.85rem; } .search-box .form-input { padding-left: 2.25rem; } .form-actions { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.5rem; } /* Auth method tabs */ .auth-method-tabs { display: flex; gap: 0; margin-bottom: 1rem; border: 1px solid var(--border-color); border-radius: var(--radius-sm); overflow: hidden; width: fit-content; } .auth-method-tabs .tab { padding: 0.45rem 1rem; background: var(--bg-tertiary); border: none; color: var(--text-muted); cursor: pointer; font-size: 0.82rem; font-weight: 500; transition: all var(--transition); font-family: inherit; } .auth-method-tabs .tab.active { background: var(--accent); color: white; } .auth-method-content { padding-top: 0.5rem; } /* ========================================================================== Status Badges ========================================================================== */ .status-badge { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.6rem; border-radius: 100px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; } .status-online { background: var(--success-bg); color: var(--success); } .status-offline { background: var(--danger-bg); color: var(--danger); } .status-unknown { background: rgba(156, 163, 175, 0.15); color: #9ca3af; } .badge { display: inline-flex; padding: 0.15rem 0.5rem; border-radius: 100px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; } .badge-success { background: var(--success-bg); color: var(--success); } .badge-danger { background: var(--danger-bg); color: var(--danger); } .badge-warning { background: var(--warning-bg); color: var(--warning); } .badge-info { background: var(--info-bg); color: var(--info); } .badge-purple { background: var(--purple-bg); color: var(--purple); } .badge-secondary { background: rgba(156, 163, 175, 0.15); color: #9ca3af; } /* ========================================================================== Mini Progress ========================================================================== */ .mini-progress { display: flex; align-items: center; gap: 0.5rem; min-width: 80px; } .mini-progress-bar { height: 4px; background: var(--accent); border-radius: 2px; transition: width 0.5s ease; min-width: 4px; } .mini-progress-blue .mini-progress-bar { background: var(--info); } .mini-progress-purple .mini-progress-bar { background: var(--purple); } .mini-progress span { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; } /* ========================================================================== Server Name Link ========================================================================== */ .server-name-link { color: var(--text-primary); font-weight: 500; } .server-name-link:hover { color: var(--accent); } /* ========================================================================== Details List ========================================================================== */ .details-list { display: grid; grid-template-columns: 130px 1fr; gap: 0.5rem 1rem; } .details-list dt { color: var(--text-muted); font-size: 0.85rem; font-weight: 500; } .details-list dd { font-size: 0.9rem; } .details-list-lg dt { width: 160px; } /* ========================================================================== Dropdown ========================================================================== */ .dropdown { position: relative; display: inline-block; } .dropdown-menu { display: none; position: absolute; right: 0; top: 100%; margin-top: 0.25rem; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); min-width: 180px; z-index: 200; box-shadow: var(--shadow-lg); } .dropdown.active .dropdown-menu, .dropdown-menu.open { display: block; } .dropdown-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1rem; color: var(--text-secondary); cursor: pointer; transition: background var(--transition); font-size: 0.88rem; border: none; background: none; width: 100%; text-align: left; font-family: inherit; } .dropdown-item:hover { background: var(--bg-hover); color: var(--text-primary); } .dropdown-divider { height: 1px; background: var(--border-color); margin: 0.25rem 0; } .text-danger { color: var(--danger) !important; } /* ========================================================================== Toast Notifications ========================================================================== */ .toast { background: var(--bg-tertiary); border: 1px solid var(--border-color); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 0.85rem 1rem; margin-bottom: 0.75rem; display: flex; align-items: center; justify-content: space-between; box-shadow: var(--shadow); animation: slideIn 0.3s ease; } .toast-success { border-left-color: var(--success); } .toast-error { border-left-color: var(--danger); } .toast-warning { border-left-color: var(--warning); } .toast-info { border-left-color: var(--info); } .toast-body { display: flex; align-items: center; gap: 0.5rem; } .toast-success .toast-body i { color: var(--success); } .toast-error .toast-body i { color: var(--danger); } .toast-warning .toast-body i { color: var(--warning); } .toast-info .toast-body i { color: var(--info); } .toast-close { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.1rem; padding: 0 0.25rem; } .toast-container { position: fixed; top: 1rem; right: 1rem; z-index: 9999; max-width: 400px; width: 100%; } /* ========================================================================== Pagination ========================================================================== */ .pagination { display: flex; gap: 0.25rem; justify-content: center; margin-top: 1rem; } .page-link { padding: 0.4rem 0.75rem; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: var(--text-secondary); font-size: 0.85rem; transition: all var(--transition); } .page-link:hover { background: var(--bg-hover); color: var(--text-primary); } .page-link.active { background: var(--accent); border-color: var(--accent); color: white; } /* ========================================================================== Modal ========================================================================== */ .modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.7); z-index: 1000; align-items: center; justify-content: center; padding: 1rem; } .modal-dialog { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); width: 100%; max-width: 500px; box-shadow: var(--shadow-lg); } .modal-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border-color); } .modal-header h3 { font-size: 1.1rem; } .modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; padding: 0; line-height: 1; } .modal-close:hover { color: var(--text-primary); } .modal-body { padding: 1.25rem; } .modal-footer { padding: 1rem 1.25rem; border-top: 1px solid var(--border-color); display: flex; justify-content: flex-end; gap: 0.5rem; } /* ========================================================================== Progress Bars ========================================================================== */ .progress-bar { height: 6px; background: var(--bg-tertiary); border-radius: 3px; overflow: hidden; margin-top: 0.4rem; } .progress-fill { height: 100%; border-radius: 3px; transition: width 0.5s ease; } .progress-success { background: var(--success); } .progress-warning { background: var(--warning); } .progress-danger { background: var(--danger); } .metric-block { padding: 0.5rem 0; } .metric-block:first-child { padding-top: 0; } .metric-info { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; } .metric-label { color: var(--text-secondary); } .metric-value { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-primary); } /* ========================================================================== Log Viewer ========================================================================== */ .log-viewer { background: #0a0a0f; border: 1px solid var(--border-color); border-radius: var(--radius-sm); max-height: 600px; overflow-y: auto; font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.6; } .log-line { padding: 0.15rem 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.03); white-space: pre-wrap; word-break: break-all; } .log-line:last-child { border-bottom: none; } .log-line code { color: #c9d1d9; font-size: inherit; } .log-line-error { background: rgba(239, 68, 68, 0.1); } .log-line-error code { color: #fca5a5; } .log-line-warning { background: rgba(245, 158, 11, 0.08); } .log-line-warning code { color: #fcd34d; } .log-line-info { background: rgba(59, 130, 246, 0.05); } .log-line-info code { color: #93c5fd; } /* ========================================================================== Table utilities ========================================================================== */ .cell-command { max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cell-command code { font-size: 0.78rem; } .badge-lg { padding: 0.25rem 0.75rem; font-size: 0.85rem; } /* ========================================================================== Nginx Manager ========================================================================== */ .nginx-config-viewer { background: #0a0a0f; border: 1px solid var(--border-color); border-radius: var(--radius-sm); max-height: 500px; overflow-y: auto; font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.5; } .nginx-config-viewer pre { margin: 0; padding: 1rem; white-space: pre-wrap; word-break: break-all; } .nginx-config-viewer code { color: #c9d1d9; } .nginx-test-output { max-height: 300px; } .nginx-test-output pre, .nginx-test-output code { white-space: pre-wrap; word-break: break-all; } .list-group { display: flex; flex-direction: column; gap: 2px; } .list-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; background: var(--bg-tertiary); border-radius: var(--radius-sm); font-size: 0.85rem; } .list-item i { color: var(--text-muted); width: 16px; text-align: center; } .action-group .btn:disabled { opacity: 0.4; cursor: not-allowed; } .list-item-action { cursor: pointer; transition: background var(--transition); } .list-item-action:hover { background: var(--bg-hover); } .list-item-actions { margin-left: auto; display: flex; gap: 0.25rem; opacity: 0; transition: opacity var(--transition); } .list-item:hover .list-item-actions { opacity: 1; } .list-item-actions .btn-xs { padding: 0.15rem 0.4rem; font-size: 0.7rem; } /* ========================================================================== VS Code-like Editor ========================================================================== */ .editor-modal-overlay.modal { background: rgba(0, 0, 0, 0.85); } .vscode-editor { display: flex; flex-direction: column; width: 90%; max-width: 960px; height: 80vh; background: #1e1e1e; border: 1px solid #3c3c3c; border-radius: 8px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.5); font-size: 13px; } .vscode-titlebar { display: flex; align-items: center; gap: 0.5rem; padding: 0 0.75rem; height: 36px; background: #3c3c3c; color: #ccc; font-size: 13px; -webkit-app-region: drag; user-select: none; } .vscode-title-icon { color: #888; font-size: 14px; } .vscode-title-path { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; color: #aaa; font-size: 12px; } .vscode-title-dirty { color: #e8bf6a; font-size: 18px; line-height: 1; } .vscode-title-actions { display: flex; gap: 0.25rem; -webkit-app-region: no-drag; } .vscode-title-actions .vscode-btn { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; padding: 0; font-size: 12px; } .vscode-toolbar { display: flex; align-items: center; gap: 0.25rem; padding: 0.35rem 0.75rem; background: #252526; border-bottom: 1px solid #3c3c3c; } .vscode-btn { background: transparent; border: none; color: #cccccc; padding: 0.3rem 0.6rem; border-radius: 4px; cursor: pointer; font-size: 12px; display: inline-flex; align-items: center; gap: 0.35rem; white-space: nowrap; transition: background 0.1s; } .vscode-btn:hover { background: rgba(255,255,255,0.1); } .vscode-btn-primary { color: #fff; background: #0e639c; } .vscode-btn-primary:hover { background: #1177bb; } .vscode-separator { width: 1px; height: 18px; background: #3c3c3c; margin: 0 0.25rem; } .vscode-spacer { flex: 1; } .vscode-status-text { font-size: 12px; color: #888; } .vscode-body { flex: 1; position: relative; overflow: hidden; background: #1e1e1e; } .vscode-gutter { position: absolute; top: 0; left: 0; width: 52px; bottom: 0; background: #1e1e1e; border-right: 1px solid #2d2d2d; padding: 8px 0; overflow: hidden; user-select: none; text-align: right; z-index: 2; } .vscode-gutter span { display: block; padding: 0 10px 0 6px; font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace; font-size: 13px; line-height: 1.5; color: #555; min-height: 19.5px; } .vscode-textarea { position: absolute; top: 0; left: 0; width: 100%; height: 100%; padding: 8px 12px 8px 62px; background: transparent; color: transparent; caret-color: #fff; font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace; font-size: 13px; line-height: 1.5; border: none; outline: none; resize: none; white-space: pre; overflow: auto; z-index: 1; tab-size: 4; } .vscode-highlight { position: absolute; top: 0; left: 0; width: 100%; height: 100%; padding: 8px 12px 8px 62px; margin: 0; background: transparent; font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace; font-size: 13px; line-height: 1.5; border: none; overflow: hidden; white-space: pre; pointer-events: none; z-index: 0; tab-size: 4; } .vscode-highlight code { color: #d4d4d4; font-size: inherit; font-family: inherit; } .hl-comment { color: #6a9955; } .hl-keyword { color: #569cd6; } .hl-string { color: #ce9178; } .hl-number { color: #b5cea8; } .hl-var { color: #9cdcfe; } .vscode-statusbar { display: flex; align-items: center; height: 24px; padding: 0 0.75rem; background: #007acc; color: #fff; font-size: 12px; gap: 1rem; } .vscode-status-item { white-space: nowrap; color: rgba(255,255,255,0.85); } .vscode-status-end { margin-left: auto; } /* ========================================================================== Terminal ========================================================================== */ .terminal-container { background: #0a0a0f; border: 1px solid var(--border-color); border-radius: var(--radius); overflow: hidden; font-family: var(--font-mono); } .terminal-header { background: #12141f; padding: 0.6rem 1rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-color); font-size: 0.8rem; } .terminal-title { display: flex; align-items: center; gap: 0.5rem; color: var(--text-secondary); } .terminal-status { display: flex; align-items: center; gap: 0.4rem; color: var(--text-muted); } .status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); } .status-dot.online, .status-dot.connected { background: var(--success); } .status-dot.offline { background: var(--danger); } .status-dot.executing { background: var(--warning); animation: pulse 1s infinite; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } } .terminal-body { min-height: 300px; max-height: 500px; overflow-y: auto; padding: 0.75rem; background: #0a0a0f; color: #c9d1d9; font-size: 0.82rem; line-height: 1.5; } .terminal-welcome { color: var(--text-muted); } .terminal-welcome .terminal-ascii { color: var(--accent); font-size: 0.55rem; line-height: 1.2; margin-bottom: 0.5rem; } .terminal-line { margin-bottom: 2px; white-space: pre-wrap; word-break: break-all; } .terminal-line pre { white-space: pre-wrap; word-break: break-all; margin: 0; } .terminal-command { color: var(--success); } .terminal-output { color: #c9d1d9; } .terminal-error { color: var(--danger); } .terminal-prompt-inline { color: var(--success); margin-right: 0.5rem; } .terminal-input-area { display: flex; align-items: center; padding: 0.5rem; background: #12141f; border-top: 1px solid var(--border-color); gap: 0.5rem; } .terminal-prompt { color: var(--text-secondary); font-size: 0.82rem; white-space: nowrap; font-family: var(--font-mono); } .prompt-user { color: var(--success); } .prompt-host { color: var(--info); } .prompt-path { color: var(--accent); } .terminal-input { flex: 1; background: transparent; border: none; color: #c9d1d9; font-family: var(--font-mono); font-size: 0.82rem; outline: none; padding: 0.3rem 0; } .terminal-input::placeholder { color: var(--text-muted); } .terminal-output-box { background: #0a0a0f; border-radius: var(--radius-sm); padding: 1rem; overflow-x: auto; max-height: 600px; overflow-y: auto; } .terminal-output-box pre { color: #c9d1d9; font-size: 0.78rem; white-space: pre-wrap; word-break: break-all; } .pre-scrollable { max-height: 600px; overflow-y: auto; } /* ========================================================================== Quick Commands ========================================================================== */ .quick-commands { display: flex; flex-wrap: wrap; gap: 0.5rem; } .quick-cmd { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.75rem; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: var(--text-secondary); cursor: pointer; font-size: 0.78rem; font-family: var(--font-mono); transition: all var(--transition); } .quick-cmd:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--accent); } /* ========================================================================== Activity List ========================================================================== */ .activity-list { display: flex; flex-direction: column; } .activity-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border-color); } .activity-item:last-child { border-bottom: none; } .activity-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; flex-shrink: 0; } .activity-success { background: var(--success-bg); color: var(--success); } .activity-info { background: var(--info-bg); color: var(--info); } .activity-danger { background: var(--danger-bg); color: var(--danger); } .activity-warning { background: var(--warning-bg); color: var(--warning); } .activity-details { display: flex; flex-direction: column; flex: 1; min-width: 0; } .activity-action { font-size: 0.85rem; font-weight: 500; color: var(--text-primary); } .activity-meta { font-size: 0.75rem; color: var(--text-muted); } /* ========================================================================== Action Grid ========================================================================== */ .action-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.75rem; } .action-card { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 1.25rem; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: var(--radius); color: var(--text-secondary); transition: all var(--transition); cursor: pointer; text-decoration: none; font-family: inherit; font-size: 0.85rem; } .action-card i { font-size: 1.5rem; margin-bottom: 0.25rem; } .action-card:hover { background: var(--bg-hover); color: var(--accent); border-color: var(--accent); transform: translateY(-2px); } /* ========================================================================== Empty State ========================================================================== */ .empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-muted); } .empty-state i { font-size: 3rem; margin-bottom: 1rem; opacity: 0.3; } .empty-state p { margin-bottom: 1rem; font-size: 0.9rem; } .empty-state.small { padding: 1.5rem 1rem; } .empty-state.small i { font-size: 2rem; } /* ========================================================================== Alerts ========================================================================== */ .alert { padding: 0.75rem 1rem; border-radius: var(--radius-sm); font-size: 0.88rem; display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; } .alert-error { background: var(--danger-bg); border: 1px solid rgba(239, 68, 68, 0.3); color: var(--danger); } .alert-warning { background: var(--warning-bg); border: 1px solid rgba(245, 158, 11, 0.3); color: var(--warning); } .alert-success { background: var(--success-bg); border: 1px solid rgba(34, 197, 94, 0.3); color: var(--success); } .alert-info { background: var(--info-bg); border: 1px solid rgba(59, 130, 246, 0.3); color: var(--info); } /* ========================================================================== Audit Logs ========================================================================== */ .audit-row-danger { background: rgba(239, 68, 68, 0.05); } .audit-details { font-size: 0.75rem; color: var(--text-muted); max-width: 300px; overflow-x: auto; white-space: pre-wrap; font-family: var(--font-mono); } .filter-row th { padding: 0.5rem 0.4rem !important; vertical-align: middle; } .filter-row .form-input, .filter-row .form-select { width: 100%; padding: 0.35rem 0.5rem; font-size: 0.78rem; box-sizing: border-box; } .filter-date-group { display: flex; align-items: center; gap: 0.2rem; } .filter-date-group .form-input { flex: 1; min-width: 0; padding: 0.35rem 0.3rem; font-size: 0.7rem; } .filter-date-sep { color: var(--text-muted); font-size: 0.75rem; flex-shrink: 0; } .filter-input-wrap { position: relative; display: flex; align-items: center; } .filter-input-wrap .form-input { padding-right: 1.5rem; } .filter-clear { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); font-size: 1rem; line-height: 1; cursor: pointer; padding: 2px 4px; border-radius: 3px; } .filter-clear:hover { color: var(--text-primary); background: var(--bg-hover); } .filter-input { min-width: 80px; } .page-ellipsis { background: transparent !important; border: none !important; color: var(--text-muted) !important; cursor: default; } /* ========================================================================== Security Status ========================================================================== */ .security-status { display: flex; flex-direction: column; gap: 0.5rem; } .security-item { display: flex; align-items: center; justify-content: space-between; padding: 0.6rem 0; border-bottom: 1px solid var(--border-color); } .security-item:last-child { border-bottom: none; } .security-item span:first-child { font-size: 0.88rem; color: var(--text-secondary); } /* ========================================================================== Auth Pages ========================================================================== */ .auth-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: radial-gradient(ellipse at center, var(--bg-secondary) 0%, var(--bg-primary) 70%); } .auth-container { width: 100%; max-width: 420px; padding: 1rem; } .auth-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 2.5rem 2rem; box-shadow: var(--shadow-lg); } .auth-header { text-align: center; margin-bottom: 2rem; } .auth-logo { font-size: 3rem; color: var(--accent); margin-bottom: 0.75rem; } .auth-header h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; } .auth-header p { color: var(--text-muted); font-size: 0.9rem; } .auth-form .form-group { margin-bottom: 1.25rem; } .auth-footer { text-align: center; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: 0.85rem; } .auth-footer a { color: var(--accent); text-decoration: none; } .auth-footer a:hover { text-decoration: underline; } /* ========================================================================== Error Pages ========================================================================== */ .error-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 1rem; } .error-card { text-align: center; } .error-code { font-size: 6rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 0.5rem; } .error-message { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; } .error-description { color: var(--text-muted); margin-bottom: 2rem; } .error-actions { display: flex; gap: 0.75rem; justify-content: center; } /* ========================================================================== Card Description ========================================================================== */ .card-description .card-body { color: var(--text-secondary); font-size: 0.9rem; } /* ========================================================================== Responsive ========================================================================== */ @media (max-width: 1024px) { .dashboard-grid { grid-template-columns: 1fr; } .stats-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } } @media (max-width: 768px) { .sidebar { transform: translateX(-100%); width: 280px; box-shadow: none; overflow-y: auto; } .sidebar.mobile-open { transform: translateX(0); box-shadow: 4px 0 20px rgba(0,0,0,0.4); } .sidebar.mobile-open.collapsed { width: 280px; } .sidebar.mobile-open.collapsed .nav-item span, .sidebar.mobile-open.collapsed .nav-chevron, .sidebar.mobile-open.collapsed .notification-badge, .sidebar.mobile-open.collapsed .nav-divider, .sidebar.mobile-open.collapsed .nav-section { display: flex; } .sidebar.mobile-open.collapsed .sidebar-brand { justify-content: flex-start; } .sidebar.mobile-open.collapsed .nav-item { justify-content: flex-start; padding: 0.65rem 1.25rem; margin: 0 0.5rem; } .main-area { margin-left: 0 !important; } .page-content { padding: 1rem; } .topbar { padding: 0 1rem; } .form-row, .form-row-3 { grid-template-columns: 1fr; } .stats-grid { grid-template-columns: repeat(2, 1fr); } .page-header { flex-direction: column; } .action-grid { grid-template-columns: repeat(2, 1fr); } .terminal-input-area { flex-wrap: wrap; } .terminal-prompt { display: none; } .nav-sublist { background: rgba(0,0,0,0.06); margin: 0; } } @media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } .card-filters { flex-direction: column; align-items: stretch; } .search-box { min-width: 0; } } /* ========================================================================== Animations ========================================================================== */ @keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } /* ========================================================================== Scrollbar ========================================================================== */ ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: var(--border-light); } /* ========================================================================== Print ========================================================================== */ @media print { .sidebar, .topbar { display: none; } .main-area { margin-left: 0; } } /* ========================================================================== phpMyAdmin-like Database Manager ========================================================================== */ .pma-layout { display: flex; gap: 0; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius); overflow: hidden; min-height: 500px; } .pma-sidebar { width: 240px; flex-shrink: 0; background: var(--bg-tertiary); border-right: 1px solid var(--border-color); display: flex; flex-direction: column; } .pma-sidebar-header { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; font-weight: 600; font-size: 0.85rem; border-bottom: 1px solid var(--border-color); color: var(--text-primary); } .pma-sidebar-filter { padding: 0.5rem; border-bottom: 1px solid var(--border-color); } .pma-sidebar-list { flex: 1; overflow-y: auto; padding: 0.25rem 0; } .pma-db-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.45rem 1rem; cursor: pointer; font-size: 0.85rem; transition: background 0.1s; border-left: 3px solid transparent; } .pma-db-item:hover { background: var(--bg-hover); } .pma-db-item.active { background: var(--accent-light); border-left-color: var(--accent); color: var(--accent); } .pma-db-item i { color: var(--warning); font-size: 0.85rem; width: 16px; } .pma-db-item.active i { color: var(--accent); } .pma-db-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pma-db-size { font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; } .pma-content { flex: 1; display: flex; flex-direction: column; overflow: hidden; } .pma-tabs { display: flex; gap: 0; background: var(--bg-tertiary); border-bottom: 1px solid var(--border-color); padding: 0 0.5rem; } .pma-tab { padding: 0.6rem 1rem; background: transparent; border: none; color: var(--text-secondary); cursor: pointer; font-size: 0.82rem; border-bottom: 2px solid transparent; transition: all 0.15s; display: flex; align-items: center; gap: 0.4rem; } .pma-tab:hover { color: var(--text-primary); background: rgba(255,255,255,0.03); } .pma-tab.active { color: var(--accent); border-bottom-color: var(--accent); } .pma-panel { display: none; padding: 1rem; flex: 1; overflow-y: auto; } .pma-panel.active { display: block; } .pma-loading { text-align: center; padding: 3rem; color: var(--text-muted); } .pma-section-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; font-size: 0.95rem; color: var(--text-primary); } .pma-section-header code { font-size: 0.9rem; } .pma-table-link { cursor: pointer; color: var(--accent) !important; font-weight: 600; } .pma-table-link:hover { text-decoration: underline; } .pma-sql-editor { display: flex; flex-direction: column; } .pma-sql-toolbar { display: flex; gap: 0.5rem; padding: 0.5rem; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-top: none; align-items: center; } .pma-pagination .btn-xs { min-width: 28px; } .pma-filter-row td { padding: 0.35rem 0.5rem !important; vertical-align: top !important; } .pma-filter-input { box-sizing: border-box; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-input); color: var(--text-primary); transition: border-color 0.15s; } .pma-filter-input:focus { border-color: var(--accent); outline: none; } /* Accordion sidebar */ .pma-accordion-item { border-bottom: 1px solid rgba(255,255,255,0.04); } .pma-accordion-header { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; cursor: pointer; font-size: 0.85rem; transition: background 0.1s; } .pma-accordion-header:hover { background: var(--bg-hover); } .pma-accordion-header i:first-child { color: var(--warning); width: 14px; font-size: 0.8rem; } .pma-accordion-header .pma-db-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pma-accordion-header .pma-db-size { font-size: 0.7rem; color: var(--text-muted); } .pma-chevron { font-size: 0.7rem; color: var(--text-muted); transition: transform 0.2s; } .pma-accordion-item.expanded .pma-chevron { transform: rotate(90deg); } .pma-accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; background: rgba(0,0,0,0.15); } .pma-table-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 1rem 0.35rem 2.2rem; cursor: pointer; font-size: 0.82rem; color: var(--text-secondary); transition: background 0.1s; } .pma-table-item:hover { background: var(--bg-hover); color: var(--text-primary); } .pma-table-item i { font-size: 0.75rem; color: var(--accent); width: 14px; } .pma-loading-tables { text-align: center; padding: 0.5rem; font-size: 0.78rem; color: var(--text-muted); } /* Sidebar accordion */ .nav-item-accordion .nav-item-toggle { display: flex; align-items: center; gap: 0.5rem; } .nav-item-accordion.expanded > .nav-item-toggle { color: var(--text-primary); } .nav-chevron { margin-left: auto; font-size: 0.65rem; transition: transform 0.25s ease; color: var(--text-muted); } .nav-item-accordion.expanded .nav-chevron { transform: rotate(90deg); } .nav-sublist { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; background: rgba(0,0,0,0.08); border-radius: 0 0 var(--radius-sm) var(--radius-sm); margin: 0 0.5rem; } .nav-sub-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 1rem 0.35rem 2.5rem; margin: 0 0.25rem; font-size: 0.82rem; color: var(--text-secondary); text-decoration: none; transition: all 0.15s; border-radius: var(--radius-sm); } .nav-sub-item:hover { background: var(--bg-hover); color: var(--text-primary); } .nav-sub-item i { width: 16px; text-align: center; font-size: 0.75rem; color: var(--text-muted); } .status-dot-sm { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; } .status-dot-sm.status-success { background: var(--success); } .status-dot-sm.status-danger { background: var(--danger); } .status-dot-sm.status-muted { background: var(--text-muted); } .nav-sub-item .status-dot-sm { display: inline-block; } /* ═══════════════════════════════════════════════════════════════════════════ Teams — Card Grid ═══════════════════════════════════════════════════════════════════════════ */ .teams-toolbar { margin-bottom: 1.5rem; } .teams-search { position: relative; max-width: 400px; } .teams-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 0.9rem; } .teams-search-input { padding-left: 36px !important; padding-right: 36px !important; } .teams-search-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); font-size: 1.2rem; cursor: pointer; padding: 4px 8px; line-height: 1; } .teams-search-clear:hover { color: var(--text-primary); } .teams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; } .team-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 1.25rem; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; animation: teamCardEnter 0.35s ease both; display: flex; flex-direction: column; } .team-card:nth-child(1) { animation-delay: 0.00s; } .team-card:nth-child(2) { animation-delay: 0.05s; } .team-card:nth-child(3) { animation-delay: 0.10s; } .team-card:nth-child(4) { animation-delay: 0.15s; } .team-card:nth-child(5) { animation-delay: 0.20s; } .team-card:nth-child(6) { animation-delay: 0.25s; } .team-card:nth-child(7) { animation-delay: 0.30s; } .team-card:nth-child(8) { animation-delay: 0.35s; } .team-card:nth-child(9) { animation-delay: 0.40s; } .team-card:nth-child(10) { animation-delay: 0.45s; } .team-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); border-color: var(--accent); } @keyframes teamCardEnter { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } } .team-card-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; } .team-card-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-light); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 1.1rem; flex-shrink: 0; } .team-card-title { margin: 0; font-size: 1.05rem; font-weight: 600; color: var(--text-primary); } .team-card-title a { color: var(--text-primary); text-decoration: none; } .team-card-title a:hover { color: var(--accent); } .team-card-desc { margin: 0 0 1rem; font-size: 0.875rem; color: var(--text-secondary); line-height: 1.5; flex: 1; } .team-card-stats { display: flex; gap: 1rem; margin-bottom: 1rem; font-size: 0.8rem; color: var(--text-muted); } .team-stat { display: flex; align-items: center; gap: 0.35rem; } .team-stat i { font-size: 0.75rem; } .team-card-actions { display: flex; gap: 0.5rem; padding-top: 0.75rem; border-top: 1px solid var(--border-color); } /* ═══════════════════════════════════════════════════════════════════════════ Autocomplete — User Search ═══════════════════════════════════════════════════════════════════════════ */ .autocomplete { position: relative; } .autocomplete-input { width: 100%; } .autocomplete-dropdown { position: absolute; top: 100%; left: 0; right: 0; z-index: 100; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 0 0 8px 8px; max-height: 250px; overflow-y: auto; display: none; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); } .autocomplete-dropdown.active { display: block; } .autocomplete-item { padding: 10px 14px; cursor: pointer; transition: background 0.1s; border-bottom: 1px solid var(--border-color); } .autocomplete-item:last-child { border-bottom: none; } .autocomplete-item:hover { background: var(--accent-light); } .autocomplete-item strong { color: var(--text-primary); font-size: 0.9rem; } .autocomplete-item small { color: var(--text-muted); font-size: 0.8rem; margin-left: 0.5rem; } .autocomplete-empty { padding: 14px; text-align: center; color: var(--text-muted); font-size: 0.85rem; } .form-label { display: block; margin-bottom: 0.35rem; font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); } /* --- Server permission rows --- */ .permission-row { display: flex; gap: 0.5rem; align-items: center; margin-bottom: 0.5rem; padding: 0.5rem; background: var(--bg-secondary, #f8f9fa); border-radius: 6px; border: 1px solid var(--border-color, #e0e0e0); } .permission-row .permission-type { flex: 0 0 160px; } .permission-row .permission-value { flex: 1 1 auto; } .permission-row .permission-desc { flex: 0 0 200px; } .permission-row .btn-danger { flex: 0 0 auto; } .permission-actions { margin-top: 0.5rem; } .permission-presets { margin-top: 0.75rem; display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; } .permission-presets .preset-label { font-size: 0.8rem; color: var(--text-muted, #888); margin-right: 0.25rem; } .btn-outline { background: transparent; border: 1px solid var(--border-color, #ccc); color: var(--text-primary, #333); padding: 0.25rem 0.6rem; font-size: 0.8rem; border-radius: 4px; cursor: pointer; transition: all 0.15s; } .btn-outline:hover { background: var(--bg-hover, #e9ecef); border-color: var(--text-muted, #888); } input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--text-primary); border: 2px solid var(--bg-card); box-shadow: 0 1px 4px rgba(0,0,0,0.4); cursor: pointer; transition: transform 0.1s; } input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); } input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--text-primary); border: 2px solid var(--bg-card); box-shadow: 0 1px 4px rgba(0,0,0,0.4); cursor: pointer; } input[type="range"]:focus { outline: none; } input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; } /* ========================================================================== Notification Bell & Modal ========================================================================== */ .notification-btn-wrapper { position: relative; display: inline-flex; } .notification-btn { position: relative; } .notification-badge { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 100px; background: var(--danger); color: #fff; font-size: 0.6rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; line-height: 1; box-shadow: 0 0 0 2px var(--bg-secondary); pointer-events: none; } .notif-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border-color); cursor: pointer; transition: background 0.15s; } .notif-item:hover { background: var(--bg-hover); } .notif-item:last-child { border-bottom: none; } .notif-unread { background: rgba(99, 102, 241, 0.04); } .notif-unread:hover { background: rgba(99, 102, 241, 0.08); } .notif-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.85em; } .notif-icon.notif-danger { background: var(--danger-bg); color: var(--danger); } .notif-icon.notif-warning { background: var(--warning-bg); color: var(--warning); } .notif-icon.notif-info { background: var(--info-bg); color: var(--info); } .notif-content { flex: 1; min-width: 0; } .notif-title { font-size: 0.88em; font-weight: 600; color: var(--text-primary); margin-bottom: 2px; } .notif-message { font-size: 0.82em; color: var(--text-muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .notif-time { font-size: 0.72em; color: var(--text-muted); margin-top: 3px; opacity: 0.7; } .notif-read .notif-title { font-weight: 400; opacity: 0.65; } .notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--info); flex-shrink: 0; margin-top: 6px; } .btn-sm { padding: 0.3rem 0.6rem; font-size: 0.82rem; border-radius: var(--radius-sm, 6px); } .btn-text { background: none; border: none; color: var(--text-secondary); cursor: pointer; transition: color 0.15s; } .btn-text:hover { color: var(--text-primary); background: var(--bg-hover); } /* ========================================================================== Notification Dropdown Panel ========================================================================== */ .notification-dropdown { display: none; position: absolute; top: calc(100% + 6px); right: 0; width: 380px; max-height: 520px; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: var(--radius-lg); box-shadow: 0 8px 32px rgba(0,0,0,0.4); z-index: 300; overflow: hidden; } .notification-dropdown.open { display: block; } .notif-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--border-color); } .notif-list { max-height: 360px; overflow-y: auto; } .notif-view-all { display: flex; align-items: center; justify-content: center; padding: 10px 16px; font-size: 0.82rem; color: var(--accent); text-decoration: none; border-top: 1px solid var(--border-color); transition: background var(--transition); } .notif-view-all:hover { background: var(--bg-hover); color: var(--accent-hover); }