/* dark-exclusive.css - A modern, sleek dark theme for crypto monitoring */

:root {
  /* Main colors */
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --bg-tertiary: #252525;
  --bg-elevated: #2d2d2d;
  
  /* Text colors */
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #808080;
  
  /* Accent colors */
  --accent-primary: #6200ee;
  --accent-secondary: #03dac6;
  --accent-warning: #ff9800;
  --accent-danger: #cf6679;
  
  /* Trading specific colors */
  --positive: #00c853;
  --negative: #ff5252;
  --neutral: #64b5f6;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
}

/* Base styles */
body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  transition: all 0.2s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 600;
  margin-top: 0;
}

h1 {
  font-size: 2rem;
  margin-bottom: var(--spacing-lg);
  text-align: center;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--bg-tertiary);
  padding-bottom: var(--spacing-xs);
}

h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--accent-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-primary);
  text-decoration: underline;
}

/* Layout */
.container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--spacing-lg);
}

.config-panel {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  padding: var(--spacing-lg);
}

.results-panel {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  flex: 2;
  min-width: 600px;
  padding: var(--spacing-lg);
  overflow: auto;
}

/* Forms */
.form-group {
  margin-bottom: var(--spacing-md);
}

label {
  display: block;
  margin-bottom: var(--spacing-xs);
  color: var(--text-secondary);
  font-weight: 500;
}

input, select, textarea {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--bg-elevated);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  padding: var(--spacing-sm);
  width: 100%;
  transition: all 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(98, 0, 238, 0.2);
  outline: none;
}

input[type="number"] {
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

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='%23b0b0b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--spacing-sm) center;
  background-size: 16px;
  padding-right: 32px;
}

/* Buttons */
button {
  background-color: var(--accent-primary);
  border: none;
  border-radius: var(--radius-sm);
  color: white;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  padding: var(--spacing-sm) var(--spacing-md);
  transition: all 0.2s ease;
}

button:hover {
  background-color: #7c4dff;
  box-shadow: var(--shadow-sm);
}

button:active {
  transform: translateY(1px);
}

button.button-secondary {
  background-color: var(--bg-elevated);
  color: var(--text-primary);
}

button.button-secondary:hover {
  background-color: var(--bg-tertiary);
}

/* Tables */
.results-table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: var(--spacing-md);
}

.results-table th {
  background-color: var(--bg-tertiary);
  color: var(--text-secondary);
  font-weight: 600;
  padding: var(--spacing-sm);
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 10;
}

.results-table td {
  border-bottom: 1px solid var(--bg-tertiary);
  padding: var(--spacing-sm);
}

.results-table tr:hover {
  background-color: var(--bg-tertiary);
}

.results-table .positive {
  color: var(--positive);
}

.results-table .negative {
  color: var(--negative);
}

/* Timestamp */
.timestamp {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: var(--spacing-md);
  text-align: right;
}

/* Auth container */
.auth-container {
  display: flex;
  justify-content: flex-end;
  padding: var(--spacing-sm) var(--spacing-lg);
}

/* Modal */
.modal-overlay {
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
}

.modal-content {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 500px;
  padding: var(--spacing-lg);
  position: relative;
  width: 90%;
}

.close-button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: var(--spacing-md);
  top: var(--spacing-md);
}

.close-button:hover {
  color: var(--text-primary);
}

/* Error message */
.error-message {
  background-color: rgba(207, 102, 121, 0.1);
  border-left: 3px solid var(--accent-danger);
  color: var(--accent-danger);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-sm);
}

/* Loading indicator */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--accent-primary);
  animation: spin 1s ease-in-out infinite;
  margin-right: var(--spacing-sm);
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .container {
    flex-direction: column;
  }
  
  .config-panel,
  .results-panel {
    max-width: 100%;
    min-width: 100%;
  }
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}
