*,*:before,*:after{margin:0;padding:0;box-sizing:border-box}:root{--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--bg: #f1f5f9;--surface: #ffffff;--sidebar-bg: #0f172a;--sidebar-hover: #1e293b;--sidebar-active: rgba(99, 102, 241, .15);--sidebar-text: #94a3b8;--sidebar-text-active: #ffffff;--border: #e2e8f0;--text: #0f172a;--text-secondary: #64748b;--text-muted: #94a3b8;--primary: #6366f1;--primary-hover: #4f46e5;--primary-soft: #eef2ff;--success: #10b981;--success-soft: #d1fae5;--success-text: #065f46;--danger: #ef4444;--danger-soft: #fee2e2;--danger-text: #991b1b;--radius-sm: 6px;--radius: 8px;--radius-lg: 12px;--radius-xl: 16px;--shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);--shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .04);--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .08), 0 2px 4px -2px rgba(0, 0, 0, .04);--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .08), 0 4px 6px -4px rgba(0, 0, 0, .04);--transition: .15s ease}html{height:100%}body{font-family:var(--font);color:var(--text);background:var(--bg);line-height:1.5;-webkit-font-smoothing:antialiased;height:100%}#root{height:100%}a{color:inherit;text-decoration:none}button,input,textarea,select{font-family:var(--font)}.layout{display:flex;height:100vh}.sidebar{width:260px;min-width:260px;background:var(--sidebar-bg);display:flex;flex-direction:column;overflow-y:auto}.sidebar-brand{display:flex;align-items:center;gap:12px;padding:24px 20px;border-bottom:1px solid rgba(255,255,255,.06)}.sidebar-brand-icon{width:36px;height:36px;background:var(--primary);border-radius:var(--radius);display:flex;align-items:center;justify-content:center;color:#fff;flex-shrink:0}.sidebar-brand-icon svg{width:20px;height:20px}.sidebar-brand-text{font-size:16px;font-weight:700;color:#fff;letter-spacing:-.02em}.sidebar-label{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);padding:24px 20px 8px}.sidebar-nav{display:flex;flex-direction:column;gap:2px;padding:0 12px}.sidebar-link{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:var(--radius);color:var(--sidebar-text);font-size:14px;font-weight:500;transition:all var(--transition);cursor:pointer;border:none;background:none;width:100%;text-align:left}.sidebar-link:hover{background:var(--sidebar-hover);color:var(--sidebar-text-active)}.sidebar-link.active{background:var(--sidebar-active);color:var(--sidebar-text-active)}.sidebar-link svg{width:18px;height:18px;flex-shrink:0;opacity:.7}.sidebar-link.active svg,.sidebar-link:hover svg{opacity:1}.sidebar-footer{margin-top:auto;padding:16px 12px;border-top:1px solid rgba(255,255,255,.06)}.sidebar-user{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:var(--radius)}.sidebar-avatar{width:32px;height:32px;border-radius:50%;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;flex-shrink:0}.sidebar-avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover}.sidebar-user-info{flex:1;min-width:0}.sidebar-user-name{font-size:13px;font-weight:600;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-user-role{font-size:11px;color:var(--text-muted)}.main{flex:1;display:flex;flex-direction:column;overflow:hidden}.topbar{display:flex;align-items:center;justify-content:space-between;padding:16px 32px;background:var(--surface);border-bottom:1px solid var(--border);min-height:64px}.topbar-left h1{font-size:18px;font-weight:700;letter-spacing:-.02em}.topbar-left p{font-size:13px;color:var(--text-secondary);margin-top:2px}.content{flex:1;overflow-y:auto;padding:28px 32px}.card{background:var(--surface);border-radius:var(--radius-lg);border:1px solid var(--border);box-shadow:var(--shadow-sm)}.card-header{display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--border)}.card-header h2,.card-header h3{font-size:16px;font-weight:600;letter-spacing:-.01em}.card-body{padding:24px}.table-wrap{overflow-x:auto}.table{width:100%;border-collapse:collapse;font-size:14px}.table th{text-align:left;padding:12px 24px;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--text-secondary);background:#f8fafc;border-bottom:1px solid var(--border)}.table td{padding:14px 24px;border-bottom:1px solid var(--border);vertical-align:middle}.table tbody tr{transition:background var(--transition)}.table tbody tr:hover{background:#f8fafc}.table tbody tr:last-child td{border-bottom:none}.table .user-cell{display:flex;align-items:center;gap:12px}.table .user-avatar{width:36px;height:36px;border-radius:50%;background:var(--primary-soft);color:var(--primary);display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;flex-shrink:0}.table .user-avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover}.table .user-name{font-weight:500}.table .user-email{font-size:13px;color:var(--text-secondary)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:9px 16px;font-size:14px;font-weight:500;border-radius:var(--radius);border:1px solid transparent;cursor:pointer;transition:all var(--transition);white-space:nowrap;line-height:1.4}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:var(--primary);color:#fff;border-color:var(--primary)}.btn-primary:hover:not(:disabled){background:var(--primary-hover);border-color:var(--primary-hover)}.btn-secondary{background:var(--surface);color:var(--text);border-color:var(--border)}.btn-secondary:hover:not(:disabled){background:#f8fafc}.btn-danger{background:var(--danger);color:#fff}.btn-danger:hover:not(:disabled){background:#dc2626}.btn-ghost{background:transparent;color:var(--text-secondary);border-color:transparent;padding:9px 12px}.btn-ghost:hover:not(:disabled){background:#f1f5f9;color:var(--text)}.btn-sm{padding:6px 12px;font-size:13px}.btn-icon{width:36px;height:36px;padding:0;border-radius:var(--radius)}.btn svg{width:16px;height:16px}.badge{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;font-size:12px;font-weight:500;border-radius:999px}.badge-primary{background:var(--primary-soft);color:var(--primary)}.badge-success{background:var(--success-soft);color:var(--success-text)}.badge-muted{background:#f1f5f9;color:var(--text-secondary)}.form-group{display:flex;flex-direction:column;gap:6px}.form-label{font-size:14px;font-weight:500;color:var(--text)}.form-hint{font-size:12px;color:var(--text-muted)}.form-input,.form-textarea{padding:9px 12px;font-size:14px;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);color:var(--text);transition:border-color var(--transition),box-shadow var(--transition);outline:none;width:100%}.form-input:focus,.form-textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px #6366f11f}.form-input::placeholder,.form-textarea::placeholder{color:var(--text-muted)}.form-textarea{font-family:var(--font);resize:vertical;min-height:100px}.search-wrap{position:relative;max-width:320px}.search-wrap svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:var(--text-muted);pointer-events:none}.search-input{padding:9px 12px 9px 36px;font-size:14px;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);color:var(--text);width:100%;outline:none;transition:border-color var(--transition),box-shadow var(--transition)}.search-input:focus{border-color:var(--primary);box-shadow:0 0 0 3px #6366f11f}.alert{padding:12px 16px;border-radius:var(--radius);font-size:14px;display:flex;align-items:center;gap:10px}.alert-success{background:var(--success-soft);color:var(--success-text);border:1px solid #6ee7b7}.alert-error{background:var(--danger-soft);color:var(--danger-text);border:1px solid #fca5a5}.stats-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:24px}.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:20px;box-shadow:var(--shadow-sm)}.stat-card-label{font-size:13px;font-weight:500;color:var(--text-secondary)}.stat-card-value{font-size:28px;font-weight:700;letter-spacing:-.03em;margin-top:4px}.stat-card-icon{width:40px;height:40px;border-radius:var(--radius);display:flex;align-items:center;justify-content:center;margin-bottom:12px}.stat-card-icon svg{width:20px;height:20px}.stat-card-icon.purple{background:var(--primary-soft);color:var(--primary)}.stat-card-icon.green{background:var(--success-soft);color:var(--success)}.stat-card-icon.blue{background:#dbeafe;color:#2563eb}.detail-header{display:flex;align-items:center;gap:20px;margin-bottom:28px}.detail-avatar{width:64px;height:64px;border-radius:50%;background:var(--primary-soft);color:var(--primary);display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:700;flex-shrink:0}.detail-avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover}.detail-name{font-size:22px;font-weight:700;letter-spacing:-.02em}.detail-email{font-size:14px;color:var(--text-secondary);margin-top:2px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}@media (max-width: 900px){.detail-grid{grid-template-columns:1fr}}.friend-item{display:flex;align-items:center;gap:12px;padding:12px 0}.friend-item+.friend-item{border-top:1px solid var(--border)}.friend-avatar{width:40px;height:40px;border-radius:50%;background:var(--primary-soft);color:var(--primary);display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:600;flex-shrink:0}.friend-avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover}.location-item{padding:14px 0}.location-item+.location-item{border-top:1px solid var(--border)}.location-route{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:500}.location-arrow{color:var(--text-muted)}.location-date{font-size:12px;color:var(--text-muted);margin-top:4px}.login-page{display:flex;min-height:100vh}.login-left{flex:1;background:var(--sidebar-bg);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:40px;color:#fff}.login-brand{display:flex;align-items:center;gap:14px;margin-bottom:24px}.login-brand-icon{width:48px;height:48px;background:var(--primary);border-radius:var(--radius-lg);display:flex;align-items:center;justify-content:center}.login-brand-icon svg{width:28px;height:28px;color:#fff}.login-brand-text{font-size:28px;font-weight:700;letter-spacing:-.03em}.login-tagline{font-size:16px;color:var(--sidebar-text);text-align:center;max-width:280px;line-height:1.6}.login-right{flex:1;display:flex;align-items:center;justify-content:center;padding:40px;background:var(--bg)}.login-form-wrap{width:100%;max-width:400px}.login-form-wrap h1{font-size:24px;font-weight:700;letter-spacing:-.02em;margin-bottom:4px}.login-form-wrap p{color:var(--text-secondary);font-size:15px;margin-bottom:32px}.login-form{display:flex;flex-direction:column;gap:20px}.profile-wrap{max-width:640px}.profile-header{display:flex;align-items:center;gap:20px;margin-bottom:28px}.profile-avatar{width:72px;height:72px;border-radius:50%;background:var(--primary-soft);color:var(--primary);display:flex;align-items:center;justify-content:center;font-size:28px;font-weight:700;flex-shrink:0}.profile-avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover}.profile-name{font-size:20px;font-weight:700}.profile-email{font-size:14px;color:var(--text-secondary);margin-top:2px}.profile-form{display:flex;flex-direction:column;gap:20px}.profile-section{border-top:1px solid var(--border);padding-top:20px;margin-top:4px}.profile-section-title{font-size:15px;font-weight:600;margin-bottom:16px}.profile-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.profile-info-item label{font-size:12px;font-weight:500;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.04em}.profile-info-item p{font-size:15px;font-weight:500;margin-top:4px}.loading-screen{display:flex;align-items:center;justify-content:center;height:100vh;background:var(--bg)}.spinner{width:32px;height:32px;border:3px solid var(--border);border-top-color:var(--primary);border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.empty-state{text-align:center;padding:48px 24px;color:var(--text-secondary)}.empty-state svg{width:48px;height:48px;color:var(--text-muted);margin-bottom:16px}.empty-state p{font-size:15px}.link{color:var(--primary);font-weight:500;transition:color var(--transition)}.link:hover{color:var(--primary-hover)}.back-link{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:500;color:var(--text-secondary);margin-bottom:20px;transition:color var(--transition)}.back-link:hover{color:var(--text)}.back-link svg{width:16px;height:16px}
