:root {
  --bg-color: #080c14;
  --card-bg: rgba(17, 24, 39, 0.65);
  --card-border: rgba(255, 255, 255, 0.08);
  --input-bg: rgba(15, 23, 42, 0.6);
  --input-border: rgba(255, 255, 255, 0.12);
  
  --primary: #5c62ec;
  --primary-hover: #4a50d4;
  --primary-glow: rgba(92, 98, 236, 0.4);
  
  --accent-cyan: #00d2ff;
  --accent-green: #00e676;
  --accent-red: #ff3d00;
  --accent-orange: #ff9100;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #64748b;
  
  --glass-blur: blur(20px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Background Decorative Orbs */
.decor-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.45;
  pointer-events: none;
}
.orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(92, 98, 236, 0.6) 0%, rgba(0,0,0,0) 70%);
  top: -100px;
  right: 10%;
  animation: floatOrb 20s infinite alternate;
}
.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.4) 0%, rgba(0,0,0,0) 70%);
  bottom: -150px;
  left: 5%;
  animation: floatOrb 25s infinite alternate-reverse;
}
.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.25) 0%, rgba(0,0,0,0) 70%);
  top: 40%;
  left: 45%;
}

@keyframes floatOrb {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(40px) scale(1.1); }
}

.app-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 16px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 28px;
  color: var(--accent-cyan);
  filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.6));
}

.logo h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.logo h1 span {
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.server-status {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-indicator.online {
  background-color: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.status-indicator.offline {
  background-color: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red);
}

.status-text {
  font-size: 13px;
  font-weight: 500;
}

/* Dashboard Grid Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: 350px 1fr 400px;
  gap: 24px;
}

/* Common Card Styles */
.grid-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 12px;
}

.card-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-header h2 i {
  color: var(--accent-cyan);
}

.badge {
  background: rgba(92, 98, 236, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(92, 98, 236, 0.3);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

/* Column specific heights */
.agents-section, .control-section {
  height: 600px;
}

.logs-section {
  grid-column: span 3;
  margin-top: 24px;
  min-height: 350px;
}

/* Active Agents List */
.agents-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  flex-grow: 1;
  padding-right: 4px;
}

.agent-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.agent-item:hover {
  background: rgba(92, 98, 236, 0.08);
  border-color: rgba(92, 98, 236, 0.3);
  box-shadow: 0 4px 15px rgba(92, 98, 236, 0.1);
}

.agent-item.selected {
  border-color: var(--accent-cyan);
  background: rgba(0, 210, 255, 0.08);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.15);
}

/* Header actions for select all/none */
.header-actions {
  display: flex;
  gap: 8px;
  margin-right: auto;
  margin-left: 12px;
}

.header-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.header-action-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 8px var(--primary-glow);
}

/* Selected Agents Form Summary */
.selected-agents-summary {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  padding: 12px;
  min-height: 48px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.selected-agent-pill {
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.3);
  color: var(--accent-cyan);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.selected-agent-pill i {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 10px;
  transition: color 0.2s;
}

.selected-agent-pill i:hover {
  color: var(--accent-red);
}

.agent-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.agent-name {
  font-weight: 600;
  font-size: 14px;
}

.agent-os {
  font-size: 11px;
  color: var(--text-muted);
}

.agent-metrics-row {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-size: 12px;
}

.metric-indicator {
  flex-grow: 1;
}

.metric-label {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-size: 10px;
}

.bar-outer {
  background: rgba(255, 255, 255, 0.1);
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
}

.bar-inner {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.cpu-bar {
  background: var(--accent-cyan);
}

.ram-bar {
  background: var(--primary);
}

/* Empty & Loading States */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  gap: 12px;
  height: 100%;
}

.empty-state i {
  font-size: 32px;
  color: var(--text-dark);
}

/* Form Styling */
#task-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row {
  display: flex;
  gap: 16px;
}

.form-group.col {
  flex: 1;
}

label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

select, input {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 8px;
  padding: 12px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

select:focus, input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(92, 98, 236, 0.15);
}

/* Task Tab Buttons */
.task-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.tab-btn i {
  font-size: 14px;
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
}

/* Tab Contents */
.tab-contents {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 16px;
  border-radius: 12px;
  min-height: 150px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Execution Timing Radio Controls */
.timing-selector {
  display: flex;
  gap: 16px;
}

.radio-label {
  flex: 1;
  cursor: pointer;
}

.radio-label input {
  display: none;
}

.radio-custom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s;
}

.radio-label input:checked + .radio-custom {
  background: rgba(0, 210, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.1);
}

.schedule-config {
  background: rgba(255, 99, 132, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  padding: 12px;
  border-radius: 8px;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

.submit-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  transition: all 0.2s;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.submit-btn:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 20px rgba(92, 98, 236, 0.6);
  transform: translateY(-1px);
}

/* Schedules List Section */
.schedules-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  flex-grow: 1;
}

.schedule-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.2s;
}

.schedule-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.schedule-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.schedule-target {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-cyan);
}

.schedule-task {
  font-size: 13px;
  font-weight: 500;
}

.schedule-time {
  font-size: 11px;
  color: var(--text-muted);
}

.delete-sched-btn {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.2);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s;
}

.delete-sched-btn:hover {
  background: var(--accent-red);
  color: white;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

/* Logs Section styling */
.logs-section {
  max-height: 500px;
}

.clear-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.clear-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.logs-container {
  overflow-y: auto;
  flex-grow: 1;
  max-height: 350px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.logs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}

.logs-table th {
  background: rgba(15, 23, 42, 0.8);
  padding: 12px 16px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 10;
}

.logs-table td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  vertical-align: middle;
}

.logs-table tbody tr {
  transition: background-color 0.15s;
}

.logs-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.log-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 10px;
  text-transform: uppercase;
}

.log-status-badge.running {
  background: rgba(255, 145, 0, 0.15);
  color: var(--accent-orange);
  border: 1px solid rgba(255, 145, 0, 0.3);
}

.log-status-badge.success {
  background: rgba(0, 230, 118, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.log-status-badge.failed {
  background: rgba(255, 61, 0, 0.15);
  color: var(--accent-red);
  border: 1px solid rgba(255, 61, 0, 0.3);
}

.log-timestamp {
  color: var(--text-dark);
  white-space: nowrap;
}

.log-output-cell {
  font-family: 'Courier New', Courier, monospace;
  color: #a7f3d0;
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.log-output-cell.error {
  color: #fca5a5;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Responsive adjust */
@media (max-width: 1200px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .agents-section, .control-section, .schedules-section {
    height: auto;
    max-height: 500px;
  }
  .logs-section {
    grid-column: span 1;
  }
}

/* Modal Overlay */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeInModal 0.25s ease;
}

/* Modal Content Panel */
.modal-content {
  background: rgba(10, 15, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  width: 900px;
  max-width: 92%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  animation: slideUpModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUpModal {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-header h3 i {
  color: var(--accent-cyan);
}

.close-modal-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.close-modal-btn:hover {
  color: var(--accent-red);
}

/* Modal Search Bar */
.modal-search {
  display: flex;
  gap: 16px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  align-items: center;
}

.search-input-wrapper {
  position: relative;
  flex-grow: 1;
}

.search-input-wrapper input {
  width: 100%;
  padding-left: 40px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dark);
  font-size: 14px;
}

.refresh-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 20px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.refresh-btn:hover {
  background: rgba(0, 210, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Modal body tables */
.modal-body {
  flex-grow: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.processes-container {
  overflow-y: auto;
  flex-grow: 1;
  max-height: 50vh;
}

.processes-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.processes-table th {
  background: rgba(15, 23, 42, 0.9);
  padding: 14px 24px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 10;
}

.processes-table td {
  padding: 10px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.processes-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.processes-table tbody tr.hidden {
  display: none;
}

.kill-process-btn {
  background: rgba(255, 61, 0, 0.1);
  color: var(--accent-red);
  border: 1px solid rgba(255, 61, 0, 0.2);
  padding: 6px 12px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}

.kill-process-btn:hover {
  background: var(--accent-red);
  color: white;
  box-shadow: 0 0 10px rgba(255, 61, 0, 0.4);
}

/* Agent Action Button for processes */
.agent-header-btn {
  background: rgba(0, 210, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 210, 255, 0.2);
  padding: 6px 12px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.agent-header-btn:hover {
  background: var(--accent-cyan);
  color: #0b0f19;
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.4);
}

/* Login Page Specifics */
.login-body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.login-wrapper {
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

.login-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.login-logo {
  text-align: center;
  margin-bottom: 8px;
}

.login-logo h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  margin-top: 10px;
  letter-spacing: 0.5px;
}

.login-logo h2 span {
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-logo p {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 4px;
}

.error-box {
  background: rgba(255, 61, 0, 0.12);
  border: 1px solid rgba(255, 61, 0, 0.3);
  color: #ff8a80;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* Navigation Menu Bar */
.nav-menu-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 12px;
  padding: 8px 12px;
}

.menu-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.menu-tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.menu-tab-btn.active {
  color: var(--text-main);
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

/* Gallery Styles */
.screenshots-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.gallery-card {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: rgba(92, 98, 236, 0.4);
}

.gallery-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.gallery-image-wrapper:hover img {
  transform: scale(1.02);
}

.gallery-card-info {
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--card-border);
}

.gallery-agent-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-main);
}

.gallery-agent-type {
  font-size: 10px;
  text-transform: uppercase;
  background: rgba(92, 98, 236, 0.15);
  color: var(--primary);
  border: 1px solid rgba(92, 98, 236, 0.25);
  padding: 2px 6px;
  border-radius: 4px;
}

.gallery-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  width: 100%;
  height: 100%;
}

/* Agent List Mini Mode Styling */
#agents-list.mini-mode {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#agents-list.mini-mode .agent-item {
  padding: 8px 12px;
  border-radius: 8px;
}

#agents-list.mini-mode .agent-item .agent-os,
#agents-list.mini-mode .agent-item .agent-network,
#agents-list.mini-mode .agent-item .agent-metrics-row,
#agents-list.mini-mode .agent-item .agent-actions-row {
  display: none !important;
}
