/* Beta Banner + Bug Report Widget */

.beta-banner {
  background: linear-gradient(90deg, #1e3a5f 0%, #0f2744 100%);
  color: #e2e8f0;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  line-height: 1.4;
  position: relative;
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.beta-banner strong { color: #60a5fa; }
.beta-banner a {
  color: #93c5fd;
  text-decoration: underline;
  cursor: pointer;
}
.beta-banner-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}
.beta-banner-close:hover { color: #e2e8f0; }

/* Floating bug button */
.bug-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1e3a5f;
  border: 1px solid rgba(255,255,255,0.12);
  color: #93c5fd;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  transition: transform 0.15s, background 0.15s;
}
.bug-btn:hover {
  transform: scale(1.08);
  background: #264a6f;
}
.bug-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Modal overlay */
.bug-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
}
.bug-overlay.open { display: flex; }

/* Modal */
.bug-modal {
  background: #0f1c2e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  width: 90%;
  max-width: 420px;
  padding: 24px;
  color: #e2e8f0;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.bug-modal h3 {
  margin: 0 0 4px;
  font-size: 18px;
  color: #fff;
}
.bug-modal .bug-sub {
  margin: 0 0 16px;
  font-size: 13px;
  color: #94a3b8;
}
.bug-modal label {
  display: block;
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 4px;
}
.bug-modal textarea,
.bug-modal input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  background: #162236;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: #e2e8f0;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 12px;
  resize: vertical;
  transition: border-color 0.15s;
}
.bug-modal textarea:focus,
.bug-modal input[type="email"]:focus {
  outline: none;
  border-color: #60a5fa;
}
.bug-modal textarea { min-height: 100px; }

/* Screenshot upload */
.bug-screenshot-area {
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 13px;
  color: #94a3b8;
  transition: border-color 0.15s, background 0.15s;
}
.bug-screenshot-area:hover {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.02);
}
.bug-screenshot-area.has-file {
  border-color: #60a5fa;
  color: #93c5fd;
}
.bug-screenshot-area input { display: none; }

/* Page info tag */
.bug-page-tag {
  display: inline-block;
  background: rgba(96,165,250,0.12);
  color: #60a5fa;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
}

/* Buttons */
.bug-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 4px;
}
.bug-cancel {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: #94a3b8;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}
.bug-cancel:hover { background: rgba(255,255,255,0.04); }
.bug-submit {
  background: #2563eb;
  border: none;
  color: #fff;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.bug-submit:hover { background: #3b82f6; }
.bug-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Success state */
.bug-success {
  text-align: center;
  padding: 20px 0;
}
.bug-success-icon {
  font-size: 36px;
  margin-bottom: 8px;
  color: #22c55e;
}
.bug-success h4 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 16px;
}
.bug-success p {
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
}

/* Close button */
.bug-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: #64748b;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.bug-close:hover { color: #e2e8f0; }

@media (max-width: 480px) {
  .bug-modal {
    width: 95%;
    padding: 20px 16px;
  }
  .bug-btn {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}
