* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: #f0f2f5; color: #333; min-height: 100vh; } /* Navbar */ .navbar { background: #1a1a2e; color: #fff; padding: 0 16px; position: sticky; top: 0; z-index: 100; } .nav-container { max-width: 100%; margin: 0 auto; display: flex; align-items: center; height: 56px; flex-wrap: wrap; } .nav-brand { color: #fff; font-size: 18px; font-weight: 600; text-decoration: none; white-space: nowrap; } .nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; margin-left: auto; } .nav-menu { display: flex; align-items: center; gap: 4px; margin-left: auto; } .nav-link { color: #ccc; text-decoration: none; padding: 8px 12px; border-radius: 6px; font-size: 14px; white-space: nowrap; transition: background 0.2s, color 0.2s; } .nav-link:hover { background: rgba(255,255,255,0.12); color: #fff; } .nav-active, .nav-link.nav-active { background: rgba(74,108,247,0.35); color: #fff; font-weight: 600; } .nav-user { color: #aaa; font-size: 14px; padding: 0 12px; white-space: nowrap; } .product-switcher { margin-left: 12px; } .product-switcher select option { color: #333; background: #fff; } @media (max-width: 768px) { .product-switcher { margin: 6px 0; width: 100%; } .product-switcher select { width: 100%; } } .nav-logout { color: #ff6b6b; } /* Container */ .container { max-width: 100%; margin: 0 auto; padding: 20px 16px; } /* Card */ .card { background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); padding: 24px; margin-bottom: 20px; } .card h2 { font-size: 20px; margin-bottom: 16px; color: #1a1a2e; } /* Tables */ .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; position: relative; } table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; min-width: 700px; } th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eee; white-space: nowrap; } th { background: #f8f9fa; font-weight: 600; color: #555; } tr:hover td { background: #f5f5f5; } th:last-child, td:last-child { position: sticky; right: 0; z-index: 2; } th:last-child { background: #f8f9fa; box-shadow: -4px 0 8px rgba(0,0,0,0.06); } td:last-child { background: #fff; } tr:hover td:last-child { background: #f5f5f5; } /* Forms */ .form-group { margin-bottom: 16px; } .form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; color: #555; } .form-control { width: 100%; max-width: 500px; padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; transition: border-color 0.2s; } .form-control:focus { outline: none; border-color: #4a6cf7; box-shadow: 0 0 0 3px rgba(74,108,247,0.15); } textarea.form-control { min-height: 100px; resize: vertical; } select.form-control { max-width: 300px; } /* Buttons */ .btn { display: inline-block; padding: 10px 20px; border: none; border-radius: 6px; font-size: 14px; cursor: pointer; text-decoration: none; transition: background 0.2s, opacity 0.2s; } .btn:hover { opacity: 0.9; } .btn-primary { background: #4a6cf7; color: #fff; } .btn-success { background: #22c55e; color: #fff; } .btn-danger { background: #ef4444; color: #fff; } .btn-warning { background: #f59e0b; color: #fff; } .btn-default { background: #fff; color: #666; border: 1px solid #ddd; } .btn-default:hover { background: #f5f5f5; } .btn-info { background: #3b82f6; color: #fff; } .btn-sm { padding: 6px 12px; font-size: 12px; } /* Badges */ .badge { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; } .badge-warning { background: #fef3c7; color: #92400e; } .badge-success { background: #dcfce7; color: #166534; } .badge-danger { background: #fee2e2; color: #991b1b; } .badge-info { background: #dbeafe; color: #1e40af; } .badge-secondary { background: #e2e8f0; color: #475569; } /* Alert */ .alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; } .alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; } .alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; } .alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; } .alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; } /* Auth pages */ .auth-page { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: #f0f2f5; } .auth-card { background: #fff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.1); padding: 32px; width: 100%; max-width: 400px; } .auth-card h1 { text-align: center; margin-bottom: 24px; font-size: 24px; color: #1a1a2e; } .auth-card .form-control { max-width: 100%; } .auth-card .btn { width: 100%; } .auth-card .captcha-row { display: flex; gap: 10px; align-items: center; } .auth-card .captcha-row .form-control { flex: 1; } .auth-card .captcha-row img { border-radius: 6px; cursor: pointer; height: 42px; } .auth-footer { text-align: center; margin-top: 16px; font-size: 14px; color: #777; } .auth-footer a { color: #4a6cf7; text-decoration: none; } /* Pagination */ .pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 16px; flex-wrap: wrap; } .pagination a, .pagination span:not(.page-jump span) { display: inline-block; padding: 6px 12px; border-radius: 6px; font-size: 14px; text-decoration: none; color: #4a6cf7; background: #fff; border: 1px solid #ddd; } .pagination .active { background: #4a6cf7; color: #fff; border-color: #4a6cf7; } .pagination a:hover { background: #eef2ff; } .pagination span.disabled { color: #bbb; background: #f9f9f9; border-color: #eee; cursor: not-allowed; } .pagination span.ellipsis { border: none; color: #999; background: transparent; padding: 6px 4px; } .pagination .page-jump { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; font-size: 13px; color: #666; } .pagination .page-jump input[type="number"] { width: 60px; padding: 5px 6px; border: 1px solid #ddd; border-radius: 4px; font-size: 13px; text-align: center; } .pagination .page-jump button { padding: 5px 10px; border: 1px solid #4a6cf7; border-radius: 4px; background: #4a6cf7; color: #fff; cursor: pointer; font-size: 13px; } .pagination .page-jump button:hover { background: #3b5de7; } /* Stats grid */ .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; } .stat-card { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); text-align: center; } .stat-card .stat-value { font-size: 28px; font-weight: 700; color: #1a1a2e; } .stat-card .stat-label { font-size: 14px; color: #777; margin-top: 4px; } /* Modal */ .modal { display: none; position: fixed; z-index: 200; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); justify-content: center; align-items: center; } .modal.active { display: flex; } .modal-content { background: #fff; border-radius: 12px; padding: 24px; width: 90%; max-width: 500px; max-height: 80vh; overflow-y: auto; } .modal-content h3 { margin-bottom: 16px; } .modal-close { float: right; font-size: 24px; cursor: pointer; color: #999; } /* Action buttons group */ .action-group { display: flex; gap: 6px; flex-wrap: wrap; } /* File input */ .form-control-file { max-width: 500px; } /* Responsive */ @media (max-width: 768px) { .nav-toggle { display: block; } .nav-menu { display: none; width: 100%; flex-direction: column; padding: 8px 0 16px; gap: 2px; } .nav-menu.active { display: flex; } .nav-link, .nav-user { width: 100%; padding: 10px 12px; } .card { padding: 16px; } th, td { padding: 8px 10px; font-size: 13px; } .auth-card { margin: 16px; padding: 24px; } .action-group { flex-direction: column; } .action-group .btn-sm { width: 100%; text-align: center; } }