:root { /* Modern Color Palette */ --primary: #6366f1; --primary-dark: #4f46e5; --primary-light: #818cf8; --secondary: #8b5cf6; --accent: #ec4899; --success: #10b981; --error: #ef4444; --warning: #f59e0b; /* Background Colors - Darker for glass effect */ --bg-primary: #0a0e1a; --bg-secondary: #0f1419; --bg-tertiary: #1a1f2e; --bg-glass: rgba(255, 255, 255, 0.03); --bg-glass-hover: rgba(255, 255, 255, 0.06); --bg-glass-strong: rgba(255, 255, 255, 0.08); /* Text Colors */ --text-primary: #f1f5f9; --text-secondary: #cbd5e1; --text-tertiary: #94a3b8; --text-muted: #64748b; /* Borders & Shadows - Enhanced for glass */ --border-color: rgba(255, 255, 255, 0.08); --border-color-strong: rgba(255, 255, 255, 0.15); --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3); --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3); --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4); --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.5); --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.4); /* Spacing */ --spacing-xs: 0.25rem; --spacing-sm: 0.5rem; --spacing-md: 1rem; --spacing-lg: 1.5rem; --spacing-xl: 2rem; --spacing-2xl: 3rem; /* Border Radius */ --radius-sm: 0.375rem; --radius-md: 0.5rem; --radius-lg: 0.75rem; --radius-xl: 1rem; --radius-2xl: 1.5rem; --radius-full: 9999px; /* Transitions */ --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1); --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1); --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1); } * { margin: 0; padding: 0; box-sizing: border-box; } html { height: 100%; overflow: hidden; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, 'Helvetica Neue', Arial, sans-serif; background: linear-gradient(135deg, #0a0e1a 0%, #0f1419 50%, #1a1f2e 100%); background-attachment: fixed; height: 100vh; height: 100dvh; display: flex; flex-direction: column; color: var(--text-primary); line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow: hidden; } .container { display: flex; flex-direction: column; height: 100vh; height: 100dvh; max-width: 1400px; margin: 0 auto; padding: var(--spacing-md); overflow: hidden; } .header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--spacing-sm); padding: calc(var(--spacing-lg) - 20px) var(--spacing-xl); flex-shrink: 0; position: sticky; top: 0; z-index: 100; background: rgba(10, 14, 26, 0.7); backdrop-filter: blur(30px) saturate(200%); -webkit-backdrop-filter: blur(30px) saturate(200%); border-bottom: 1px solid var(--border-color); box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.05); border-radius: 0; position: relative; overflow: hidden; } .header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 30%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 100%); pointer-events: none; z-index: 0; } .header > * { position: relative; z-index: 1; } .header-content { display: flex; flex-direction: column; align-items: flex-start; } .header h1 { font-size: 1.8rem; font-weight: 700; background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 0.25rem; } .subtitle { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 0; } .header-status { display: flex; align-items: center; gap: var(--spacing-lg); } .status { display: flex; align-items: center; gap: var(--spacing-md); font-size: 0.875rem; color: var(--text-secondary); } .status-indicator { width: 10px; height: 10px; border-radius: var(--radius-full); background: var(--success); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; position: relative; flex-shrink: 0; } .status-indicator::before { content: ''; position: absolute; inset: 0; border-radius: var(--radius-full); background: var(--success); animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; } .status-indicator.disconnected { background: var(--error); animation: none; } .status-indicator.disconnected::before { background: var(--error); animation: none; } @keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); } 50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } } @keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.8; transform: scale(0.95); } } .profiles-count { font-size: 0.875rem; color: var(--text-secondary); padding: var(--spacing-xs) var(--spacing-md); background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--border-color); border-radius: var(--radius-lg); } .profiles-count #profilesCountValue { font-weight: 600; color: var(--primary-light); } .main-content { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--spacing-md); min-height: 0; overflow: hidden; } .profile-section { display: flex; flex-direction: column; min-height: 0; overflow: hidden; } .profile-card { background: var(--bg-glass); backdrop-filter: blur(30px) saturate(200%); -webkit-backdrop-filter: blur(30px) saturate(200%); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: var(--spacing-md); box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05); display: flex; flex-direction: column; min-height: 0; max-height: 100%; overflow: hidden; position: relative; } .profile-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 30%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 100%); pointer-events: none; border-radius: inherit; z-index: 0; } .profile-card > * { position: relative; z-index: 1; } .avatar-section { text-align: center; margin-bottom: var(--spacing-md); flex-shrink: 0; } .avatar-container { position: relative; display: inline-block; margin-bottom: var(--spacing-xs); } .avatar-image { width: 80px; height: 80px; border-radius: var(--radius-full); object-fit: cover; border: 2px solid var(--primary); box-shadow: var(--shadow-glow); } .avatar-placeholder { width: 80px; height: 80px; border-radius: var(--radius-full); background: var(--bg-tertiary); display: flex; align-items: center; justify-content: center; color: var(--text-tertiary); border: 2px solid var(--border-color); margin: 0 auto; } .avatar-upload-label { position: absolute; bottom: 0; right: 0; width: 28px; height: 28px; background: var(--primary); border-radius: var(--radius-full); display: flex; align-items: center; justify-content: center; cursor: pointer; border: 2px solid var(--bg-primary); transition: all var(--transition-base); box-shadow: var(--shadow-md); } .avatar-upload-label:hover { background: var(--primary-dark); transform: scale(1.1); box-shadow: var(--shadow-glow); } .upload-icon { font-size: 1.2rem; } .avatar-hint { color: var(--text-tertiary); font-size: 0.75rem; margin: 0; } .profile-form { display: flex; flex-direction: column; gap: var(--spacing-sm); flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; padding-right: var(--spacing-xs); } .form-group { display: flex; flex-direction: column; gap: var(--spacing-xs); flex-shrink: 0; min-width: 0; overflow: hidden; } .form-group label { color: var(--text-secondary); font-weight: 500; font-size: 0.85rem; } .form-group input, .form-group textarea { background: rgba(15, 20, 30, 0.6); backdrop-filter: blur(25px) saturate(200%); -webkit-backdrop-filter: blur(25px) saturate(200%); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: var(--spacing-sm) var(--spacing-md); color: var(--text-primary); font-size: 0.9rem; transition: all var(--transition-base); font-family: inherit; width: 100%; box-sizing: border-box; overflow: hidden; text-overflow: ellipsis; box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.03); } .form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); background: rgba(15, 20, 30, 0.8); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2), var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.05); } .form-group input.readonly { background: var(--bg-tertiary); color: var(--text-tertiary); cursor: not-allowed; } .form-group textarea { resize: vertical; min-height: 60px; max-height: 80px; } .form-section-divider { margin: var(--spacing-sm) 0 var(--spacing-sm) 0; padding-top: var(--spacing-sm); border-top: 1px solid var(--border-color); flex-shrink: 0; } .form-section-divider h3 { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: var(--spacing-xs); } .form-group-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--spacing-xs); gap: var(--spacing-md); } .form-group-header label { margin-bottom: 0; } .toggle-btn { padding: 0.2rem var(--spacing-sm); background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); color: var(--text-primary); font-size: 0.75rem; cursor: pointer; transition: all var(--transition-base); display: flex; align-items: center; gap: 0.25rem; white-space: nowrap; } .toggle-btn:hover:not(:disabled) { background: var(--bg-glass-hover); border-color: var(--primary); } .toggle-btn.enabled { background: var(--success); border-color: var(--success); color: white; } .toggle-btn.enabled:hover:not(:disabled) { background: #0ea66e; } .toggle-btn:disabled { opacity: 0.5; cursor: not-allowed; } .toggle-icon { font-size: 0.9rem; } .form-group input:disabled { background: var(--bg-tertiary); color: var(--text-tertiary); cursor: not-allowed; opacity: 0.6; } .form-actions { display: flex; gap: var(--spacing-sm); margin-top: var(--spacing-sm); flex-shrink: 0; } .btn { flex: 1; padding: var(--spacing-sm) var(--spacing-md); border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: all var(--transition-base); display: flex; align-items: center; justify-content: center; gap: var(--spacing-xs); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); position: relative; overflow: hidden; } .btn::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%); pointer-events: none; border-radius: inherit; } .btn-primary { background: rgba(99, 102, 241, 0.3); border-color: rgba(99, 102, 241, 0.5); color: var(--text-primary); box-shadow: 0 4px 6px -1px rgba(99, 102, 241, 0.2), 0 2px 4px -1px rgba(99, 102, 241, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1); } .btn-primary:hover:not(:disabled) { background: rgba(99, 102, 241, 0.5); border-color: rgba(99, 102, 241, 0.7); box-shadow: 0 10px 15px -3px rgba(99, 102, 241, 0.3), 0 4px 6px -2px rgba(99, 102, 241, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2); transform: translateY(-2px); } .btn-secondary { background: var(--bg-glass); color: var(--text-primary); border: 1px solid var(--border-color); box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.03); } .btn-secondary:hover:not(:disabled) { background: var(--bg-glass-hover); border-color: var(--border-color-strong); box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.08); } .btn-danger { background: var(--error); color: white; } .btn-danger:hover:not(:disabled) { background: #dc2626; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2); transform: translateY(-2px); } .btn:disabled { opacity: 0.5; cursor: not-allowed; } .profiles-section { display: flex; flex-direction: column; min-height: 0; overflow: hidden; } .profiles-section h2 { font-size: 1.1rem; margin-bottom: var(--spacing-sm); color: var(--text-primary); flex-shrink: 0; } .search-container { margin-bottom: var(--spacing-sm); flex-shrink: 0; } .search-input { width: 100%; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: var(--spacing-sm) var(--spacing-md); color: var(--text-primary); font-size: 0.9rem; transition: all var(--transition-base); font-family: inherit; } .search-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); } .search-input::placeholder { color: var(--text-tertiary); } #scroll-sentinel { height: 1px; width: 100%; pointer-events: none; } .profiles-list { display: flex; flex-direction: column; gap: var(--spacing-sm); flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; } .profile-item { background: var(--bg-glass); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: var(--spacing-sm); display: flex; align-items: center; gap: var(--spacing-sm); transition: all var(--transition-base); flex-shrink: 0; } .profile-item:hover { background: var(--bg-glass-hover); transform: translateX(4px); box-shadow: var(--shadow-md); } .profile-item-avatar { width: 48px; height: 48px; border-radius: var(--radius-full); object-fit: cover; border: 2px solid var(--primary); flex-shrink: 0; } .profile-item-info { flex: 1; min-width: 0; } .profile-item-name { font-weight: 600; color: var(--text-primary); margin-bottom: 0.15rem; font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 0.4rem; } .bot-badge { display: inline-block; background: var(--primary, #6366f1); color: white; font-size: 0.65rem; font-weight: 600; padding: 2px 6px; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.5px; vertical-align: middle; flex-shrink: 0; } .profile-item-bio { color: var(--text-secondary); font-size: 0.8rem; margin-bottom: 0.15rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; line-clamp: 1; -webkit-box-orient: vertical; } .profile-item-details { color: var(--text-secondary); font-size: 0.75rem; margin: 0.15rem 0; display: flex; flex-wrap: wrap; gap: 0.4rem; overflow: hidden; text-overflow: ellipsis; } .profile-item-details a { color: var(--primary-light); text-decoration: none; transition: color var(--transition-base); } .profile-item-details a:hover { color: var(--primary); text-decoration: underline; } .profile-item-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.4rem 0; } .tag-badge { display: inline-block; background: var(--primary); color: white; font-size: 0.7rem; font-weight: 500; padding: 0.2rem 0.5rem; border-radius: var(--radius-sm); white-space: nowrap; transition: all var(--transition-base); } .tag-badge:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-sm); } .profile-item-peerid { color: var(--text-tertiary); font-size: 0.7rem; font-family: 'Monaco', 'Courier New', monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 0.3rem; } /* Tag Editor */ .tag-editor { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: var(--spacing-xs) var(--spacing-sm); min-height: 40px; max-height: 200px; display: flex; flex-wrap: wrap; gap: var(--spacing-xs); align-items: flex-start; align-content: flex-start; transition: all var(--transition-base); overflow-y: auto; overflow-x: hidden; margin-top: var(--spacing-xs); } .tags-input-inline { flex: 1; min-width: 120px; max-width: 100%; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: var(--spacing-sm) var(--spacing-md); color: var(--text-primary); font-size: 0.9rem; transition: all var(--transition-base); font-family: inherit; box-sizing: border-box; } .tags-input-inline:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); } .tag-editor:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); } .tag-list { display: flex; flex-wrap: wrap; gap: var(--spacing-xs); flex: 1; min-width: 0; max-width: 100%; overflow: hidden; } .tag-editor-badge { display: inline-flex; align-items: center; gap: 0.3rem; background: var(--primary); color: white; font-size: 0.8rem; font-weight: 500; padding: 0.25rem 0.5rem; border-radius: var(--radius-sm); white-space: nowrap; transition: all var(--transition-base); } .tag-editor-badge:hover { background: var(--primary-dark); } .tag-remove { background: transparent; border: none; color: white; cursor: pointer; font-size: 1.2rem; line-height: 1; padding: 0; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); transition: all var(--transition-base); flex-shrink: 0; } .tag-remove:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.1); } .tag-remove:active { transform: scale(0.95); } #tags-input::placeholder { color: var(--text-tertiary); } .loading { text-align: center; color: var(--text-tertiary); padding: var(--spacing-md); font-size: 0.85rem; } .toast { position: fixed; bottom: var(--spacing-xl); right: var(--spacing-xl); background: var(--bg-glass); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: var(--spacing-md) var(--spacing-lg); color: var(--text-primary); box-shadow: var(--shadow-xl); opacity: 0; transform: translateY(20px); transition: all var(--transition-base); z-index: 1000; } .toast.show { opacity: 1; transform: translateY(0); } .toast.success { border-left: 4px solid var(--success); } .toast.error { border-left: 4px solid var(--error); } /* Scrollbar styling */ ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: var(--bg-secondary); border-radius: var(--radius-sm); } ::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: var(--radius-sm); } ::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); } /* Responsive */ @media (max-width: 768px) { .main-content { grid-template-columns: 1fr; } .header { padding: var(--spacing-md) var(--spacing-lg); flex-wrap: wrap; } .header h1 { font-size: 1.5rem; } .header-content { flex: 1; min-width: 0; } .header-status { margin-top: var(--spacing-sm); width: 100%; justify-content: flex-end; } .container { padding: var(--spacing-md); } }