:root { --primary: #1a56db; --primary-dark: #1648b8; --primary-light: #e8effc; --secondary: #6b7280; --accent: #10b981; --danger: #ef4444; --warning: #f59e0b; --text-primary: #111827; --text-secondary: #6b7280; --text-muted: #9ca3af; --bg-primary: #f9fafb; --bg-white: #ffffff; --bg-sidebar: #1f2937; --bg-sidebar-hover: #374151; --border-color: #e5e7eb; --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05); --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); --radius-sm: 4px; --radius-md: 8px; --radius-lg: 12px; --sidebar-width: 260px; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; font-size: 14px; line-height: 1.5; color: var(--text-primary); background-color: var(--bg-primary); min-height: 100vh; } .app-layout { display: flex; min-height: 100vh; } .sidebar { width: var(--sidebar-width); background-color: var(--bg-sidebar); color: #fff; display: flex; flex-direction: column; position: fixed; top: 0; left: 0; height: 100vh; z-index: 100; transition: transform 0.3s ease; } .sidebar-header { padding: 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.1); } .sidebar-logo { font-size: 22px; font-weight: 700; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; } .sidebar-logo svg { width: 28px; height: 28px; } .sidebar-subtitle { font-size: 11px; color: rgba(255,255,255,0.5); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.5px; } .sidebar-nav { flex: 1; padding: 16px 12px; overflow-y: auto; } .nav-section { margin-bottom: 24px; } .nav-section-title { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.5px; padding: 0 12px; margin-bottom: 8px; } .nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: rgba(255,255,255,0.7); text-decoration: none; border-radius: var(--radius-md); transition: all 0.2s ease; margin-bottom: 2px; } .nav-item svg { width: 20px; height: 20px; flex-shrink: 0; } .nav-item:hover { background-color: var(--bg-sidebar-hover); color: #fff; } .nav-item.active { background-color: var(--primary); color: #fff; } .nav-badge { margin-left: auto; background-color: var(--accent); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; } .sidebar-footer { padding: 16px; border-top: 1px solid rgba(255,255,255,0.1); } .user-info { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--radius-md); } .user-avatar { width: 36px; height: 36px; background-color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; } .user-details { flex: 1; min-width: 0; } .user-name { font-weight: 600; font-size: 13px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .user-role { font-size: 11px; color: rgba(255,255,255,0.5); } .main-content { flex: 1; margin-left: var(--sidebar-width); display: flex; flex-direction: column; min-height: 100vh; } .topbar { background-color: var(--bg-white); border-bottom: 1px solid var(--border-color); padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; } .topbar-left { display: flex; align-items: center; gap: 16px; } .page-title { font-size: 18px; font-weight: 600; color: var(--text-primary); } .breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); } .breadcrumb a { color: var(--primary); text-decoration: none; } .breadcrumb a:hover { text-decoration: underline; } .topbar-right { display: flex; align-items: center; gap: 12px; } .search-box { display: flex; align-items: center; gap: 8px; background-color: var(--bg-primary); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 8px 12px; width: 280px; } .search-box svg { width: 18px; height: 18px; color: var(--text-muted); } .search-box input { border: none; background: transparent; outline: none; font-size: 13px; width: 100%; color: var(--text-primary); } .search-box input::placeholder { color: var(--text-muted); } .icon-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); border: none; background: transparent; cursor: pointer; color: var(--text-secondary); position: relative; transition: all 0.2s ease; } .icon-btn:hover { background-color: var(--bg-primary); color: var(--text-primary); } .icon-btn svg { width: 20px; height: 20px; } .icon-btn .badge { position: absolute; top: 4px; right: 4px; width: 8px; height: 8px; background-color: var(--danger); border-radius: 50%; } .page-content { flex: 1; padding: 24px; } .page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; } .page-header h1 { font-size: 24px; font-weight: 600; color: var(--text-primary); } .page-header-actions { display: flex; gap: 12px; } .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 24px; } .stat-card { background-color: var(--bg-white); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); } .stat-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; } .stat-card-icon { width: 44px; height: 44px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; } .stat-card-icon.blue { background-color: #dbeafe; color: var(--primary); } .stat-card-icon.green { background-color: #d1fae5; color: var(--accent); } .stat-card-icon.yellow { background-color: #fef3c7; color: var(--warning); } .stat-card-icon.red { background-color: #fee2e2; color: var(--danger); } .stat-card-icon svg { width: 22px; height: 22px; } .stat-card-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; } .stat-card-value { font-size: 28px; font-weight: 700; color: var(--text-primary); } .stat-card-trend { display: flex; align-items: center; gap: 4px; font-size: 12px; margin-top: 8px; } .stat-card-trend.up { color: var(--accent); } .stat-card-trend.down { color: var(--danger); } .cards-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; } .card { background-color: var(--bg-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); overflow: hidden; } .card-header { padding: 16px 20px; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; } .card-title { font-size: 15px; font-weight: 600; color: var(--text-primary); } .card-body { padding: 20px; } .card-footer { padding: 12px 20px; border-top: 1px solid var(--border-color); background-color: var(--bg-primary); } .data-table { width: 100%; border-collapse: collapse; } .data-table th { text-align: left; padding: 12px 16px; font-size: 12px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border-color); background-color: var(--bg-primary); } .data-table td { padding: 14px 16px; border-bottom: 1px solid var(--border-color); font-size: 13px; color: var(--text-primary); } .data-table tr:last-child td { border-bottom: none; } .data-table tr:hover td { background-color: var(--bg-primary); } .status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; } .status-badge.active { background-color: #d1fae5; color: #065f46; } .status-badge.pending { background-color: #fef3c7; color: #92400e; } .status-badge.inactive { background-color: #f3f4f6; color: #6b7280; } .btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--radius-md); font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer; border: none; transition: all 0.2s ease; } .btn svg { width: 18px; height: 18px; } .btn-primary { background-color: var(--primary); color: #fff; } .btn-primary:hover { background-color: var(--primary-dark); } .btn-secondary { background-color: var(--bg-white); color: var(--text-primary); border: 1px solid var(--border-color); } .btn-secondary:hover { background-color: var(--bg-primary); } .btn-danger { background-color: var(--danger); color: #fff; } .btn-danger:hover { background-color: #dc2626; } .btn-sm { padding: 6px 12px; font-size: 12px; } .btn-sm svg { width: 14px; height: 14px; } .form-group { margin-bottom: 20px; } .form-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-primary); margin-bottom: 6px; } .form-input { width: 100%; padding: 10px 14px; border: 1px solid var(--border-color); border-radius: var(--radius-md); font-size: 14px; color: var(--text-primary); background-color: var(--bg-white); transition: border-color 0.2s ease, box-shadow 0.2s ease; } .form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); } .form-input::placeholder { color: var(--text-muted); } .form-textarea { resize: vertical; min-height: 100px; } .form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; } .checkbox-group { display: flex; align-items: center; gap: 8px; } .checkbox-group input[type="checkbox"] { width: 18px; height: 18px; border-radius: 4px; border: 1px solid var(--border-color); cursor: pointer; } .checkbox-group label { font-size: 13px; color: var(--text-primary); cursor: pointer; } .form-actions { display: flex; gap: 12px; justify-content: flex-end; padding-top: 16px; border-top: 1px solid var(--border-color); } .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; visibility: hidden; transition: all 0.2s ease; } .modal-overlay.active { opacity: 1; visibility: visible; } .modal { background-color: var(--bg-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 500px; max-height: 90vh; overflow: auto; } .modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; } .modal-title { font-size: 18px; font-weight: 600; } .modal-close { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); border: none; background: transparent; cursor: pointer; color: var(--text-secondary); } .modal-close:hover { background-color: var(--bg-primary); } .modal-body { padding: 24px; } .modal-footer { padding: 16px 24px; border-top: 1px solid var(--border-color); display: flex; gap: 12px; justify-content: flex-end; } .progress-bar { height: 8px; background-color: var(--border-color); border-radius: 4px; overflow: hidden; } .progress-bar-fill { height: 100%; background-color: var(--primary); transition: width 0.3s ease; } .avatar { width: 40px; height: 40px; border-radius: 50%; background-color: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; } .avatar-sm { width: 32px; height: 32px; font-size: 12px; } .avatar-lg { width: 56px; height: 56px; font-size: 18px; } .avatar-group { display: flex; } .avatar-group .avatar { margin-left: -8px; border: 2px solid var(--bg-white); } .avatar-group .avatar:first-child { margin-left: 0; } .empty-state { text-align: center; padding: 48px 24px; } .empty-state svg { width: 64px; height: 64px; color: var(--text-muted); margin-bottom: 16px; } .empty-state h3 { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; } .empty-state p { font-size: 13px; color: var(--text-secondary); } .activity-list { list-style: none; } .activity-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-color); } .activity-item:last-child { border-bottom: none; } .activity-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .activity-icon.blue { background-color: var(--primary-light); color: var(--primary); } .activity-icon.green { background-color: #d1fae5; color: var(--accent); } .activity-icon.yellow { background-color: #fef3c7; color: var(--warning); } .activity-icon svg { width: 18px; height: 18px; } .activity-content { flex: 1; } .activity-text { font-size: 13px; color: var(--text-primary); margin-bottom: 2px; } .activity-text strong { font-weight: 600; } .activity-time { font-size: 11px; color: var(--text-muted); } .list-item { display: flex; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border-color); transition: background-color 0.2s ease; } .list-item:hover { background-color: var(--bg-primary); } .list-item:last-child { border-bottom: none; } .list-item-icon { width: 40px; height: 40px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-right: 14px; background-color: var(--primary-light); color: var(--primary); } .list-item-content { flex: 1; min-width: 0; } .list-item-title { font-size: 14px; font-weight: 500; color: var(--text-primary); } .list-item-subtitle { font-size: 12px; color: var(--text-secondary); margin-top: 2px; } .list-item-actions { display: flex; gap: 8px; } .tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-color); margin-bottom: 20px; } .tab { padding: 12px 16px; font-size: 13px; font-weight: 500; color: var(--text-secondary); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.2s ease; } .tab:hover { color: var(--text-primary); } .tab.active { color: var(--primary); border-bottom-color: var(--primary); } .alert { padding: 12px 16px; border-radius: var(--radius-md); font-size: 13px; margin-bottom: 16px; } .alert-success { background-color: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; } .alert-warning { background-color: #fef3c7; color: #92400e; border: 1px solid #fde68a; } .alert-danger { background-color: #fee2e2; color: #991b1b; border: 1px solid #fecaca; } .alert-info { background-color: var(--primary-light); color: var(--primary-dark); border: 1px solid #bfdbfe; } .toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 2000; display: flex; flex-direction: column; gap: 12px; } .toast { background-color: var(--bg-white); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 14px 18px; display: flex; align-items: center; gap: 12px; min-width: 300px; animation: slideIn 0.3s ease; } @keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } .toast-icon { width: 20px; height: 20px; } .toast-success .toast-icon { color: var(--accent); } .toast-error .toast-icon { color: var(--danger); } .toast-warning .toast-icon { color: var(--warning); } .toast-message { flex: 1; font-size: 13px; color: var(--text-primary); } .toast-close { width: 20px; height: 20px; border: none; background: transparent; cursor: pointer; color: var(--text-muted); } .auth-layout { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1a56db 0%, #1e40af 100%); padding: 20px; } .login-container { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1a56db 0%, #1e40af 100%); padding: 20px; } .login-box { background-color: var(--bg-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 420px; padding: 40px; } .login-box h2 { text-align: center; font-size: 22px; font-weight: 600; color: var(--text-primary); margin-bottom: 24px; } .login-logo { text-align: center; margin-bottom: 32px; } .login-logo .logo { font-size: 28px; font-weight: 700; color: var(--text-primary); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; } .login-logo .logo svg { width: 32px; height: 32px; color: var(--primary); } .login-logo p { color: var(--text-secondary); font-size: 13px; margin-top: 8px; } @media (max-width: 768px) { .login-box { padding: 24px; } } .auth-box { background-color: var(--bg-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 420px; padding: 40px; } .auth-logo { text-align: center; margin-bottom: 32px; } .auth-logo .logo { font-size: 28px; font-weight: 700; color: var(--text-primary); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; } .auth-logo .logo svg { width: 32px; height: 32px; color: var(--primary); } .auth-logo p { color: var(--text-secondary); font-size: 13px; margin-top: 8px; } .auth-box h2 { text-align: center; font-size: 22px; font-weight: 600; color: var(--text-primary); margin-bottom: 24px; } .auth-footer { text-align: center; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border-color); font-size: 13px; color: var(--text-secondary); } .auth-footer a { color: var(--primary); text-decoration: none; } .auth-footer a:hover { text-decoration: underline; } .error-message { background-color: #fee2e2; color: #991b1b; padding: 12px 16px; border-radius: var(--radius-md); font-size: 13px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; } .error-message svg { width: 18px; height: 18px; flex-shrink: 0; } .success-message { background-color: #d1fae5; color: #065f46; padding: 12px 16px; border-radius: var(--radius-md); font-size: 13px; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; } .success-message svg { width: 18px; height: 18px; flex-shrink: 0; } @media (max-width: 1200px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } .cards-grid { grid-template-columns: 1fr; } } @media (max-width: 768px) { .sidebar { transform: translateX(-100%); } .sidebar.open { transform: translateX(0); } .main-content { margin-left: 0; } .topbar { padding: 0 16px; } .page-content { padding: 16px; } .stats-grid { grid-template-columns: 1fr; } .search-box { width: 200px; } .page-header { flex-direction: column; align-items: flex-start; gap: 12px; } .auth-box { padding: 24px; } } footer { background-color: var(--bg-white); border-top: 1px solid var(--border-color); padding: 16px 24px; text-align: center; font-size: 12px; color: var(--text-secondary); margin-left: var(--sidebar-width); }