* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0f172a;
  color: #fff;
}

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 270px;
  background: linear-gradient(180deg, #111827, #0b1220);
  border-right: 1px solid rgba(255,255,255,0.08);
  padding: 24px 16px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding: 8px;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  font-size: 22px;
  font-weight: bold;
}

.sidebar-brand h2 {
  margin: 0 0 4px;
  font-size: 22px;
}

.sidebar-brand p {
  margin: 0;
  font-size: 13px;
  opacity: 0.75;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-item {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: 0.2s ease;
}

.menu-item:hover {
  background: rgba(255,255,255,0.12);
}

.menu-item.active {
  background: #2563eb;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.menu-icon {
  width: 24px;
  text-align: center;
}

.main-content {
  flex: 1;
  padding: 24px;
}

.page-section {
  display: none;
}

.page-section.active {
  display: block;
}

.card {
  max-width: 900px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.card h2 {
  margin-top: 0;
  margin-bottom: 18px;
}

input,
button {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 16px;
}

input {
  margin-bottom: 12px;
  outline: none;
}

form button {
  cursor: pointer;
  font-weight: 700;
  background: #2563eb;
  color: #fff;
}

.kuota-alert {
  background: rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 14px;
}

.kuota-alert.error {
  background: rgba(220, 38, 38, 0.18);
}

.kuota-alert.loading {
  background: rgba(37, 99, 235, 0.18);
}

.kuota-card-wrap {
  margin-top: 16px;
}

.kuota-card-header,
.kuota-card-kuota-title {
  font-size: 20px;
  font-weight: 700;
  margin: 16px 0 12px;
}

.kuota-card-info-row,
.kuota-card-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.kuota-card-section {
  margin-top: 16px;
  background: rgba(255,255,255,0.05);
  border-radius: 18px;
  padding: 14px;
}

.kuota-card-section-header {
  margin-bottom: 12px;
}

.kuota-card-section-title {
  font-size: 18px;
  font-weight: 700;
}

.kuota-card-section-sub {
  margin-top: 6px;
  opacity: 0.8;
  display: flex;
  gap: 6px;
  align-items: center;
}

.kuota-card-item-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.kuota-card-item-title {
  font-weight: 700;
}

.kuota-card-item-value {
  font-weight: 700;
}

.kuota-card-item-desc {
  font-size: 14px;
  opacity: 0.8;
}

.kuota-progress {
  width: 100%;
  height: 10px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.kuota-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: #22c55e;
}

.kuota-progress-bar.is-medium {
  background: #eab308;
}

.kuota-progress-bar.is-low {
  background: #f97316;
}

.kuota-progress-bar.is-empty {
  background: #ef4444;
}

.kuota-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  opacity: 0.9;
}

.kuota-progress-status.is-high {
  color: #4ade80;
}

.kuota-progress-status.is-medium {
  color: #facc15;
}

.kuota-progress-status.is-low {
  color: #fb923c;
}

.kuota-progress-status.is-empty {
  color: #f87171;
}

.embed-area-wrap {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border-radius: 18px;
  padding: 12px;
  min-height: 700px;
}

.embed-area-frame {
  width: 100%;
  height: 700px;
  border: 0;
  border-radius: 14px;
  background: #fff;
}

.placeholder-wrap {
  min-height: 100vh;
  background: #f8fafc;
  color: #0f172a;
  font-family: Arial, sans-serif;
  padding: 24px;
}

.placeholder-card {
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.placeholder-card h1 {
  margin-top: 0;
  margin-bottom: 12px;
}

.placeholder-card code {
  background: #e2e8f0;
  padding: 2px 6px;
  border-radius: 6px;
}

@media (max-width: 900px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .sidebar-menu {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .menu-item {
    width: auto;
  }

  .main-content {
    padding: 16px;
  }

  .embed-area-frame {
    height: 650px;
  }
}
