@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

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

:root {
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --indigo-50: #eef2ff;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --neon: #00ffcc;
  --red-50: #fef2f2;
  --red-100: #fee2e2;
  --red-600: #dc2626;
  --border-color: #e5e7eb;
  --bg-card: #ffffff;
  --text-primary: #111827;
  --text-secondary: #6b7280;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  background: linear-gradient(to bottom right, var(--blue-50), var(--indigo-50));
  padding: 1rem;
  margin: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 1.5rem;
  width: 100%;
}

.form-group label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.form-group label span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.25rem;
}

.input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border: 2px solid var(--gray-200);
  border-radius: 0.5rem;
  background-color: white;
  transition: all 0.2s ease;
  color: var(--gray-900);
}

.input:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.preview-card {
  background: black;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  position: relative;
  min-height: 500px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.preview-gradient-top,
.preview-gradient-bottom {
  position: absolute;
  left: 0;
  right: 0;
  height: 3rem;
  z-index: 1;
}

.preview-gradient-top {
  top: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
}

.preview-gradient-bottom {
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.preview-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.preview-title h2 {
  font-family: 'Press Start 2P', cursive;
  color: var(--neon);
  text-align: center;
  font-size: 2rem;
  text-transform: uppercase;
  text-shadow: 2px 2px 0px rgba(0, 255, 204, 0.3),
               4px 4px 0px rgba(0, 255, 204, 0.2);
  letter-spacing: 2px;
  animation: glow 1.5s ease-in-out infinite alternate;
}

.preview-info {
  border: 1px solid rgba(0, 255, 204, 0.3);
  border-radius: 0.5rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
}

.info-line {
  color: var(--neon);
  font-family: monospace;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.trading-pairs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  color: rgba(0, 255, 204, 0.8);
  font-family: monospace;
  font-size: 0.875rem;
}

.input-prompt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--neon);
  font-family: monospace;
}

.cursor {
  width: 0.5rem;
  height: 1.5rem;
  background: var(--neon);
  animation: blink 1s step-end infinite;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-left i {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue-500);
  padding: 0.75rem;
  border-radius: 12px;
}

.header h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
}

.strategy-grid,
.payment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  width: 100%;
}

.strategy-card,
.payment-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem;
  border: 2px solid var(--gray-200);
  border-radius: 0.5rem;
  background: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  width: 100%;
}

.strategy-card i,
.payment-card i {
  font-size: 1.25rem;
  color: var(--blue-600);
  margin-bottom: 0.5rem;
}

.strategy-card span,
.payment-card span {
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

.strategy-card:hover,
.payment-card:hover {
  transform: scale(1.02);
  border-color: var(--blue-200);
}

.strategy-card:active,
.payment-card:active {
  transform: scale(0.98);
}

.strategy-card.active,
.payment-card.active {
  border-color: var(--blue-600);
  background: var(--blue-50);
}

.strategy-card:disabled,
.payment-card:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.strategy-card:disabled:hover,
.payment-card:disabled:hover {
  transform: none;
  border-color: var(--gray-200);
}

.generate-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  background: var(--blue-600);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
  margin-top: auto;
}

.generate-btn:hover:not(:disabled) {
  background: var(--blue-700);
}

.generate-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.generate-btn.loading {
  position: relative;
}

.generate-btn.loading span {
  visibility: hidden;
}

.generate-btn.loading::after {
  content: "";
  position: absolute;
  width: 1rem;
  height: 1rem;
  border: 2px solid white;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

.custom-options {
  background: var(--blue-50);
  border-radius: 0.75rem;
  border: 1px solid var(--blue-500);
  transition: all 0.3s ease;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
}

.custom-options.show {
  opacity: 1;
  max-height: 1200px;
  margin: 1rem 0;
  padding: 1.5rem;
}

.custom-options .form-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.custom-options label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.custom-options label span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-700);
  font-weight: 500;
}

.custom-options label span i {
  color: var(--blue-600);
  font-size: 1.25rem;
}

.custom-options .input {
  background: white;
  border: 1px solid var(--blue-500);
  padding: 0.75rem;
  font-size: 0.875rem;
}

.text-blue {
  color: #3b82f6;
}

.hidden {
  display: none;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes blink {
  from, to {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes glow {
  from {
    text-shadow: 0 0 5px var(--neon),
                 0 0 10px var(--neon),
                 0 0 15px var(--neon);
  }
  to {
    text-shadow: 0 0 10px var(--neon),
                 0 0 20px var(--neon),
                 0 0 30px var(--neon);
  }
}

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

.animate-slide-left {
  animation: slideInLeft 0.6s ease-out backwards;
}

.animate-slide-right {
  animation: slideInRight 0.6s ease-out backwards;
}

.animate-slide-up {
  animation: slideInUp 0.6s ease-out backwards;
}

.form-group:nth-child(2) {
  animation: slideInLeft 0.6s ease-out 0.1s backwards;
}

.form-group:nth-child(3) {
  animation: slideInLeft 0.6s ease-out 0.2s backwards;
}

.preview-title {
  animation: slideInRight 0.6s ease-out 0.2s backwards;
}

.preview-info {
  animation: slideInRight 0.6s ease-out 0.3s backwards;
}

.trading-pairs {
  animation: slideInRight 0.6s ease-out 0.4s backwards;
}

.input-prompt {
  animation: slideInRight 0.6s ease-out 0.5s backwards;
}

.custom-options.show .form-group:nth-child(1) {
  animation: slideInUp 0.4s ease-out 0.1s backwards;
}

.custom-options.show .form-group:nth-child(2) {
  animation: slideInUp 0.4s ease-out 0.2s backwards;
}

@media (max-width: 1200px) {
  .container {
    grid-template-columns: 1fr;
  }
  
  .preview-card {
    margin-top: 1.5rem;
  }
}

@media (max-width: 768px) {
  .custom-options .form-group {
    grid-template-columns: 1fr;
  }
  
  .toggles {
    grid-template-columns: 1fr;
  }
  
  #executablesList .executable-item,
  .executable-header {
    grid-template-columns: 2fr 1fr 1fr;
  }
  
  .executable-type {
    display: none;
  }
  
  .executable-header div:nth-child(3) {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    padding: 0.5rem;
  }
  
  .container {
    padding: 0;
  }
  
  .card,
  .preview-card,
  .executables-card {
    padding: 1rem;
    border-radius: 0.75rem;
  }
  
  #executablesList .executable-item,
  .executable-header {
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
  }
  
  .executable-strategy {
    display: none;
  }
  
  .executable-header div:nth-child(2) {
    display: none;
  }
  
  .strategy-grid, 
  .payment-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  
  .strategy-card,
  .payment-card {
    padding: 0.5rem 0.25rem;
  }
  
  .strategy-card i,
  .payment-card i {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }
  
  .strategy-card span,
  .payment-card span {
    font-size: 0.7rem;
  }
}

/* Login Page Styles */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.checkbox {
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.2s;
}

.checkbox:checked {
  background-color: var(--blue-600);
  border-color: var(--blue-600);
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
}

.form-footer a {
  color: var(--blue-600);
  text-decoration: none;
  transition: all 0.2s;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
}

.form-footer a:hover {
  color: var(--blue-700);
  background: var(--blue-100);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-footer a:active {
  transform: translateY(0);
}

#registerBtn {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  border: none;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#registerBtn:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-800));
  transform: translateY(-1px);
  box-shadow: 0 6px 8px -1px rgba(0, 0, 0, 0.1), 0 3px 6px -1px rgba(0, 0, 0, 0.06);
}

#registerBtn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

#registerBtn i {
  margin-left: 0.5rem;
  font-size: 1.25rem;
}

.separator {
  color: var(--gray-200);
}

.status {
  color: #ef4444;
}

.status.online {
  color: #22c55e;
}

/* Executable Cards */
.executables-container {
  margin-top: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
}

#userExecutables {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.25s ease;
  margin-bottom: 2rem;
}

#userExecutables .header {
  padding: 1.25rem 1.5rem;
  background: linear-gradient(to right, #f8f9fa, #f1f4f9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#userExecutables h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#userExecutables h2:before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 18px;
  background: #3498db;
  border-radius: 2px;
  margin-right: 8px;
}

#executablesList {
  padding: 0;
  width: 100%;
}

/* Table header styling */
.executable-table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 120px;
  padding: 0.85rem 1.5rem;
  background: #f8fafc;
  border-bottom: 2px solid #e9ecef;
  font-weight: 600;
  color: #64748b;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Executable item styling */
.executable-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 120px;
  padding: 1rem 1.5rem;
  align-items: center;
  border-bottom: 1px solid #edf2f7;
  transition: all 0.2s ease;
  background: transparent;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.executable-item:hover {
  background: rgba(236, 246, 255, 0.6);
  transform: none;
}

.executable-item:last-child {
  border-bottom: none;
}

/* Executable name styling */
.executable-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #2d3748;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.executable-name i {
  color: #3498db;
  font-size: 1rem;
}

/* No description text styling */
.executable-description {
  color: #718096;
  font-size: 0.8rem;
  margin: 0;
}

/* Strategy badge styling */
.strategy-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.4px;
  background: rgba(52, 152, 219, 0.1);
  color: #3498db;
  text-transform: capitalize;
}

.strategy-badge.standard {
  background: rgba(52, 152, 219, 0.1);
  color: #3498db;
}

.strategy-badge.advanced {
  background: rgba(155, 89, 182, 0.1);
  color: #9b59b6;
}

.strategy-badge.custom {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}

.strategy-badge:before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 6px;
  background-color: currentColor;
}

/* Type badge styling */
.type-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(46, 204, 113, 0.1);
  color: #2ecc71;
  text-transform: capitalize;
}

.type-badge:before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 6px;
  background-color: currentColor;
}

/* Action buttons styling */
.executable-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: flex-end;
  margin: 0;
}

.action-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #718096;
  position: relative;
  overflow: hidden;
}

.action-btn:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: currentColor;
  opacity: 0.08;
  border-radius: inherit;
  transition: opacity 0.2s ease;
}

.action-btn:hover:after {
  opacity: 0.12;
}

.action-btn.download {
  color: #2ecc71;
}

.action-btn.edit {
  color: #3498db;
}

.action-btn.delete {
  color: #e74c3c;
}

.action-btn i {
  position: relative;
  z-index: 1;
}

/* Empty state styling */
.empty-message {
  padding: 3rem 1.5rem;
  text-align: center;
  color: #a0aec0;
  font-style: italic;
  background: #f8fafc;
  border-radius: 8px;
  margin: 1rem;
}

/* Loader */
.loader {
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--blue-500);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

/* Empty state and maintenance message styling */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.empty-state i {
  font-size: 3rem;
  color: #e2e8f0;
  margin-bottom: 20px;
}

.empty-state p {
  color: #718096;
  max-width: 400px;
  margin: 0 0 10px 0;
  line-height: 1.6;
}

.empty-state .empty-action {
  font-size: 0.9rem;
  color: #a0aec0;
  margin-top: 10px;
}

.maintenance-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  background-color: #fff8e1;
  border-radius: 8px;
  margin: 20px 0;
  border-left: 4px solid #ffc107;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: maintenance-pulse 2s infinite alternate;
}

@keyframes maintenance-pulse {
  from {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  to {
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.3);
  }
}

.maintenance-message i {
  font-size: 3.5rem;
  color: #ffc107;
  margin-bottom: 20px;
  animation: maintenance-rotate 3s infinite linear;
}

@keyframes maintenance-rotate {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(5deg);
  }
  50% {
    transform: rotate(0deg);
  }
  75% {
    transform: rotate(-5deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.maintenance-message h3 {
  font-size: 1.8rem;
  color: #ff9800;
  margin: 0 0 15px 0;
  font-weight: 600;
}

.maintenance-message p {
  font-size: 1rem;
  color: #555;
  max-width: 600px;
  margin: 10px 0;
  line-height: 1.5;
}

.maintenance-message .maintenance-time {
  font-weight: 600;
  margin-top: 16px;
  color: #e65100;
  font-size: 1.1rem;
  padding: 10px 20px;
  background-color: rgba(255, 193, 7, 0.2);
  border-radius: 4px;
}

/* System label styles - replaces test message styling */
.system-label {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 4px;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
}

.system-label i {
  margin-right: 6px;
  color: #17a2b8;
}

/* User executables card styling */
.executables-card {
  grid-column: 1 / -1;
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  margin-top: 1.5rem;
  width: 100%;
}

/* Nested executables card - fix the double card issue */
.executables-card .executables-card {
  margin-top: 0;
  padding: 0;
  box-shadow: none;
}

.executables-card .header {
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
}

.executables-card .header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
}

/* Executable card elements */
.executable-name-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.executable-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.executable-description {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.executable-strategy,
.executable-type {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.executable-strategy i {
  color: var(--blue-600);
}

.executable-type i {
  color: var(--blue-500);
}

.executable-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.download-button, 
.edit-button, 
.delete-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.download-button {
  background-color: #10b981;
  color: white;
}

.download-button:hover {
  background-color: #059669;
}

.edit-button {
  background-color: var(--blue-500);
  color: white;
}

.edit-button:hover {
  background-color: var(--blue-600);
}

.delete-button {
  background-color: #ef4444;
  color: white;
}

.delete-button:hover {
  background-color: #dc2626;
}

/* Toggle Switches */
.toggles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.toggle-option {
  margin-bottom: 0.5rem;
}

.toggle-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  cursor: pointer;
}

.toggle-label span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.toggle-label i {
  color: var(--blue-600);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--blue-600);
}

input:focus + .toggle-slider {
  box-shadow: 0 0 1px var(--blue-600);
}

input:checked + .toggle-slider:before {
  transform: translateX(18px);
}

/* Alert Styles */
.alert-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: 350px;
}

.alert {
  margin-bottom: 10px;
  padding: 12px 20px;
  background-color: #2a2a3a;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  max-width: 100%;
  overflow: hidden;
  font-family: 'Courier New', monospace;
}

.alert.show {
  transform: translateX(0);
  opacity: 1;
}

.alert i {
  font-size: 1.2rem;
}

.alert-success {
  border-left: 4px solid #4caf50;
}

.alert-success i {
  color: #4caf50;
}

.alert-error {
  border-left: 4px solid #f44336;
}

.alert-error i {
  color: #f44336;
}

.alert-warning {
  border-left: 4px solid #ff9800;
}

.alert-warning i {
  color: #ff9800;
}

.alert-info {
  border-left: 4px solid #2196f3;
}

.alert-info i {
  color: #2196f3;
}

/* Button loading state */
.generate-btn.loading {
  position: relative;
  color: transparent;
}

.generate-btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-top: -10px;
  margin-left: -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes floatIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Custom Options Additional Styles */
.settings-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--blue-700);
  margin: 1.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--blue-200);
}

.time-range, .date-range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.time-input, .date-input {
  flex: 1;
  padding: 0.6rem;
  font-size: 0.875rem;
}

.time-separator, .date-separator {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* Toggle Switches */
.toggles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.toggle-option {
  margin-bottom: 0.5rem;
}

.toggle-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  cursor: pointer;
}

.toggle-label span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.toggle-label i {
  color: var(--blue-600);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--blue-600);
}

input:focus + .toggle-slider {
  box-shadow: 0 0 1px var(--blue-600);
}

input:checked + .toggle-slider:before {
  transform: translateX(18px);
}

/* Executables list */
#executablesList {
  width: 100%;
}

#executablesList .executable-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--gray-200);
  align-items: center;
}

.executable-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 1rem;
  padding: 1rem;
  font-weight: 600;
  color: var(--gray-700);
  background-color: var(--blue-50);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Maintenance and empty states */
.maintenance-message,
.empty-state {
  padding: 2rem;
  text-align: center;
  border-radius: 0.5rem;
}

/* System label styles - replaces test message styling */
.system-label {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 0.85rem;
  padding: 6px 10px;
  border-radius: 4px;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
}

.system-label i {
  margin-right: 6px;
  color: #17a2b8;
}

/* User executables card styling */
.executables-card {
  grid-column: 1 / -1;
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  margin-top: 1.5rem;
  width: 100%;
}

/* Nested executables card - fix the double card issue */
.executables-card .executables-card {
  margin-top: 0;
  padding: 0;
  box-shadow: none;
}

.executables-card .header {
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
}

.executables-card .header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 0;
}

/* Executable card elements */
.executable-name-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.executable-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.executable-description {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.executable-strategy,
.executable-type {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.executable-strategy i {
  color: var(--blue-600);
}

.executable-type i {
  color: var(--blue-500);
}

.executable-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.download-button, 
.edit-button, 
.delete-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.download-button {
  background-color: #10b981;
  color: white;
}

.download-button:hover {
  background-color: #059669;
}

.edit-button {
  background-color: var(--blue-500);
  color: white;
}

.edit-button:hover {
  background-color: var(--blue-600);
}

.delete-button {
  background-color: #ef4444;
  color: white;
}

.delete-button:hover {
  background-color: #dc2626;
}

/* Logout Button */
.logout-btn {
  background: none;
  border: none;
  color: #8492a6;
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  width: 2.5rem;
  height: 2.5rem;
}

.logout-btn:hover {
  background-color: #f8f9fa;
  color: #e53e3e;
  transform: translateY(-1px);
}

.logout-btn:active {
  transform: translateY(0);
}

/* Loader */
.loader {
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--blue-500);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

/* Empty state and maintenance message styling */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.empty-state i {
  font-size: 3rem;
  color: #e2e8f0;
  margin-bottom: 20px;
}

.empty-state p {
  color: #718096;
  max-width: 400px;
  margin: 0 0 10px 0;
  line-height: 1.6;
}

.empty-state .empty-action {
  font-size: 0.9rem;
  color: #a0aec0;
  margin-top: 10px;
}

.maintenance-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  background-color: #fff8e1;
  border-radius: 8px;
  margin: 20px 0;
  border-left: 4px solid #ffc107;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: maintenance-pulse 2s infinite alternate;
}

@keyframes maintenance-pulse {
  from {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  to {
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.3);
  }
}

.maintenance-message i {
  font-size: 3.5rem;
  color: #ffc107;
  margin-bottom: 20px;
  animation: maintenance-rotate 3s infinite linear;
}

@keyframes maintenance-rotate {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(5deg);
  }
  50% {
    transform: rotate(0deg);
  }
  75% {
    transform: rotate(-5deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.maintenance-message h3 {
  font-size: 1.8rem;
  color: #ff9800;
  margin: 0 0 15px 0;
  font-weight: 600;
}

.maintenance-message p {
  font-size: 1rem;
  color: #555;
  max-width: 600px;
  margin: 10px 0;
  line-height: 1.5;
}

.maintenance-message .maintenance-time {
  font-weight: 600;
  margin-top: 16px;
  color: #e65100;
  font-size: 1.1rem;
  padding: 10px 20px;
  background-color: rgba(255, 193, 7, 0.2);
  border-radius: 4px;
}