/* nano-banana.css - extracted and filtered from index.html */

:root {
  --bg: #FFFFFF;
  --text: #1A1A1A;
  --text-secondary: #666666;
  --text-muted: #888888;
  --accent: #0066FF;
  --accent-hover: #0052cc;
  --border: #EEEEEE;
  --border-light: #F0F0F0;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========== HEADER ========== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  position: relative;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.logo:hover {
  color: var(--accent);
}
.logo .logo-emoji {
  display: inline-block;
  transition: transform 0.5s;
}
.logo:hover .logo-emoji {
  transform: rotate(360deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  position: relative;
  transition: color 0.2s;
}
.nav a:hover {
  color: var(--accent);
}
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}
.nav-menu > li {
  position: relative;
}
.nav-menu > li > a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  display: inline-block;
  transition: color 0.2s;
}
.nav-menu > li > a:hover {
  color: var(--accent);
}
.dropdown {
  position: relative;
}
.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
  pointer-events: none;
}
.dropdown:hover::after,
.dropdown.is-open::after {
  pointer-events: auto;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -16px;
  margin-top: 0;
  min-width: 220px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  list-style: none;
  padding: 8px 0;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.dropdown-menu::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 100%;
  height: 20px;
  background: transparent;
  pointer-events: none;
}
.dropdown:hover .dropdown-menu,
.dropdown.is-open .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.dropdown-menu:hover::after {
  pointer-events: auto;
}
.dropdown.open .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.dropdown-menu li {
  margin: 0;
}
.dropdown-menu .menu-item {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  transition: background 0.15s, color 0.15s;
}
.dropdown-menu .menu-item:hover {
  background: var(--border-light);
  color: var(--accent);
}
.dropdown-menu .menu-item.active {
  background: rgba(0,102,255,0.06);
  color: var(--accent);
}
.nav-item-with-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.badge-new {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--border-light);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.btn-login {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  border-radius: 6px;
}
.btn-login:hover {
  color: var(--accent);
  text-decoration: underline;
}
.btn-signup {
  background: var(--accent);
  color: white;
  border: none;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.btn-signup:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.profile-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.profile-icon:hover {
  color: var(--accent);
  background: rgba(0, 102, 255, 0.08);
}
.login-link {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  border-radius: 6px;
}
.login-link:hover {
  color: var(--accent);
  text-decoration: underline;
}
.signup-btn {
  background: var(--accent);
  color: white;
  border: none;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.signup-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* Блок авторизованного пользователя: Профиль + Выйти + аватар */
.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
.header-right > a:first-child {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.2s;
}
.header-right > a:first-child:hover {
  color: var(--accent);
}
.header-right .logout-btn {
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.2s;
}
.header-right .logout-btn:hover {
  color: var(--accent);
}
.header-right .profile-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  overflow: hidden;
  flex-shrink: 0;
}
.header-right .profile-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-right .diamond-balance {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  padding: 0.35rem 0.6rem;
  background: var(--border-light);
  border-radius: 8px;
}

/* ========== LIGHTBOX (просмотр превью в полном размере) ========== */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.lightbox-overlay.lightbox-open {
  opacity: 1;
  visibility: visible;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}
.lightbox-image {
  max-width: 100%;
  max-height: 95vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
.history-item img,
.result-area .result-image,
.cell-content img,
.preview-item img {
  cursor: pointer;
}

/* ========== LAYOUT ========== */
.nb-layout {
  display: flex;
  flex: 1;
  min-height: 0;
}
.nano-banana-container {
  flex: 1;
  padding: 4rem 3rem 5rem;
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
}

.prompt-section {
  margin-bottom: 2rem;
}
.prompt-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.prompt-input-wrap {
  flex: 1;
  min-width: 200px;
}
.prompt-input,
.prompt-textarea {
  width: 100%;
  padding: 1.25rem 1.5rem;
  font-size: 1.0625rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.prompt-textarea {
  resize: none;
  overflow: hidden;
  min-height: 3.5rem;
}
.prompt-input::placeholder,
.prompt-textarea::placeholder {
  color: var(--text-muted);
}
.prompt-input:focus,
.prompt-textarea:focus {
  border-bottom-color: var(--accent);
  box-shadow: 0 1px 0 0 var(--accent);
}

.generate-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}
.btn-generate {
  background: var(--accent);
  color: white;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.btn-generate:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
}
.price-value {
  color: var(--text);
}
.price-currency {
  font-weight: 500;
}

.settings-bar,
.settings-panel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.settings-bar .chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.settings-bar .chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 102, 255, 0.04);
}
.settings-bar .chip-icon {
  font-size: 1rem;
}
.model-selector {
  display: inline-block;
  margin-right: 2px;
}
.model-dropdown {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 2rem 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23666%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.model-dropdown:hover {
  border-color: var(--accent);
}
.model-dropdown:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0,102,255,0.1);
}
.ratio-dropdown {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 2rem 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23666%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ratio-dropdown:hover {
  border-color: var(--accent);
}
.ratio-dropdown:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0,102,255,0.1);
}
.ratio-selector {
  display: inline-block;
  margin-right: 2px;
}
.resolution-selector,
.format-selector {
  display: inline-block;
  margin-right: 2px;
}
.resolution-dropdown,
.format-dropdown {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 2rem 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23666%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  min-width: 72px;
  transition: border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.resolution-dropdown:hover:not(:disabled),
.format-dropdown:hover {
  border-color: var(--accent);
}
.resolution-dropdown:focus,
.format-dropdown:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0,102,255,0.1);
}
.resolution-dropdown:disabled {
  cursor: default;
}

/* ========== UPLOAD (основные стили в styles.css) ========== */
.upload-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.upload-hint-block {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
}
.mode-hint {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}
.preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: #c53030;
  padding: 0;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.preview-remove:hover {
  background: #fff;
  transform: scale(1.1);
}

/* ========== RESULT AREA (generated image / error) ========== */
.result-area {
  width: 100%;
  min-height: 140px;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--border-light);
  border-radius: 12px;
  padding: 1.25rem;
  box-sizing: border-box;
  transition: all 0.3s ease;
}
.result-area.resolution-1k {
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
}
.result-area.resolution-2k {
  max-width: 2048px;
  margin-left: auto;
  margin-right: auto;
}
.result-area.resolution-4k {
  max-width: 4096px;
  margin-left: auto;
  margin-right: auto;
}
.result-area.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.result-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}
.result-area .result-image {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: block;
}
.result-image-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.result-image-loading.result-image-error {
  color: #c53030;
}
.result-area .result-error {
  color: #c53030;
  font-size: 0.9375rem;
  padding: 1rem 1.25rem;
  background: rgba(197, 48, 48, 0.08);
  border-radius: 10px;
  border: 1px solid rgba(197, 48, 48, 0.2);
}
.result-area .loading-text {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Блок ошибки генерации */
.result-area .error-container {
  padding: 40px;
  text-align: center;
  background: #fff5f5;
  border-radius: 16px;
  border: 1px solid #ffcdd2;
  margin: 0;
}

.result-area .error-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.result-area .error-message {
  font-size: 18px;
  font-weight: 600;
  color: #d32f2f;
  margin-bottom: 8px;
}

.result-area .error-details {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  padding: 10px;
  background: white;
  border-radius: 8px;
  display: inline-block;
}

.result-area .error-retry-btn {
  background: #d32f2f;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}

.result-area .error-retry-btn:hover {
  background: #b71c1c;
  color: white;
}

.btn-generate:disabled {
  opacity: 0.8;
  cursor: not-allowed;
  transform: none;
}

/* ========== BURGER (MOBILE) ========== */
.burger {
  display: none;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 10px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
}
.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}
.nav.open {
  display: flex;
}
.nav.open .nav-menu {
  flex-direction: column;
  align-items: stretch;
}
.nav.open .nav-menu > li > a,
.nav.open .dropdown-toggle {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
}
.nav.open .dropdown-menu {
  position: static;
  box-shadow: none;
  border: none;
  border-radius: 0;
  padding-left: 1rem;
  margin-top: 0.25rem;
  display: none;
}
.nav.open .dropdown.open .dropdown-menu {
  display: block;
}
.nav.open .dropdown-menu .menu-item {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0.6rem 1rem;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .header .logo-emoji {
    display: none;
  }
  .header {
    position: relative;
  }
  .header-left {
    gap: 0.75rem;
    justify-content: flex-start;
  }
  .header-left .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
  }
  .header-left .burger {
    order: -1;
    display: flex;
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 0.75rem 1rem 1rem;
    border-bottom: 1px solid var(--border);
    max-height: 85vh;
    overflow-y: auto;
  }
  .nano-banana-container {
    padding: 1.5rem 1rem 2.5rem;
  }
  .header-right {
    gap: 0.5rem;
  }
  .header-right .profile-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    font-size: 0.8rem;
  }
}

@media (max-width: 600px) {
  .header {
    padding: 0.75rem 1rem;
  }
  .logo {
    font-size: 1.1rem;
  }
  .prompt-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }
  .prompt-input-wrap {
    min-width: 0;
  }
  .generate-row {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .btn-generate {
    min-height: 44px;
    padding: 0.75rem 1.25rem;
    flex: 1;
    min-width: 0;
  }
  .result-area {
    padding: 1rem;
    min-height: 120px;
  }
  .result-area .result-image {
    max-height: 60vh;
  }
  .preview-grid {
    gap: 0.5rem;
  }
  .preview-item {
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .nano-banana-container {
    padding: 1rem 0.75rem 2rem;
  }
  .header-right > a:first-child,
  .header-right .logout-btn,
  .login-link,
  .signup-btn {
    padding: 0.5rem 0.5rem;
    font-size: 0.875rem;
  }
}

/* ========== КОМПАКТНЫЙ СТАТУС-МОНИТОР ========== */
.status-compact {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 30px;
  padding: 8px 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: all 0.2s ease;
}

.status-indicator:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-color: #0066FF;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00CC66;
  transition: background 0.3s ease;
}

.status-label {
  font-size: 13px;
  font-weight: 500;
  color: #666;
  letter-spacing: 0.5px;
}

.status-percent {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.status-dropdown {
  position: absolute;
  bottom: 60px;
  right: 0;
  width: 340px;
  background: white;
  border-radius: 16px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  transition-delay: 0.1s, 0s, 0.1s;
  pointer-events: none;
}

.status-compact:hover .status-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0.1s, 0s, 0.1s;
}

.status-compact:not(:hover) .status-dropdown {
  transition-delay: 0.3s, 0s, 0.3s;
}

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

.dropdown-title {
  font-size: 13px;
  font-weight: 600;
  color: #666;
  letter-spacing: 0.3px;
}

.dropdown-period {
  font-size: 12px;
  color: #999;
}

.hourly-chart,
#hourlyChart {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: 16px;
  height: 70px;
}

.hour-bar-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.hour-bar {
  width: 100%;
  height: 40px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.hour-bar-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  border-radius: 0 0 4px 4px;
  transition: height 0.3s ease;
}

.hour-label {
  font-size: 9px;
  color: #999;
  transform: rotate(-45deg);
  white-space: nowrap;
}

.hour-value {
  font-size: 9px;
  font-weight: 600;
  color: #666;
}

.dropdown-stats {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
}

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

.stat-value {
  font-weight: 600;
  color: #0066FF;
}

.dropdown-footer {
  text-align: center;
  font-size: 11px;
  color: #999;
  font-style: italic;
}

.dropdown-footer .status-info {
  font-style: italic;
}

@media (max-width: 768px) {
  .status-dropdown {
    width: 300px;
    max-width: calc(100vw - 40px);
    right: 0;
    bottom: 50px;
  }

  .hour-label {
    font-size: 8px;
  }

  .status-indicator {
    padding: 6px 12px;
  }

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

@media (max-width: 480px) {
  .status-compact {
    bottom: 12px;
    right: 12px;
  }

  .status-dropdown {
    width: min(300px, calc(100vw - 24px));
    right: 0;
  }

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