@import url('https://fonts.googleapis.com/css2?family=Hubot+Sans:ital,wght@0,200..900;1,200..900&display=swap');

:root {
  --background: hsl(28, 15%, 87%);
  --foreground: hsl(240, 10%, 3.9%);
  --card: hsl(28, 15%, 92%);
  --card-foreground: hsl(240, 10%, 3.9%);
  --popover: hsl(28, 15%, 92%);
  --popover-foreground: hsl(240, 10%, 3.9%);
  --primary: hsl(0, 100%, 34%); /* Red tone */
  --primary-foreground: hsl(0, 0%, 98%); /* Light color for text on primary */
  --secondary: hsl(28, 15%, 82%);
  --secondary-foreground: hsl(240, 5.9%, 10%);
  --muted: hsl(28, 15%, 82%);
  --muted-foreground: hsl(240, 3.8%, 46.1%);
  --accent: hsl(0, 100%, 34%); /* Same as primary for accents */
  --accent-foreground: hsl(0, 0%, 98%);
  --destructive: hsl(0, 84.2%, 60.2%);
  --destructive-foreground: hsl(0, 0%, 98%);
  --border: hsl(0, 0%, 0%); /* Black border */
  --input: hsl(28, 15%, 95%); /* Lighter for input backgrounds */
  --input-border: hsl(28, 15%, 75%);
  --ring: hsl(0, 100%, 34%); /* Primary color for focus rings */
  --radius: 0.5rem;

  --chart-1: hsl(12, 76%, 61%);
  --chart-2: hsl(173, 58%, 39%);
  --chart-3: hsl(197, 37%, 24%);
  --chart-4: hsl(43, 74%, 66%);
  --chart-5: hsl(27, 87%, 67%);

  --font-family-sans: 'Hubot Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-family-mono: 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;

  /* Status colors */
  --status-on-bg: hsl(120, 60%, 90%);
  --status-on-text: hsl(120, 60%, 30%);
  --status-on-border: hsl(120, 60%, 70%);

  --status-off-bg: hsl(0, 60%, 90%);
  --status-off-text: hsl(0, 60%, 30%);
  --status-off-border: hsl(0, 60%, 70%);

  --status-error-bg: hsl(30, 100%, 90%);
  --status-error-text: hsl(30, 100%, 30%);
  --status-error-border: hsl(30, 100%, 70%);
  
  --success-bg: hsl(120, 60%, 90%);
  --success-text: hsl(120, 60%, 30%);
  --warning-bg: hsl(45, 100%, 90%);
  --warning-text: hsl(45, 100%, 30%);

}

body {
  margin: 0;
  font-family: var(--font-family-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--background);
  color: var(--foreground);
  padding-bottom: 60px;
}

#root {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  background-color: var(--card);
  color: var(--card-foreground);
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  border: 1px solid var(--border);
}

.header h1 {
  margin: 0 0 10px 0;
  color: var(--primary); 
}

.card {
  background-color: var(--card);
  color: var(--card-foreground);
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  border: 1px solid var(--border);
}

.controls-card .status-display {
  padding: 15px;
  border-radius: var(--radius);
  margin-bottom: 15px;
  font-weight: bold;
  text-align: center;
}

.status-on {
  background-color: var(--status-on-bg);
  color: var(--status-on-text);
  border: 1px solid var(--status-on-border);
}

.status-off {
  background-color: var(--status-off-bg);
  color: var(--status-off-text);
  border: 1px solid var(--status-off-border);
}

.status-error {
  background-color: var(--status-error-bg);
  color: var(--status-error-text);
  border: 1px solid var(--status-error-border);
}

.controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

button {
  padding: 10px 15px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
  font-family: var(--font-family-sans);
}

button:disabled {
  background-color: var(--muted);
  color: var(--muted-foreground);
  border-color: var(--muted);
  cursor: not-allowed;
}

button:not(:disabled) {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

button:not(:disabled):hover {
  background-color: hsl(0, 100%, 40%); /* Darker shade of primary */
  border-color: hsl(0, 100%, 40%);
}

/* Secondary button style example */
button.secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border-color: var(--secondary);
}
button.secondary:hover:not(:disabled) {
  background-color: hsl(28, 15%, 75%); /* Darker secondary */
  border-color: hsl(28, 15%, 75%);
}


.logs-card .logs-header {
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--card-foreground);
}

.logs-container {
  background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
  color: #f8f9fa;
  padding: 20px;
  margin: 0;
  min-height: 300px;
  max-height: 400px;
  overflow-y: auto;
  font-family: var(--font-family-mono);
  font-size: 0.9rem;
  line-height: 1.4;
  border: none;
  border-radius: 0;
  position: relative;
}

.log-entry {
  padding: 8px 12px;
  margin: 4px 0;
  border-radius: 6px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 2px; /* Small margin between entries */
}

.log-entry:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.log-entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.log-icon {
  font-size: 1.1em;
  min-width: 20px;
  display: inline-block;
}

.log-timestamp {
  color: var(--chart-2); /* Using a chart color for variety */
  margin-right: 15px;
  min-width: 120px; /* Wider timestamp area */
  font-size: 0.9em;
  font-weight: 500;
}

.log-message {
  white-space: pre-wrap;
  word-break: break-all;
  flex-grow: 1;
}

.log-stdout {
  color: var(--chart-4); /* Greenish chart color for stdout */
}

.log-stderr {
  color: var(--chart-1); /* Reddish chart color for stderr */
}

.log-error {
  color: var(--destructive); /* Destructive color for error status */
  font-weight: bold;
}

.log-status {
  color: var(--chart-5); /* Purple-ish chart color for status messages */
}

/* GPU Management Styles */
.gpu-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
}

.gpu-item {
  /* Uses .card styles by default if class="gpu-item card" */
  /* Specific overrides for gpu-item if needed */
}

.gpu-item h3 {
  margin-top: 0;
  color: var(--primary);
}

.status-rentable {
  color: var(--success-text);
  background-color: var(--success-bg);
  padding: 2px 6px;
  border-radius: var(--radius);
  font-weight: bold;
}

.status-private {
  color: var(--warning-text);
  background-color: var(--warning-bg);
  padding: 2px 6px;
  border-radius: var(--radius);
  font-weight: bold;
}

/* Modal Styles */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Darker backdrop */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  /* Uses .card styles by default if class="modal-content card" */
  /* Specific overrides for modal-content */
  min-width: 350px;
  max-width: 500px;
}

.modal-content h3 {
  margin-top: 0;
  color: var(--primary);
}

.modal-content label {
  display: block;
  margin-bottom: 8px;
  color: var(--card-foreground);
}

.modal-content input[type="number"],
.modal-content input[type="text"] {
  width: calc(100% - 22px); /* Account for padding and border */
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid var(--input-border);
  background-color: var(--input);
  color: var(--foreground);
  border-radius: var(--radius);
  font-family: var(--font-family-sans);
}
.modal-content input[type="number"]:focus,
.modal-content input[type="text"]:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px hsla(var(--ring), 0.5);
}


.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* Job List Styles */
.job-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
}

.job-item {
  /* Uses .card styles by default if class="job-item card" */
}
.job-item h4 {
  color: var(--primary);
}

.job-status-running { color: var(--primary); font-weight: bold; }
.job-status-completed { color: var(--success-text); font-weight: bold; }
.job-status-failed { color: var(--destructive); font-weight: bold; }
.job-status-queued { color: var(--warning-text); font-weight: bold; }

/* Overview Section Styles */
.overview-item {
  margin-bottom: 15px;
}
.overview-item h4 {
  margin-bottom: 5px;
  color: var(--primary);
}
.overview-item p {
  color: var(--card-foreground);
}


/* Settings Section */
#defaultRate, input[type="number"], input[type="text"] {
  /* General input styling, some already in modal */
  padding: 8px;
  margin-right: 10px;
  border: 1px solid var(--input-border);
  background-color: var(--input);
  color: var(--foreground);
  border-radius: var(--radius);
  font-family: var(--font-family-sans);
}
#defaultRate:focus, input[type="number"]:focus, input[type="text"]:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px hsla(var(--ring), 0.5);
}

.settings-section label { /* Assuming settings section will have labels */
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}
.settings-section div { /* Assuming inputs are wrapped in divs */
  margin-bottom: 15px;
}

/* System Information Display */
.system-info-display, .process-info-display {
  margin-top: 15px;
  padding: 15px;
  background-color: var(--muted);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.system-info-display h4, .process-info-display h4 {
  margin: 0 0 10px 0;
  color: var(--foreground);
}

.system-info-display pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: var(--font-family-mono);
  font-size: 0.9em;
  color: var(--foreground);
  background-color: var(--background);
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.process-info-display p {
  margin: 0;
  font-family: var(--font-family-mono);
  font-size: 0.9em;
  color: var(--foreground);
}

/* === COMPREHENSIVE GPU RENTAL SYSTEM STYLES === */

/* Navigation Tabs */
.navigation-tabs {
  display: flex;
  gap: 5px;
  margin-top: 15px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}

.nav-tab {
  padding: 10px 20px;
  background-color: transparent;
  color: var(--muted-foreground);
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.nav-tab:hover {
  background-color: var(--muted);
  color: var(--card-foreground);
}

.nav-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background-color: var(--card);
}

/* Marketplace Styles */
.marketplace-filters {
  background-color: var(--popover);
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.filter-row:last-child {
  margin-bottom: 0;
}

.filter-row label {
  font-weight: 500;
  color: var(--card-foreground);
  min-width: 100px;
}

.filter-row select,
.filter-row input {
  padding: 8px 12px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  background-color: var(--input);
  color: var(--card-foreground);
  font-family: var(--font-family-sans);
}

.filter-row select:focus,
.filter-row input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px hsla(0, 100%, 34%, 0.2);
}

/* Listings Grid */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.listing-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.listing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.listing-card h4 {
  margin: 0 0 15px 0;
  color: var(--primary);
  font-size: 1.1em;
}

.listing-specs {
  margin-bottom: 15px;
}

.listing-specs p {
  margin: 5px 0;
  font-size: 0.9em;
  color: var(--muted-foreground);
}

.listing-pricing {
  margin-bottom: 15px;
  padding: 10px;
  background-color: var(--muted);
  border-radius: var(--radius);
}

.price-usd {
  font-size: 1.2em;
  font-weight: bold;
  color: var(--primary);
  margin: 0;
}

.price-dgpu {
  font-size: 0.9em;
  color: var(--muted-foreground);
  margin: 5px 0 0 0;
}

.listing-features {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 15px;
}

.feature-tag {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.75em;
  font-weight: 500;
}

.listing-rating {
  margin-bottom: 15px;
  font-size: 0.9em;
  color: var(--muted-foreground);
}

.listing-actions {
  display: flex;
  gap: 10px;
}

.listing-actions button {
  flex: 1;
  padding: 10px;
  font-size: 0.9em;
}

/* Stats Grid */
.stats-grid,
.earnings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.stat-card {
  background-color: var(--popover);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}

.stat-card h4 {
  margin: 0 0 10px 0;
  color: var(--muted-foreground);
  font-size: 0.9em;
  font-weight: 500;
}

.stat-value {
  font-size: 2em;
  font-weight: bold;
  color: var(--primary);
  margin: 0;
}

.stat-subtitle {
  font-size: 0.8em;
  color: var(--muted-foreground);
  margin: 5px 0 0 0;
}

/* Provider Dashboard */
.provider-stats {
  margin-bottom: 30px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.performance-metrics {
  background-color: var(--popover);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.metric-item {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background-color: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.metric-item span:first-child {
  color: var(--muted-foreground);
}

.metric-item span:last-child {
  font-weight: bold;
  color: var(--primary);
}

/* Bookings */
.bookings-section {
  margin-bottom: 30px;
}

.bookings-list {
  display: grid;
  gap: 20px;
  margin-top: 15px;
}

.booking-card {
  background-color: var(--popover);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.booking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.booking-header h4 {
  margin: 0;
  color: var(--primary);
}

.booking-status {
  padding: 5px 10px;
  border-radius: 15px;
  color: white;
  font-size: 0.8em;
  font-weight: bold;
}

.booking-details {
  margin-bottom: 15px;
}

.booking-details p {
  margin: 5px 0;
  font-size: 0.9em;
}

.booking-actions {
  display: flex;
  gap: 10px;
}

.booking-actions button {
  padding: 8px 15px;
  font-size: 0.9em;
}

/* Earnings */
.earnings-breakdown {
  margin-bottom: 30px;
}

.earnings-period {
  background-color: var(--popover);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}

.earnings-period h4 {
  margin: 0 0 15px 0;
  color: var(--muted-foreground);
  font-size: 1em;
}

.earning-amount {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--primary);
  margin: 0;
}

.earning-tokens {
  font-size: 1em;
  color: var(--muted-foreground);
  margin: 5px 0 0 0;
}

.balance-info {
  margin-bottom: 30px;
}

.balance-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.balance-card {
  padding: 25px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}

.balance-card.available {
  background-color: var(--success-bg);
  border-color: var(--success-text);
}

.balance-card.pending {
  background-color: var(--warning-bg);
  border-color: var(--warning-text);
}

.balance-card h4 {
  margin: 0 0 15px 0;
  color: var(--card-foreground);
}

.balance-amount {
  font-size: 2em;
  font-weight: bold;
  color: var(--primary);
  margin: 0;
}

.balance-tokens {
  font-size: 1.2em;
  color: var(--muted-foreground);
  margin: 5px 0;
}

.balance-note {
  font-size: 0.9em;
  color: var(--muted-foreground);
  margin: 10px 0 0 0;
}

/* Job Submission */
.job-submission-form {
  max-width: 800px;
}

.form-section {
  background-color: var(--popover);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.form-section h4 {
  margin: 0 0 15px 0;
  color: var(--primary);
  border-bottom: 2px solid var(--border);
  padding-bottom: 10px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
  align-items: center;
}

.form-row:last-child {
  margin-bottom: 0;
}

.form-row label {
  font-weight: 500;
  color: var(--card-foreground);
}

.form-row input,
.form-row select,
.form-row textarea {
  padding: 10px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  background-color: var(--input);
  color: var(--card-foreground);
  font-family: var(--font-family-sans);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px hsla(0, 100%, 34%, 0.2);
}

.form-row textarea {
  resize: vertical;
  min-height: 80px;
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.form-actions button {
  padding: 12px 25px;
  font-size: 1em;
}

/* Enhanced Modal Styles */
.listing-modal,
.booking-modal,
.job-modal {
  max-width: 900px;
  width: 95%;
}

.listing-details-comprehensive {
  margin-bottom: 25px;
}

.detail-section {
  margin-bottom: 25px;
  padding: 20px;
  background-color: var(--popover);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.detail-section h4 {
  margin: 0 0 15px 0;
  color: var(--primary);
  font-size: 1.1em;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background-color: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.detail-label {
  color: var(--muted-foreground);
  font-weight: 500;
}

.detail-value {
  color: var(--card-foreground);
  font-weight: bold;
}

.pricing-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.price-item {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background-color: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.price-label {
  color: var(--muted-foreground);
}

.price-value {
  font-weight: bold;
  color: var(--primary);
}

.provider-details p {
  margin: 8px 0;
  font-size: 0.95em;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.feature-chip {
  background-color: var(--accent);
  color: var(--accent-foreground);
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8em;
  font-weight: 500;
}

.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feature-enabled {
  background-color: var(--success-bg);
  color: var(--success-text);
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: 500;
}

.offers-list {
  display: grid;
  gap: 10px;
}

.offer-item {
  padding: 10px;
  background-color: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--card-foreground);
}

/* Booking Modal */
.booking-form {
  margin-bottom: 25px;
}

.cost-breakdown {
  background-color: var(--card);
  padding: 15px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.cost-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

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

.cost-item.total {
  font-weight: bold;
  color: var(--primary);
  font-size: 1.1em;
  margin-top: 10px;
  padding-top: 15px;
  border-top: 2px solid var(--border);
}

.gpu-specs-summary {
  background-color: var(--card);
  padding: 15px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.gpu-specs-summary p {
  margin: 5px 0;
  font-size: 0.95em;
}

/* Job Modal */
.job-details-comprehensive {
  margin-bottom: 25px;
}

.booking-info,
.job-specs {
  background-color: var(--card);
  padding: 15px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.booking-info p,
.job-specs p {
  margin: 8px 0;
  font-size: 0.95em;
}

.resource-allocation {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.resource-item {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background-color: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.connection-info {
  background-color: var(--card);
  padding: 15px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.connection-info p {
  margin: 8px 0;
  font-size: 0.95em;
}

.connection-info a {
  color: var(--primary);
  text-decoration: none;
}

.connection-info a:hover {
  text-decoration: underline;
}

.timeline {
  background-color: var(--card);
  padding: 15px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

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

/* Button Variants */
button.primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

button.primary:hover:not(:disabled) {
  background-color: hsl(0, 100%, 40%);
  border-color: hsl(0, 100%, 40%);
}

button.success {
  background-color: hsl(120, 60%, 50%);
  color: white;
  border-color: hsl(120, 60%, 50%);
}

button.success:hover:not(:disabled) {
  background-color: hsl(120, 60%, 45%);
  border-color: hsl(120, 60%, 45%);
}

/* Performance Charts Placeholder */
.performance-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.chart-placeholder {
  background-color: var(--card);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.chart-placeholder h4 {
  margin: 0 0 10px 0;
  color: var(--primary);
}

.chart-placeholder p {
  color: var(--muted-foreground);
  font-style: italic;
}

/* History List */
.history-list {
  display: grid;
  gap: 10px;
  margin-top: 15px;
}

.history-item {
  background-color: var(--popover);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px;
}

.history-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  align-items: center;
  font-size: 0.9em;
}

.history-summary span:first-child {
  font-weight: bold;
  color: var(--primary);
}

/* Payout Info */
.payout-info {
  background-color: var(--popover);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.payout-info h3 {
  margin: 0 0 15px 0;
  color: var(--primary);
}

.payout-info p {
  margin: 8px 0;
  font-size: 0.95em;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navigation-tabs {
    flex-direction: column;
  }
  
  .nav-tab {
    width: 100%;
    margin-bottom: 5px;
  }
  
  .listings-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid,
  .provider-stats .stats-row {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    width: 95%;
    margin: 20px auto;
  }
  
  .filter-row {
    flex-direction: column;
  }
  
  .filter-row label {
    margin-bottom: 5px;
  }
  
  .form-row {
    flex-direction: column;
  }
  
  .booking-actions,
  .listing-actions {
    flex-direction: column;
  }
}

/* === SYSTEM MANAGEMENT HUB STYLES === */
.system-management-hub {
  background-color: var(--card);
  padding: 30px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border: 1px solid var(--border);
}

.system-management-hub h2 {
  margin-top: 0;
  margin-bottom: 25px;
  color: var(--primary);
  font-size: 1.8em;
  text-align: center;
}

.management-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.management-card {
  background-color: var(--background);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.management-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.management-card h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--primary);
  font-size: 1.2em;
}

/* Status Card Styles */
.status-indicators {
  margin-bottom: 20px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

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

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

.status-dot.online {
  background-color: #4CAF50;
}

.status-dot.offline {
  background-color: #F44336;
}

.status-dot.warning {
  background-color: #FF9800;
}

/* GPU Control Card */
.gpu-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.gpu-stat {
  text-align: center;
  padding: 10px;
  background-color: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* Management Actions */
.management-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.action-btn {
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  font-size: 0.9em;
}

.action-btn:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
  transform: translateY(-1px);
}

.action-btn.primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.action-btn.success {
  background-color: #4CAF50;
  color: white;
}

.action-btn.warning {
  background-color: #FF9800;
  color: white;
}

/* Quick Actions Grid */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.quick-action-btn {
  padding: 12px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  background-color: var(--card);
  color: var(--card-foreground);
  font-size: 0.85em;
  text-align: center;
}

.quick-action-btn:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
  transform: translateY(-1px);
}

.quick-action-btn.warning {
  background-color: #FF9800;
  color: white;
}

/* Financial Card */
.financial-stats {
  margin-bottom: 20px;
}

.financial-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.financial-stat:last-child {
  border-bottom: none;
}

.stat-label {
  font-weight: 500;
  color: var(--muted-foreground);
}

.stat-value {
  font-weight: bold;
  color: var(--primary);
}

/* Network Card */
.network-stats {
  margin-bottom: 20px;
}

.network-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.network-stat:last-child {
  border-bottom: none;
}

/* Jobs Card */
.jobs-summary {
  display: flex;
  justify-content: space-around;
  margin-bottom: 20px;
}

.job-summary-stat {
  text-align: center;
  padding: 10px;
  background-color: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  min-width: 80px;
}

.job-count {
  display: block;
  font-size: 1.5em;
  font-weight: bold;
  color: var(--primary);
}

.job-label {
  font-size: 0.9em;
  color: var(--muted-foreground);
}

/* === COMPACT STATUS BAR STYLES === */
.compact-status-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--card);
  border-top: 1px solid var(--border);
  padding: 10px 20px;
  box-shadow: 0 -2px 4px rgba(0,0,0,0.05);
  z-index: 1000;
}

.status-bar-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-text {
  font-size: 0.9em;
  font-weight: 500;
  color: var(--foreground);
}

.status-actions {
  display: flex;
  gap: 8px;
}

.status-btn {
  padding: 6px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  background-color: var(--background);
  color: var(--foreground);
  font-size: 0.8em;
  transition: all 0.2s ease-in-out;
}

.status-btn:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

/* Add bottom padding to body to account for fixed status bar */
body {
  padding-bottom: 60px;
}

/* Enhanced responsiveness for management hub */
@media (max-width: 768px) {
  .management-grid {
    grid-template-columns: 1fr;
  }
  
  .quick-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .jobs-summary {
    flex-direction: column;
    gap: 10px;
  }
  
  .gpu-summary {
    grid-template-columns: 1fr;
  }
  
  .status-bar-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .system-management-hub {
    padding: 20px;
  }
}

/* === ENHANCED BOOKINGS STYLES === */
.booking-management-tools {
  background-color: var(--background);
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.tools-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

.filter-select, .search-input {
  padding: 8px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--card);
  color: var(--foreground);
}

.action-group {
  display: flex;
  gap: 10px;
}

.tool-btn {
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.tool-btn.primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.tool-btn.secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.tool-btn.success {
  background-color: #4CAF50;
  color: white;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.bulk-actions {
  display: flex;
  gap: 10px;
}

.bulk-btn {
  padding: 6px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  background-color: var(--background);
  color: var(--foreground);
  font-size: 0.9em;
}

.bulk-btn.warning {
  background-color: #FF9800;
  color: white;
}

.bookings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
}

.booking-card.enhanced {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.booking-card.enhanced:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.booking-id-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.booking-priority {
  font-size: 1.2em;
}

.booking-details.enhanced {
  margin: 15px 0;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 500;
  color: var(--muted-foreground);
}

.detail-value {
  font-weight: 600;
  color: var(--foreground);
}

.detail-value.highlight {
  color: var(--primary);
  font-weight: bold;
}

.booking-actions.enhanced {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.action-btn {
  padding: 6px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.85em;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

.action-btn.secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.action-btn.primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.action-btn.success {
  background-color: #4CAF50;
  color: white;
}

.action-btn.info {
  background-color: #2196F3;
  color: white;
}

.action-btn.warning {
  background-color: #FF9800;
  color: white;
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--muted-foreground);
}

.cta-btn {
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--primary);
  color: var(--primary-foreground);
  cursor: pointer;
  font-weight: 600;
  margin-top: 10px;
}

.analytics-summary {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.analytic-item {
  text-align: center;
  padding: 15px;
  background-color: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  min-width: 120px;
}

.analytic-value {
  display: block;
  font-size: 1.5em;
  font-weight: bold;
  color: var(--primary);
}

.analytic-label {
  font-size: 0.9em;
  color: var(--muted-foreground);
}

.history-table {
  background-color: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.table-header {
  display: grid;
  grid-template-columns: 80px 150px 100px 100px 100px 100px 120px;
  gap: 10px;
  padding: 15px;
  background-color: var(--background);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}

.table-row {
  display: grid;
  grid-template-columns: 80px 150px 100px 100px 100px 100px 120px;
  gap: 10px;
  padding: 15px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.table-row:last-child {
  border-bottom: none;
}

.table-row:hover {
  background-color: var(--background);
}

.row-actions {
  display: flex;
  gap: 5px;
}

.mini-btn {
  padding: 4px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--background);
  cursor: pointer;
  font-size: 0.8em;
}

.quick-actions-panel {
  background-color: var(--card);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-top: 20px;
}

.quick-action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--background);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-align: center;
}

.quick-action-card:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
  transform: translateY(-2px);
}

.quick-action-card.maintenance:hover {
  background-color: #FF9800;
  color: white;
}

.action-icon {
  font-size: 2em;
  margin-bottom: 10px;
}

.action-text {
  font-weight: 500;
}

/* === ENHANCED EARNINGS STYLES === */
.financial-control-panel {
  background-color: var(--background);
  padding: 25px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 25px;
}

.balance-overview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.main-balance {
  text-align: center;
}

.balance-amount-large {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--primary);
  margin: 10px 0;
}

.balance-tokens-large {
  font-size: 1.2em;
  color: var(--muted-foreground);
  margin-bottom: 15px;
}

.balance-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.financial-btn {
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
}

.financial-btn.primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.financial-btn.secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.financial-btn.success {
  background-color: #4CAF50;
  color: white;
}

.earnings-analytics {
  margin-bottom: 30px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.analytic-card {
  background-color: var(--card);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.analytic-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.analytic-header h4 {
  margin: 0;
  color: var(--primary);
}

.time-selector {
  padding: 4px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--background);
  font-size: 0.9em;
}

.optimize-btn, .improve-btn {
  padding: 6px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--primary);
  color: var(--primary-foreground);
  cursor: pointer;
  font-size: 0.9em;
}

.score-badge {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 4px 8px;
  border-radius: var(--radius);
  font-weight: bold;
}

.trend-indicator {
  margin-bottom: 15px;
}

.trend-indicator.positive {
  color: #4CAF50;
}

.trend-value {
  font-size: 1.5em;
  font-weight: bold;
}

.trend-label {
  font-size: 0.9em;
  color: var(--muted-foreground);
  margin-left: 10px;
}

.revenue-metrics, .performance-metrics {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.metric, .perf-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
}

.metric-label, .perf-label {
  color: var(--muted-foreground);
}

.metric-value, .perf-value {
  font-weight: bold;
}

.perf-value.good {
  color: #4CAF50;
}

.perf-value.excellent {
  color: #2196F3;
}

.utilization-gauge {
  text-align: center;
  margin-bottom: 15px;
}

.gauge-value {
  font-size: 2em;
  font-weight: bold;
  color: var(--primary);
}

.gauge-label {
  color: var(--muted-foreground);
  font-size: 0.9em;
}

.utilization-suggestions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.suggestion {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background-color: var(--background);
  border-radius: var(--radius);
}

.earnings-grid.enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.earnings-period {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}

.earnings-period.today {
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(178, 34, 34, 0.2);
}

.period-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.period-header h4 {
  margin: 0;
  color: var(--primary);
}

.period-indicator.live {
  background-color: #FF0000;
  color: white;
  padding: 2px 6px;
  border-radius: var(--radius);
  font-size: 0.8em;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.period-btn {
  padding: 4px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--background);
  cursor: pointer;
}

.achievement {
  font-size: 1.2em;
}

.period-content {
  text-align: center;
}

.period-stats, .lifetime-stats {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 15px;
}

.stat {
  font-size: 0.9em;
  color: var(--muted-foreground);
}

.period-growth {
  margin-top: 10px;
  font-size: 0.9em;
  font-weight: bold;
}

.period-growth.positive {
  color: #4CAF50;
}

.balance-cards.enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.balance-card.enhanced {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.card-header h4 {
  margin: 0;
  color: var(--primary);
}

.card-actions {
  display: flex;
  gap: 5px;
}

.card-btn {
  padding: 4px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--background);
  cursor: pointer;
  font-size: 0.8em;
}

.balance-note.ready {
  color: #4CAF50;
}

.balance-note.pending {
  color: #FF9800;
}

.balance-note.rate {
  color: var(--primary);
}

.financial-tools {
  margin-top: 30px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-align: center;
}

.tool-card:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
  transform: translateY(-2px);
}

.tool-icon {
  font-size: 2em;
  margin-bottom: 10px;
}

.tool-title {
  font-weight: 600;
  margin-bottom: 5px;
}

.tool-desc {
  font-size: 0.9em;
  color: var(--muted-foreground);
}

.enhancement-suggestions {
  background-color: var(--card);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 15px;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background-color: var(--background);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.priority-indicator {
  font-size: 1.2em;
}

.suggestion-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.suggestion-title {
  font-weight: 600;
  color: var(--foreground);
}

.suggestion-impact {
  font-size: 0.9em;
  color: var(--muted-foreground);
}

.suggestion-btn {
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--primary);
  color: var(--primary-foreground);
  cursor: pointer;
  font-weight: 500;
}

.offline-state, .offline-earnings-state {
  text-align: center;
  padding: 60px;
  color: var(--muted-foreground);
}

/* Enhanced responsive design for new components */
@media (max-width: 768px) {
  .tools-row {
    flex-direction: column;
    gap: 15px;
  }
  
  .bookings-grid {
    grid-template-columns: 1fr;
  }
  
  .analytics-summary {
    flex-direction: column;
    gap: 10px;
  }
  
  .table-header, .table-row {
    grid-template-columns: 60px 120px 80px 80px 80px 80px 100px;
    font-size: 0.9em;
  }
  
  .balance-overview {
    flex-direction: column;
    gap: 20px;
  }
  
  .balance-actions {
    justify-content: center;
  }
  
  .analytics-grid {
    grid-template-columns: 1fr;
  }
  
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === ENHANCED LOG SECTION STYLES === */
.logs-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 0;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.logs-header {
  background: linear-gradient(135deg, #343a40 0%, #495057 100%);
  color: white;
  padding: 20px;
  margin: 0;
  border-bottom: 2px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logs-header h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.log-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.log-btn {
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.log-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

.log-btn.secondary {
  background: rgba(108, 117, 125, 0.8);
  border-color: rgba(108, 117, 125, 0.5);
}

.log-btn.warning {
  background: rgba(255, 193, 7, 0.8);
  border-color: rgba(255, 193, 7, 0.5);
  color: #212529;
}

.log-stats {
  background: rgba(248, 249, 250, 0.9);
  border-bottom: 1px solid var(--border);
  padding: 15px 20px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.log-stat {
  text-align: center;
  min-width: 80px;
}

.log-stat-count {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.log-stat-label {
  font-size: 0.8rem;
  color: var(--muted-foreground);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.logs-container {
  background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
  color: #f8f9fa;
  padding: 20px;
  margin: 0;
  min-height: 300px;
  max-height: 400px;
  overflow-y: auto;
  font-family: var(--font-family-mono);
  font-size: 0.9rem;
  line-height: 1.4;
  border: none;
  border-radius: 0;
  position: relative;
}

.logs-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), transparent);
  pointer-events: none;
}

.logs-container::-webkit-scrollbar {
  width: 8px;
}

.logs-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.logs-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

.logs-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.log-entry {
  padding: 8px 12px;
  margin: 4px 0;
  border-radius: 6px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  background: rgba(255, 255, 255, 0.02);
}

.log-entry:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
}

.log-entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.log-timestamp {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  min-width: 80px;
  font-weight: 500;
}

.log-icon {
  font-size: 1rem;
  min-width: 20px;
  text-align: center;
}

.log-type {
  font-weight: 600;
  font-size: 0.8rem;
  min-width: 70px;
  text-align: center;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-family-mono);
}

.log-message {
  flex: 1;
  word-wrap: break-word;
  line-height: 1.5;
}

.log-status {
  border-left-color: #17a2b8;
  background: rgba(23, 162, 184, 0.1);
}

.log-status .log-type {
  background: rgba(23, 162, 184, 0.2);
  color: #17a2b8;
}

.log-stdout {
  border-left-color: #28a745;
  background: rgba(40, 167, 69, 0.1);
}

.log-stdout .log-type {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
}

.log-stderr {
  border-left-color: #ffc107;
  background: rgba(255, 193, 7, 0.1);
}

.log-stderr .log-type {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

.log-error {
  border-left-color: #dc3545;
  background: rgba(220, 53, 69, 0.1);
}

.log-error .log-type {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
}

.empty-logs {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.6);
}

.empty-logs p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Enhanced status bar styles */
.compact-status-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #343a40 0%, #495057 100%);
  border-top: 2px solid var(--border);
  padding: 8px 0;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.status-bar-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.status-text {
  color: white;
  font-weight: 500;
  font-size: 0.9rem;
}

.status-actions {
  display: flex;
  gap: 6px;
}

.status-btn {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  min-width: 32px;
  text-align: center;
}

.status-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-1px);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .logs-header {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .log-actions {
    justify-content: center;
  }
  
  .log-stats {
    flex-direction: column;
    gap: 10px;
  }
  
  .log-entry {
    flex-direction: column;
    gap: 8px;
  }
  
  .log-timestamp {
    min-width: auto;
  }
  
  .status-bar-content {
    flex-direction: column;
    gap: 8px;
    padding: 10px;
  }
  
  .status-text {
    font-size: 0.8rem;
    text-align: center;
  }
}

/* === END ENHANCED LOG SECTION STYLES === */

/* Add more global styles or component-specific styles in separate files */ 