/* Base styles */
body {
  font-family: 'Inter', sans-serif;
  background-color: #0b3b42;
  color: #ffffff;
  margin: 0;
  padding: 0;
}

* {
  box-sizing: border-box;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: rgba(11, 59, 66, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 10;
}

header h1 {
  font-size: 1.5rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0;
}

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

.logo-text {
  font-weight: 700;
  letter-spacing: 1px;
}

.planet-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #ff6b3d 0%, #3d96ff 100%);
  border-radius: 50%;
  position: relative;
}

.planet-icon::after {
  content: '';
  position: absolute;
  width: 50px;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  top: 15px;
  left: -5px;
  transform: rotate(-15deg);
  border-left: none;
  border-right: none;
}

nav {
  background-color: rgba(9, 45, 51, 0.9);
  width: 220px;
  height: calc(100vh - 4rem);
  padding: 1.5rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  position: fixed;
  top: 4rem;
  left: 0;
}

main {
  margin-left: 220px;
  padding: 2rem;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
  color: rgba(255, 255, 255, 0.8);
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.nav-item.active {
  background-color: rgba(0, 235, 176, 0.15);
  color: #00ebb0;
  font-weight: 500;
}

.card {
  background-color: rgba(11, 69, 76, 0.8);
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
  border: none;
}

.button-small {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

.button-primary {
  background-color: #00ebb0;
  color: #0b3b42;
}

.button-primary:hover {
  background-color: #00d6a0;
  transform: translateY(-1px);
}

.button-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.button-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-right: 0.75rem;
}

.status-running {
  background-color: rgba(0, 235, 176, 0.15);
  color: #00ebb0;
}

.status-stopped {
  background-color: rgba(255, 92, 92, 0.15);
  color: #ff5c5c;
}

.status-pending {
  background-color: rgba(255, 184, 0, 0.15);
  color: #ffb800;
}

.chart-container {
  height: 200px;
  margin-top: 1rem;
}

.tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
}

.tab {
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  color: rgba(255, 255, 255, 0.7);
}

.tab.active {
  border-bottom: 2px solid #00ebb0;
  color: #00ebb0;
  font-weight: 500;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table th, table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

table th {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.mode-switch {
  display: flex;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  width: 240px;
  margin: 1rem 0;
}

.mode-option {
  flex: 1;
  text-align: center;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 9999px;
  color: rgba(255, 255, 255, 0.8);
}

.mode-option.active {
  background-color: #00ebb0;
  color: #0b3b42;
}

.progress-container {
  width: 100%;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  margin: 1rem 0;
}

.progress-bar {
  height: 100%;
  background-color: #00ebb0;
  border-radius: 9999px;
}

.schedule-container {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 1rem 0;
}

.time-input {
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.375rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

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

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: .4s;
  border-radius: 24px;
}

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

input:checked + .toggle-slider {
  background-color: #00ebb0;
}

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

h2, h3 {
  color: #ffffff;
  margin-top: 0;
  font-weight: 600;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.depin-status {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.depin-status strong {
  margin: 0 0.75rem;
}

.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.1);
}

.service-icon.dawn {
  background-color: #ff6b3d;
  background-image: linear-gradient(135deg, #ff6b3d 0%, #ffa03d 100%);
}

.service-icon.grass {
  background-color: #00ebb0;
  background-image: linear-gradient(135deg, #00ebb0 0%, #00c090 100%);
}

.service-icon.filecoin {
  background-color: #3d96ff;
  background-image: linear-gradient(135deg, #3d96ff 0%, #3d70ff 100%);
}

.service-icon.akash {
  background-color: #ff3d8c;
  background-image: linear-gradient(135deg, #ff3d8c 0%, #ff3d3d 100%);
}

/* Auth styles */
#auth-container {
  display: flex;
  height: calc(100vh - 4rem);
  width: 100%;
  margin-left: -220px;
  padding: 0;
}

#okto-setup-modal .modal-content {
  max-width: 500px;
}

#okto-setup-modal .form-group {
  margin-bottom: 1.5rem;
}

#okto-setup-modal #okto-otp-input {
  font-size: 1.2rem;
  letter-spacing: 0.25rem;
  text-align: center;
}

#auth-forms {
  width: 50%;
  padding: 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(9, 45, 51, 0.9);
}

.auth-hero {
  width: 50%;
  background-color: #0a2d32;
  background-image: linear-gradient(rgba(11, 59, 66, 0.7), rgba(11, 59, 66, 0.9));
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.hero-content {
  max-width: 500px;
  margin: 0 auto;
}

.form-container {
  max-width: 400px;
  width: 100%;
}

.form-tabs {
  display: flex;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-tab {
  flex: 1;
  text-align: center;
  padding: 1rem;
  cursor: pointer;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s;
}

.form-tab.active {
  color: #00ebb0;
  border-bottom: 2px solid #00ebb0;
}

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

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1rem;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: #00ebb0;
  box-shadow: 0 0 0 2px rgba(0, 235, 176, 0.2);
}

.form-input:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.error-message {
  color: #ff6b6b;
  background-color: rgba(255, 107, 107, 0.1);
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  display: none;
}

.success-message {
  color: #00ebb0;
  background-color: rgba(0, 235, 176, 0.1);
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  display: none;
}

.partner-id-info {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.25rem;
}

.partner-id-container {
  display: flex;
  gap: 0.5rem;
}

.sub-user-login, .master-user-login {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.sub-user-login a, .master-user-login a {
  color: #00ebb0;
  text-decoration: none;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  background-color: #0d454d;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 0.75rem;
  max-width: 600px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.close-modal {
  color: rgba(255, 255, 255, 0.5);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* Banner styles */
.banner {
  background-color: rgba(0, 235, 176, 0.1);
  border-left: 4px solid #00ebb0;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  border-radius: 0.25rem;
  position: relative;
}

.close-banner {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  cursor: pointer;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.6);
}

.close-banner:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* Demo mode badge */
.demo-badge {
  display: inline-block;
  background-color: rgba(255, 184, 0, 0.2);
  color: #ffb800;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* Stats styles */
.big-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #00ebb0;
  margin-bottom: 0.25rem;
}

.subtitle {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 1rem;
}

.stats-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-label {
  color: rgba(255, 255, 255, 0.7);
}

.stats-value {
  font-weight: 500;
}

/* Machine table styles */
.machines-table {
  margin-bottom: 1rem;
}

/* Download page styles */
.download-card {
  margin-top: 1rem;
  background-color: rgba(0, 235, 176, 0.05);
  border: 1px solid rgba(0, 235, 176, 0.2);
}

.download-button {
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* Responsive styles */
@media (max-width: 1024px) {
  nav {
    width: 180px;
  }
  
  main {
    margin-left: 180px;
  }
  
  #auth-container {
    margin-left: -180px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 1rem;
  }
  
  nav {
    width: 60px;
    padding: 1rem 0.5rem;
  }
  
  .nav-item {
    padding: 0.75rem 0.5rem;
    justify-content: center;
  }
  
  .nav-item span {
    display: none;
  }
  
  main {
    margin-left: 60px;
    padding: 1rem;
  }
  
  #auth-container {
    margin-left: -60px;
    flex-direction: column;
  }
  
  #auth-forms, .auth-hero {
    width: 100%;
    padding: 2rem 1rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    width: 90%;
    margin: 15% auto;
    padding: 1.5rem;
  }
}