.admin-dashboard { padding: 24px; max-width: 1200px; margin: 0 auto; } .dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; } .refresh-btn { padding: 8px 16px; background-color: #f0f0f0; border: 1px solid #ccc; border-radius: 4px; cursor: pointer; } .refresh-btn:hover { background-color: #e0e0e0; } .summary-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; margin-bottom: 32px; } .card { background: white; padding: 24px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); } .card-title { color: #666; font-size: 14px; margin-bottom: 8px; } .card-value { font-size: 24px; font-weight: bold; color: #333; } .card-value.profit { color: #2e7d32; } .card-value.loss { color: #c62828; } .card-desc { font-size: 12px; color: #888; margin-top: 4px; } .stats-card { margin-top: 24px; background: #f8f9fa; padding: 1.5rem; border-radius: 8px; } .stats-card-header { margin-bottom: 1rem; } .stats-card-header h3 { margin: 0; font-size: 1.1rem; color: #333; } .stats-section { margin-bottom: 1.5rem; } .stats-section h4 { margin: 0 0 8px 0; font-size: 14px; color: #555; } .stats-table-wrap { overflow-x: auto; } .stats-table { width: 100%; border-collapse: collapse; font-size: 13px; } .stats-table th, .stats-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid #eee; } .stats-table th { background: #f0f0f0; font-weight: 600; } .stats-table .positive { color: #2e7d32; } .stats-table .negative { color: #c62828; } .stats-empty { color: #999; font-size: 13px; margin: 0; } .suggestion-block { margin-bottom: 12px; } .suggestion-block ul { margin: 4px 0 0 0; padding-left: 20px; } .suggestion-block.blacklist .suggestion-symbol { color: #c62828; } .suggestion-block.whitelist .suggestion-symbol { color: #2e7d32; } .positive { color: #2e7d32; } .negative { color: #c62828; } .accounts-section { background: white; padding: 24px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); } .accounts-section h3 { margin-top: 0; margin-bottom: 16px; } .table-container { overflow-x: auto; } .data-table { width: 100%; border-collapse: collapse; } .data-table th, .data-table td { padding: 12px; text-align: left; border-bottom: 1px solid #eee; } .data-table th { background-color: #f8f9fa; font-weight: 600; color: #555; } .status-badge { display: inline-block; padding: 4px 8px; border-radius: 4px; font-size: 12px; } .status-badge.active { background-color: #e8f5e9; color: #2e7d32; } .status-badge.disabled { background-color: #ffebee; color: #c62828; } .status-badge.running { background-color: #e3f2fd; color: #1976d2; } .status-badge.stopped { background-color: #f5f5f5; color: #616161; } .profit { color: #2e7d32; font-weight: 500; } .loss { color: #c62828; font-weight: 500; } /* User Group Styles */ .users-section { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; } .users-section-grid { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; } @media (max-width: 900px) { .users-section-grid { grid-template-columns: 1fr; } } .create-user-block { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); border: 1px solid #e0e0e0; } .create-user-title { margin: 0 0 6px 0; font-size: 1.1rem; color: #333; } .create-user-desc { margin: 0 0 16px 0; font-size: 13px; color: #666; } .create-user-card { height: auto; box-shadow: none; padding: 0; border: none; } .create-user-card .create-user-card-heading { display: none; } .user-group-card { background: white; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); overflow: hidden; margin-bottom: 16px; } .user-group-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; background-color: #f8f9fa; cursor: pointer; user-select: none; } .user-group-header:hover { background-color: #f0f2f5; } .user-info { display: flex; align-items: center; gap: 12px; } .expand-icon { font-size: 12px; color: #666; transition: transform 0.2s; } .expand-icon.expanded { transform: rotate(90deg); } .user-name { font-weight: 600; font-size: 16px; } .user-role-badge { font-size: 12px; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; } .user-role-badge.admin { background-color: #e3f2fd; color: #1976d2; } .user-role-badge.user { background-color: #f5f5f5; color: #616161; } .account-count { color: #888; font-size: 14px; } .user-actions { display: flex; gap: 12px; } .btn-text-action { background: none; border: none; cursor: pointer; font-size: 14px; padding: 4px 8px; border-radius: 4px; } .btn-text-action:hover { background-color: rgba(0,0,0,0.05); } .btn-text-action:disabled { color: #ccc; cursor: not-allowed; } .btn-text-action.start { color: #2e7d32; } .btn-text-action.stop { color: #c62828; } .user-accounts-table { padding: 16px 24px; border-top: 1px solid #eee; } .no-accounts { color: #999; text-align: center; padding: 20px; } .btn-mini { padding: 4px 12px; font-size: 12px; border: none; border-radius: 4px; cursor: pointer; color: white; } .btn-mini:disabled { opacity: 0.5; cursor: not-allowed; } .btn-mini.start { background-color: #4caf50; } .btn-mini.stop { background-color: #f44336; } /* Add Account Section in User Group */ .add-account-section { margin-top: 16px; padding-top: 16px; border-top: 1px dashed #eee; } .add-account-section h4 { margin-top: 0; margin-bottom: 12px; font-size: 14px; color: #666; } .add-account-form { display: flex; gap: 12px; align-items: center; } .add-account-form select { padding: 6px 12px; border: 1px solid #ddd; border-radius: 4px; min-width: 150px; } /* Account Manager Section */ .accounts-manager-section { margin-top: 40px; } .accounts-manager-section h3 { margin-bottom: 24px; } .accounts-manager-grid { display: grid; grid-template-columns: 350px 1fr; gap: 24px; align-items: start; } @media (max-width: 900px) { .accounts-manager-grid { grid-template-columns: 1fr; } } .create-account-card { height: auto; } .account-list-card { min-height: 400px; } .form-group { margin-bottom: 16px; } .form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 14px; color: #555; } .form-group input[type="text"], .form-group input[type="password"], .form-group select { width: 100%; padding: 8px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; box-sizing: border-box; } .form-group input:focus, .form-group select:focus { border-color: #2196f3; outline: none; } .form-group.checkbox label { display: flex; align-items: center; gap: 8px; font-weight: normal; cursor: pointer; } .form-group.checkbox input[type="checkbox"] { width: auto; margin: 0; } .btn-primary { background-color: #2196f3; color: white; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer; font-size: 14px; transition: background-color 0.2s; } .btn-primary:hover { background-color: #1976d2; } .btn-primary:disabled { background-color: #bbdefb; cursor: not-allowed; } .btn-primary.full-width { width: 100%; } .btn-secondary { background-color: #f5f5f5; color: #333; border: 1px solid #ddd; padding: 8px 16px; border-radius: 4px; cursor: pointer; font-size: 14px; } .btn-secondary:hover { background-color: #e0e0e0; } .btn-icon { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #ddd; background: white; border-radius: 4px; cursor: pointer; color: #666; font-size: 14px; } .btn-icon:hover { background-color: #f5f5f5; color: #333; } .btn-icon.danger { color: #d32f2f; border-color: #ffcdd2; } .btn-icon.danger:hover { background-color: #ffebee; } .btn-sm { padding: 4px 8px; font-size: 12px; border: 1px solid #ddd; background: white; border-radius: 4px; cursor: pointer; color: #666; } .btn-sm:hover { background-color: #f5f5f5; color: #333; } .btn-sm:disabled { opacity: 0.5; cursor: not-allowed; } .action-buttons { display: flex; gap: 8px; } .message { padding: 10px 16px; border-radius: 4px; margin-bottom: 16px; font-size: 14px; } .message.success { background-color: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; } .message.error { background-color: #ffebee; color: #c62828; border: 1px solid #ffcdd2; } /* Modal */ .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 1000; } .modal-content { background: white; padding: 24px; border-radius: 8px; width: 100%; max-width: 400px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); } .modal-content h4 { margin-top: 0; margin-bottom: 20px; font-size: 18px; } .modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; } .role-tag { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 11px; text-transform: uppercase; background-color: #f0f0f0; color: #666; }