/* Dashboard - Beautiful & Clean */

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #f1f5f9;
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header */
.header {
  padding: 16px 24px;
  display: flex;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-content {
  width: 100%;
  max-width: 500px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  font-family: 'Righteous', sans-serif;
  color: #f1f5f9;
}

.btn-logout {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

/* Main */
.main {
  flex: 1;
  padding: 32px 24px 0;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.container {
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.title {
  font-size: 36px;
  font-weight: 700;
  color: #f1f5f9;
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.2;
}

.description {
  font-size: 15px;
  color: #94a3b8;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 24px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Platforms Wrapper - Scrollable */
.platforms-wrapper {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

.platforms-wrapper::-webkit-scrollbar {
  width: 6px;
}

.platforms-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.platforms-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.platforms-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Platforms */
.platforms {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 16px;
}

.platform-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.platform-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.platform-content {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

/* Logo Box - EXACTLY like website */
.platform-logo-box {
  width: 52px;
  height: 52px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.platform-logo-box img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.platform-info {
  flex: 1;
}

.platform-name {
  font-size: 16px;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 4px;
}

.platform-status {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.platform-status.live {
  color: #22c55e;
}

/* iOS-style Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 56px;
  height: 32px;
  flex-shrink: 0;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(120, 120, 128, 0.32);
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 32px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 4px;
  bottom: 4px;
  background: white;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.1);
}

input:checked + .slider {
  background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 0 2px rgba(14, 165, 233, 0.2);
}

input:checked + .slider:before {
  transform: translateX(24px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25), 0 1px 3px rgba(0, 0, 0, 0.15);
}

input:disabled + .slider {
  opacity: 0.5;
  cursor: not-allowed;
}

input:disabled + .slider:before {
  cursor: not-allowed;
}

.slider:hover:not(input:disabled + .slider) {
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer {
  padding: 14px 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer p {
  font-size: 12px;
  color: #64748b;
}

/* Tablet & Desktop */
@media (min-width: 768px) {
  .header {
    padding: 20px 48px;
  }

  .logo {
    font-size: 26px;
  }

  .main {
    padding: 40px 48px 0;
  }

  .title {
    font-size: 42px;
  }

  .description {
    font-size: 16px;
  }

  .platforms {
    gap: 10px;
  }

  .platform-item {
    padding: 12px 18px;
  }

  .platform-content {
    gap: 12px;
  }

  .platform-logo-box {
    width: 54px;
    height: 54px;
  }

  .platform-logo-box img {
    width: 35px;
    height: 35px;
  }

  .platform-name {
    font-size: 15px;
  }

  .platform-status {
    font-size: 12px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .header {
    padding: 14px 20px;
  }

  .logo {
    font-size: 22px;
  }

  .btn-logout {
    padding: 7px 14px;
    font-size: 12px;
  }

  .main {
    padding: 24px 20px 0;
  }

  .title {
    font-size: 28px;
    margin-bottom: 10px;
  }

  .description {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .platform-item {
    padding: 14px 16px;
  }

  .platform-content {
    gap: 12px;
  }

  .platform-logo-box {
    width: 50px;
    height: 50px;
  }

  .platform-logo-box img {
    width: 32px;
    height: 32px;
  }

  .platform-name {
    font-size: 15px;
  }

  .platform-status {
    font-size: 11px;
  }

  .switch {
    width: 50px;
    height: 28px;
  }

  .slider:before {
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
  }

  input:checked + .slider:before {
    transform: translateX(22px);
  }
}
