/* ===== DARK IMAGE GENERATOR - CSS DEDICADO ===== */

/* Container principal do gerador */
.image-generator-page {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 200px);
}

.image-generator-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

/* Ferramenta principal do gerador de imagens */
.image-generator-tool {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid rgba(50, 193, 0, 0.2);
}

.image-generator-tool h3 {
  color: var(--lime);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 15px;
  text-align: center;
  text-shadow: 0 0 10px rgba(50, 193, 0, 0.5);
}

.tool-description {
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin-bottom: 30px;
  font-size: 1rem;
  line-height: 1.6;
  padding: 15px;
  background: rgba(50, 193, 0, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(50, 193, 0, 0.2);
}

/* ===== SISTEMA DE MÚLTIPLAS CHAVES API ===== */

/* Interface Compacta */
.api-keys-compact {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 30px;
  border: 1px solid rgba(50, 193, 0, 0.2);
}

.api-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.api-summary-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.api-icon {
  font-size: 2rem;
  opacity: 0.8;
}

.api-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.api-status-text {
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
}

.api-usage-info {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.manage-keys-btn {
  background: var(--lime);
  color: var(--black);
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Montserrat", sans-serif;
  white-space: nowrap;
}

.manage-keys-btn:hover {
  background: var(--white);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(50, 193, 0, 0.3);
}

.api-status-compact {
  margin-top: 15px;
  padding: 10px 15px;
  border-radius: 10px;
  font-weight: 600;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  display: none;
}

.api-status-compact.success {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
  border: 1px solid #28a745;
  display: block;
}

.api-status-compact.error {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
  border: 1px solid #dc3545;
  display: block;
}

.api-status-compact.info {
  background: rgba(50, 193, 0, 0.2);
  color: var(--lime);
  border: 1px solid var(--lime);
  display: block;
}

/* Modal de Gerenciamento */
.api-keys-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.api-keys-modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  background: rgba(0, 0, 0, 0.9);
  border: 2px solid rgba(50, 193, 0, 0.3);
  border-radius: 20px;
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  border-bottom: 1px solid rgba(50, 193, 0, 0.2);
}

.modal-header h3 {
  color: var(--lime);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
}

.close-modal-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-modal-btn:hover {
  color: var(--lime);
  background: rgba(50, 193, 0, 0.1);
}

.modal-body {
  padding: 25px;
}

.api-help-compact {
  background: rgba(50, 193, 0, 0.1);
  border: 1px solid rgba(50, 193, 0, 0.2);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 25px;
}

.api-help-compact p {
  color: var(--white);
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.api-help-compact a {
  color: var(--lime);
  text-decoration: none;
  font-weight: 600;
}

.api-help-compact a:hover {
  text-decoration: underline;
}

.api-keys-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.api-key-item {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(50, 193, 0, 0.2);
  border-radius: 10px;
  padding: 15px;
}

.api-key-item label {
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 8px;
}

.api-key-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.api-key-controls input {
  flex: 1;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(50, 193, 0, 0.3);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
}

.api-key-status {
  font-size: 1.2rem;
  min-width: 25px;
  text-align: center;
}

.modal-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.test-all-btn,
.save-all-btn,
.clear-all-btn {
  background: var(--lime);
  color: var(--black);
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Montserrat", sans-serif;
  font-size: 0.9rem;
  white-space: nowrap;
}

.test-all-btn {
  background: transparent;
  color: var(--lime);
  border: 2px solid var(--lime);
}

.test-all-btn:hover:not(:disabled) {
  background: var(--lime);
  color: var(--black);
}

.save-all-btn:hover {
  background: #28a745;
  transform: translateY(-2px);
}

.clear-all-btn {
  background: transparent;
  color: #dc3545;
  border: 2px solid #dc3545;
}

.clear-all-btn:hover {
  background: #dc3545;
  color: var(--white);
}

.api-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.bulk-test-status {
  background: rgba(50, 193, 0, 0.1);
  border: 1px solid rgba(50, 193, 0, 0.3);
  border-radius: 10px;
  padding: 15px;
  display: none;
}

.bulk-test-status.show {
  display: block;
}

.bulk-test-status h4 {
  color: var(--lime);
  margin: 0 0 10px 0;
  font-size: 1rem;
}

.test-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(50, 193, 0, 0.1);
}

.test-result:last-child {
  border-bottom: none;
}

.test-result-key {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.test-result-status {
  font-size: 1rem;
}

/* Estados dos botões durante teste */
.test-all-btn:disabled,
.save-all-btn:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
  transform: none;
}

.test-all-btn.loading::before {
  content: "⏳";
  animation: spin 1s linear infinite;
  margin-right: 8px;
}

/* ===== CONFIGURAÇÕES DO GERADOR ===== */

.settings-section {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
  border: 1px solid rgba(50, 193, 0, 0.2);
}

.generator-settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.setting-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.setting-group label {
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
}

/* Campo de prompt full-width */
.setting-group.full-width {
  grid-column: 1 / -1;
}

#image-prompt {
  width: 100%;
  min-height: 120px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(50, 193, 0, 0.3);
  border-radius: 15px;
  padding: 20px;
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  resize: vertical;
  margin-bottom: 10px;
}

.prompt-tips {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-style: italic;
  margin-top: 8px;
}

/* Botão principal de gerar */
.generate-btn {
  background: var(--lime);
  color: var(--black);
  border: none;
  padding: 15px 40px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Montserrat", sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 100%;
  margin-bottom: 20px;
}

.generate-btn:hover {
  background: var(--white);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(50, 193, 0, 0.4);
}

.generate-btn:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  cursor: not-allowed;
  transform: none;
}

/* ===== RESULTADOS DAS IMAGENS ===== */

#images-output {
  margin-top: 30px;
}

.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.image-result {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(50, 193, 0, 0.3);
  border-radius: 15px;
  padding: 15px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-result:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(50, 193, 0, 0.2);
}

.image-result img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 15px;
  border: 2px solid rgba(50, 193, 0, 0.2);
}

.image-result h4 {
  color: var(--lime);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.image-info {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 15px;
  text-align: left;
}

.image-info strong {
  color: var(--lime);
  font-weight: 600;
}

.image-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.download-btn,
.copy-image-btn {
  background: var(--lime);
  color: var(--black);
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.download-btn:hover,
.copy-image-btn:hover {
  background: var(--white);
  color: var(--dark);
  transform: translateY(-2px);
}

/* ===== ESTADOS DE LOADING E MENSAGENS ===== */

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--lime);
  animation: spin 1s ease-in-out infinite;
  margin-right: 10px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.generating-message {
  text-align: center;
  color: var(--lime);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 30px;
  background: rgba(50, 193, 0, 0.1);
  border-radius: 15px;
  border: 1px solid rgba(50, 193, 0, 0.3);
  margin-top: 20px;
}

.generation-progress {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-top: 10px;
}

/* Estados de erro e sucesso */
.error-message {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
  border: 1px solid #dc3545;
  border-radius: 10px;
  padding: 15px;
  margin-top: 20px;
  text-align: center;
}

.success-message {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
  border: 1px solid #28a745;
  border-radius: 10px;
  padding: 15px;
  margin-top: 20px;
  text-align: center;
}

/* ===== LAYOUT COM SIDEBAR DE PRODUTOS ===== */
.image-generator-page .tools-layout {
  display: flex;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.image-generator-page .image-generator-container {
  flex: 1;
}

.image-generator-page .products-sidebar {
  width: 250px;
  position: sticky;
  top: 20px;
  height: fit-content;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding-right: 5px; /* Espaço extra para scrollbar */
}

/* ===== RESPONSIVIDADE ===== */

@media (max-width: 1200px) {
  .image-generator-page .tools-layout {
    flex-direction: column;
    gap: 20px;
  }

  .image-generator-page .products-sidebar {
    width: 100%;
    order: -1;
  }
}

@media (max-width: 768px) {
  .image-generator-page .products-sidebar {
    width: 100%;
  }
  
  .automation-notice {
    padding: 10px 12px;
    margin-bottom: 20px;
  }
  
  .notice-text {
    font-size: 0.8rem;
  }
  
  .notice-icon {
    font-size: 1rem;
  }
  
  .image-generator-page .sidebar-produto.produto-card {
    margin-bottom: 20px;
  }
  
  .image-generator-page .sidebar-produto.produto-card img {
    height: 120px;
  }
  
  .image-generator-page .sidebar-produto.produto-card h3 {
    font-size: 1.1rem;
  }
  
  .image-generator-page .sidebar-produto.produto-card p {
    font-size: 0.85rem;
  }
  
  .image-generator-page .sidebar-produto .btn-primary,
  .image-generator-page .sidebar-produto .btn-secondary {
    padding: 10px 15px;
    font-size: 0.8rem;
  }
  
  .api-summary {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  
  .api-summary-content {
    justify-content: center;
  }
  
  .modal-content {
    width: 95%;
    margin: 10px;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .test-all-btn,
  .save-all-btn,
  .clear-all-btn {
    width: 100%;
  }
  
  .api-key-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .api-key-status {
    align-self: center;
    margin-top: 5px;
  }
  
  .images-grid {
    grid-template-columns: 1fr;
  }
  
  .image-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .download-btn,
  .copy-image-btn {
    width: 80%;
  }
  
  .generator-settings {
    grid-template-columns: 1fr;
  }
  
  .image-generator-page {
    padding: 15px;
  }
  
  .image-generator-container {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .image-generator-page .tools-layout {
    padding: 15px;
  }
  
  .image-generator-page .products-sidebar {
    position: static;
    max-height: none;
  }
  
  .automation-notice {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 8px 10px;
  }
  
  .notice-text {
    font-size: 0.75rem;
    line-height: 1.3;
  }
  
  .image-generator-tool {
    padding: 20px;
  }
  
  .image-generator-tool h3 {
    font-size: 1.5rem;
  }
  
  .generate-btn {
    padding: 12px 30px;
    font-size: 1rem;
  }
}

/* ===== COMPATIBILIDADE COM FERRAMENTAS ===== */
.checkbox-container {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--lime);
  cursor: pointer;
}

/* ===== ESTILO DOS PRODUTOS NA SIDEBAR ===== */
.image-generator-page .products-sidebar {
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid rgba(50, 193, 0, 0.2);
  
  /* Scrollbar customizada */
  scrollbar-width: thin;
  scrollbar-color: var(--lime) rgba(0, 0, 0, 0.3);
}

.image-generator-page .products-sidebar::-webkit-scrollbar {
  width: 8px;
}

.image-generator-page .products-sidebar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}

.image-generator-page .products-sidebar::-webkit-scrollbar-thumb {
  background: var(--lime);
  border-radius: 4px;
  transition: background 0.3s ease;
}

.image-generator-page .products-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--white);
}

.image-generator-page .products-sidebar h3 {
  color: var(--lime);
  font-size: 1.5rem;
  font-weight: 800;
  font-style: italic;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--lime);
  text-align: center;
}

/* Aviso discreto sobre ferramentas de automação */
.automation-notice {
  background: rgba(50, 193, 0, 0.1);
  border: 1px solid rgba(50, 193, 0, 0.3);
  border-radius: 10px;
  padding: 12px 15px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: subtlePulse 3s infinite ease-in-out;
}

.notice-icon {
  font-size: 1.2rem;
  animation: bounce 2s infinite ease-in-out;
}

.notice-text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  line-height: 1.4;
  font-weight: 500;
  text-align: left;
}

@keyframes subtlePulse {
  0%, 100% { 
    border-color: rgba(50, 193, 0, 0.3);
    background: rgba(50, 193, 0, 0.1);
  }
  50% { 
    border-color: rgba(50, 193, 0, 0.5);
    background: rgba(50, 193, 0, 0.15);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-3px);
  }
  60% {
    transform: translateY(-2px);
  }
}

.image-generator-page .sidebar-produto.produto-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(50, 193, 0, 0.3);
  border-radius: 15px;
  padding: 18px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.image-generator-page .sidebar-produto.produto-card:hover {
  border-color: var(--lime);
  box-shadow: 0 10px 30px rgba(50, 193, 0, 0.2);
  transform: translateY(-5px);
}

.image-generator-page .sidebar-produto.produto-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
  border: 2px solid rgba(50, 193, 0, 0.2);
}

.image-generator-page .sidebar-produto.produto-card h3 {
  color: var(--lime);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
  font-style: italic;
  border-bottom: none;
  padding-bottom: 0;
}

.image-generator-page .sidebar-produto.produto-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 15px;
  text-align: center;
}

.image-generator-page .sidebar-produto .product-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.image-generator-page .sidebar-produto .btn-primary,
.image-generator-page .sidebar-produto .btn-secondary {
  display: block;
  text-align: center;
  padding: 12px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.image-generator-page .sidebar-produto .btn-primary {
  background: var(--lime);
  color: var(--black);
  border: 2px solid var(--lime);
}

.image-generator-page .sidebar-produto .btn-primary:hover {
  background: var(--white);
  color: var(--black);
}

.image-generator-page .sidebar-produto .btn-secondary {
  background: transparent;
  color: var(--lime);
  border: 2px solid var(--lime);
}

.image-generator-page .sidebar-produto .btn-secondary:hover {
  background: var(--lime);
  color: var(--black);
}

/* ===== SEED LOCK/UNLOCK ===== */
.seed-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seed-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

#seed-input {
  width: 120px;
  background: rgba(0,0,0,0.5);
  border: 2px solid #ffc107;
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s;
}

#seed-input:focus {
  border-color: #ffd700;
  outline: none;
}

.seed-lock-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seed-lock-btn:focus,
.seed-lock-btn:hover {
  background: rgba(255, 193, 7, 0.15);
}

.seed-lock-btn svg {
  width: 24px;
  height: 24px;
  transition: stroke 0.3s;
}

.seed-tooltip {
  margin-left: 6px;
  color: #ffc107;
  cursor: help;
  font-size: 1rem;
  vertical-align: middle;
}

#seed-mode-desc {
  color: #ffc107;
  font-size: 0.92rem;
  font-style: italic;
}

/* ===== RESPONSIVIDADE DO MODAL DE CHAVES API ===== */
@media (max-width: 700px) {
  .api-keys-modal .modal-content {
    width: 98vw;
    max-width: 98vw;
    min-width: unset;
    padding: 8px;
    border-radius: 10px;
    height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  .api-keys-modal .modal-body {
    padding: 10px;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
  }
}
@media (max-width: 480px) {
  .api-keys-modal .modal-content {
    width: 100vw;
    max-width: 100vw;
    min-width: unset;
    padding: 2px;
    border-radius: 0;
    height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  .api-keys-modal .modal-body {
    padding: 4px;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
  }
}

/* ===== MODAL/LIGHTBOX DE IMAGEM AMPLIADA ===== */
.image-lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.85);
  transition: opacity 0.3s;
  opacity: 1;
}
.image-lightbox.hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
}
.lightbox-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  z-index: 0;
}
.lightbox-content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 15px;
  box-shadow: 0 0 40px var(--lime), 0 0 80px rgba(50,193,0,0.2);
  background: #111;
}
.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  color: var(--lime);
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.lightbox-close:hover, .lightbox-close:focus {
  background: var(--lime);
  color: var(--black);
  outline: 2px solid var(--lime);
}
@media (max-width: 700px) {
  .lightbox-content {
    max-width: 98vw;
    max-height: 98vh;
  }
  #lightbox-img {
    max-width: 98vw;
    max-height: 70vh;
  }
}
@media (max-width: 480px) {
  .lightbox-content {
    max-width: 100vw;
    max-height: 100vh;
  }
  #lightbox-img {
    max-width: 100vw;
    max-height: 60vh;
  }
} 