/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #000000;
  color: #ffffff;
  line-height: 1.6;
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 250px;
  height: 100vh;
  background: linear-gradient(180deg, #1a1a1a 0%, #000000 100%);
  padding: 20px 0;
  z-index: 1000;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
}

.logo-container {
  text-align: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 30px;
}

.crown-icon {
  font-size: 48px;
  margin-bottom: 10px;
  filter: drop-shadow(0 2px 4px rgba(241, 196, 15, 0.3));
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.imperium {
  font-size: 18px;
  font-weight: bold;
  color: #f1c40f;
  letter-spacing: 2px;
}

.galvanica {
  font-size: 14px;
  color: #ffffff;
  letter-spacing: 1px;
  margin-top: 2px;
}

.nav-menu {
  padding: 0 10px;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: #cccccc;
  text-decoration: none;
  border-radius: 8px;
  margin-bottom: 5px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-item:hover {
  background: rgba(241, 196, 15, 0.1);
  color: #f1c40f;
  transform: translateX(5px);
}

.nav-item.active {
  background: linear-gradient(135deg, #f1c40f, #e67e22);
  color: #000000;
  box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3);
}

.nav-item i {
  margin-right: 12px;
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.version-info {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #666666;
  font-size: 12px;
}

/* Conteúdo principal */
.main-content {
  margin-left: 250px;
  min-height: 100vh;
  background: #000000;
}

.content-section {
  display: none;
  padding: 30px;
  min-height: 100vh;
}

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

/* Header */
.header {
  background: linear-gradient(135deg, #1a1a1a, #000000);
  color: #ffffff;
  padding: 20px 30px;
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  border: 1px solid #333333;
}

.header h1 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #f1c40f;
}

.header-actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}

.search-container {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.search-input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #333333;
  border-radius: 25px;
  background: #1a1a1a;
  color: #ffffff;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

.search-input:focus {
  background: #2a2a2a;
  border-color: #f1c40f;
  box-shadow: 0 0 10px rgba(241, 196, 15, 0.3);
}

/* Botões */
button {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, #f1c40f, #e67e22);
  color: #000000;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(241, 196, 15, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #666666, #333333);
  color: #ffffff;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 102, 102, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, #27ae60, #229954);
  color: #ffffff;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
}

/* Botões específicos para múltiplos tanques */
.btn-multiplos-tanques,
.btn-aplicar-multiplos,
.btn-cancelar-multiplos {
  background: linear-gradient(135deg, #f1c40f, #e67e22);
  color: #000000;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-multiplos-tanques:hover,
.btn-aplicar-multiplos:hover,
.btn-cancelar-multiplos:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(241, 196, 15, 0.4);
}

/* Grid de tanques */
.tanks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 20px;
}

/* Cards de tanques - Layout compacto em 4 colunas */
.tank-card {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border-left: 4px solid #f1c40f;
  color: #ffffff;
  position: relative;
  border: 1px solid #333333;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  width: 100%;
  justify-content: space-between;
}

.tank-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  border-color: #f1c40f;
}

.tank-card h3 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #f1c40f;
  text-align: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #333333;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.tank-info {
  margin-bottom: 15px;
  flex-grow: 1;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.tank-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 6px 8px;
  margin-bottom: 4px;
  background: #2a2a2a;
  border-radius: 4px;
  font-size: 11px;
  border: 1px solid #333333;
  min-height: 28px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.tank-info-row strong {
  color: #ffffff;
  font-weight: 600;
  font-size: 10px;
  flex-shrink: 0;
}

.capacidade-display {
  color: #ffffff;
  font-weight: bold;
  font-size: 10px;
  text-align: right;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 60%;
  line-height: 1.2;
}

.peso-valor {
  color: #e74c3c;
  font-weight: 600;
}

.capacidade-manual-input {
  width: 80px;
  padding: 4px 6px;
  border: 1px solid #f1c40f;
  border-radius: 4px;
  background: #1a1a1a;
  color: #ffffff;
  font-size: 12px;
  margin: 0 5px;
}

.capacidade-manual-input:focus {
  outline: none;
  border-color: #f1c40f;
  background: #333333;
}

.unidade {
  color: #cccccc;
  font-size: 12px;
}

.tank-actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: auto;
  padding-top: 8px;
  flex-shrink: 0;
}

/* Botões compactos para layout de 4 colunas */
.btn-adicionar-peso {
  width: 100%;
  padding: 8px 6px;
  font-size: 10px;
  border-radius: 4px;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: #ffffff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 32px;
}

.btn-adicionar-peso:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(241, 196, 15, 0.4);
}

.btn-aplicar-reforco {
  width: 100%;
  padding: 8px 6px;
  font-size: 10px;
  border-radius: 4px;
  background: linear-gradient(135deg, #27ae60, #229954);
  color: #ffffff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 32px;
}

.btn-aplicar-reforco:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(102, 102, 102, 0.4);
}

.btn-aplicar-reforco-alerta {
  width: 100%;
  padding: 8px 6px;
  font-size: 10px;
  border-radius: 4px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #ffffff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 32px;
}

.btn-aplicar-reforco-alerta:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
}

.btn-estoque-manual {
  width: 100%;
  padding: 8px 6px;
  font-size: 10px;
  border-radius: 4px;
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
  color: #ffffff;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 32px;
}

.btn-estoque-manual:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.4);
}

/* Alertas de automação */
.alerta-automacao {
  background: linear-gradient(135deg, #f1c40f, #e67e22);
  color: #000000;
  padding: 10px;
  border-radius: 8px;
  margin: 10px 0;
  font-weight: 600;
  text-align: center;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* Peso excedido */
.peso-excedido {
  color: #e74c3c !important;
  font-weight: bold;
}

.status-excedido {
  background: #e74c3c !important;
  color: white !important;
}

/* Tabelas */
table {
  width: 100%;
  border-collapse: collapse;
  background: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #333333;
}

th, td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #333333;
  color: #ffffff;
}

th {
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  color: #f1c40f;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
}

tr:hover {
  background: #2a2a2a;
}

/* Cards de estoque */
.estoque-card {
  background: #1a1a1a;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  border-left: 4px solid #f1c40f;
  transition: all 0.3s ease;
  color: #ffffff;
  border: 1px solid #333333;
}

.estoque-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.estoque-card.hidden {
  display: none;
}

.estoque-card.show {
  display: block;
}

/* Estoque de Ouro */
.ouro-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.ouro-card {
  background: linear-gradient(135deg, #f1c40f, #e67e22);
  color: #000000;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(241, 196, 15, 0.3);
  text-align: center;
}

.ouro-card h3 {
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: 600;
}

.ouro-card .valor {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 5px;
}

.ouro-card .status {
  font-size: 12px;
  opacity: 0.8;
}

.ouro-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.ouro-actions button {
  background: linear-gradient(135deg, #f1c40f, #e67e22);
  color: #000000;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ouro-actions button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(241, 196, 15, 0.4);
}

/* Modais */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
}

.modal-content {
  background: #1a1a1a;
  margin: 5% auto;
  padding: 0;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: modalSlide 0.3s ease-out;
  border: 1px solid #333333;
}

@keyframes modalSlide {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  background: linear-gradient(135deg, #f1c40f, #e67e22);
  color: #000000;
  padding: 20px;
  border-radius: 10px 10px 0 0;
}

.modal-body {
  padding: 20px;
  color: #ffffff;
}

.close {
  color: #000000;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  opacity: 0.7;
}

/* Formulários */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #ffffff;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #333333;
  border-radius: 5px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  color: #ffffff;
  background: #2a2a2a;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #f1c40f;
  background: #333333;
}

/* Tanques selecionados no modal */
.tanques-selecionados-info {
  background: #2a2a2a;
  border: 2px solid #f1c40f;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
}

.tanques-selecionados-info h4 {
  color: #f1c40f;
  margin-bottom: 10px;
}

.lista-tanques-selecionados {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tanque-selecionado-tag {
  background: linear-gradient(135deg, #f1c40f, #e67e22);
  color: #000000;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
}

/* Campos especiais */
.campo-especial {
  background: #2a2a2a;
  border: 2px solid #f1c40f;
  border-radius: 8px;
  padding: 15px;
  margin: 15px 0;
}

.campo-especial label {
  color: #f1c40f;
  font-weight: 600;
}

.campo-especial input {
  border-color: #f1c40f;
  background: #333333;
}

/* Notificações */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 600;
  z-index: 9999;
  animation: slideIn 0.3s ease-out;
}

.notification.success {
  background: linear-gradient(135deg, #27ae60, #229954);
}

.notification.error {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.notification.warning {
  background: linear-gradient(135deg, #f1c40f, #e67e22);
  color: #000000;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .main-content {
    margin-left: 0;
  }
  
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  .header-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-container {
    min-width: auto;
  }
  
  .tanks-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ouro-dashboard {
    grid-template-columns: 1fr;
  }
  
  .ouro-actions {
    flex-direction: column;
  }
}

/* Responsividade para tablets */
@media (max-width: 1024px) {
  .tanks-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

/* Responsividade para mobile */
@media (max-width: 768px) {
  .tanks-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  
  .tank-card {
    min-height: 180px;
    max-height: 180px;
    padding: 12px;
  }
  
  .tank-card h3 {
    font-size: 12px;
  }
  
  .tank-info-row {
    font-size: 10px;
    padding: 3px 6px;
  }
  
  .btn-adicionar-peso,
  .btn-aplicar-reforco,
  .btn-estoque-manual {
    font-size: 9px;
    padding: 5px 6px;
  }
}

/* Responsividade para mobile pequeno */
@media (max-width: 480px) {
  .tanks-grid {
    grid-template-columns: 1fr;
  }
}


/* Estilos para aba de estoque */
.estoque-lista-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.estoque-table {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
}

.estoque-table th {
  background: rgba(255, 255, 255, 0.1);
  color: #f1c40f;
  padding: 15px 12px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid rgba(241, 196, 15, 0.3);
  font-size: 14px;
}

.estoque-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  vertical-align: middle;
}

.estoque-table tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.produto-nome {
  font-weight: 600;
  color: #ffffff;
  font-size: 13px;
}

.quantidade {
  font-weight: 600;
  color: #3498db;
  text-align: right;
  font-size: 14px;
}

.unidade {
  color: #95a5a6;
  font-size: 12px;
  text-transform: uppercase;
}

.status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
  text-align: center;
}

.status-disponivel {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

.status-baixo {
  background: rgba(241, 196, 15, 0.2);
  color: #f1c40f;
  border: 1px solid rgba(241, 196, 15, 0.3);
}

.status-sem-estoque {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

.acoes {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.btn-entrada-mini, .btn-baixa-mini {
  padding: 6px 10px;
  border: none;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.btn-entrada-mini {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: white;
}

.btn-entrada-mini:hover {
  background: linear-gradient(135deg, #229954, #27ae60);
  transform: translateY(-1px);
}

.btn-baixa-mini {
  background: linear-gradient(135deg, #e67e22, #f39c12);
  color: white;
}

.btn-baixa-mini:hover {
  background: linear-gradient(135deg, #d35400, #e67e22);
  transform: translateY(-1px);
}

.btn-cadastrar-produto, .btn-entrada-produto, .btn-baixa-produto {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 10px;
}

.btn-cadastrar-produto {
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
  color: white;
}

.btn-cadastrar-produto:hover {
  background: linear-gradient(135deg, #7d3c98, #8e44ad);
  transform: translateY(-1px);
}

.btn-entrada-produto {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: white;
}

.btn-entrada-produto:hover {
  background: linear-gradient(135deg, #229954, #27ae60);
  transform: translateY(-1px);
}

.btn-baixa-produto {
  background: linear-gradient(135deg, #e67e22, #f39c12);
  color: white;
}

.btn-baixa-produto:hover {
  background: linear-gradient(135deg, #d35400, #e67e22);
  transform: translateY(-1px);
}

.btn-exportar-excel {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
}

.btn-exportar-excel:hover {
  background: linear-gradient(135deg, #2980b9, #21618c);
  transform: translateY(-1px);
}

.search-input {
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 14px;
  width: 300px;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
  outline: none;
  border-color: #f1c40f;
  box-shadow: 0 0 0 2px rgba(241, 196, 15, 0.2);
}

.erro {
  text-align: center;
  color: #e74c3c;
  font-style: italic;
  padding: 20px;
}


/* Estilos para modais de estoque */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: linear-gradient(135deg, #1a1a1a, #2c2c2c);
  margin: 5% auto;
  padding: 30px;
  border: 1px solid rgba(241, 196, 15, 0.3);
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content h2 {
  color: #f1c40f;
  margin-bottom: 25px;
  font-size: 22px;
  text-align: center;
  border-bottom: 2px solid rgba(241, 196, 15, 0.3);
  padding-bottom: 15px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  right: 20px;
  top: 15px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover,
.close:focus {
  color: #f1c40f;
  text-decoration: none;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 14px;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #f1c40f;
  box-shadow: 0 0 0 2px rgba(241, 196, 15, 0.2);
  background: rgba(255, 255, 255, 0.15);
}

.form-group input[readonly] {
  background: rgba(255, 255, 255, 0.05);
  color: #bbb;
  cursor: not-allowed;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.form-group select option {
  background: #2c2c2c;
  color: white;
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary {
  background: linear-gradient(135deg, #6c757d, #5a6268);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #5a6268, #495057);
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-success:hover {
  background: linear-gradient(135deg, #20c997, #17a2b8);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-danger {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #c82333, #bd2130);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.btn-primary {
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0056b3, #004085);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

/* Responsividade dos modais */
@media (max-width: 768px) {
  .modal-content {
    margin: 10% auto;
    width: 95%;
    padding: 20px;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .form-actions button {
    width: 100%;
    margin-bottom: 10px;
  }
}


/* Botão de excluir produto */
.btn-excluir-mini {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: 4px;
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.btn-excluir-mini:hover {
  background: linear-gradient(135deg, #c82333, #a71e2a);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.4);
}

.btn-excluir-mini:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

/* Ajustar largura da coluna de ações para acomodar 3 botões */
.estoque-table th:last-child,
.estoque-table td:last-child {
  width: 280px;
  min-width: 280px;
}


/* Estilos para aba de histórico */
.historico-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-group label {
  color: #e0e0e0;
  font-size: 12px;
  font-weight: 600;
}

.search-input, .filter-select, .filter-date {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 14px;
}

.search-input {
  min-width: 250px;
}

.filter-select, .filter-date {
  min-width: 150px;
}

.search-input:focus, .filter-select:focus, .filter-date:focus {
  outline: none;
  border-color: #4CAF50;
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

/* Tabela de histórico */
.historico-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.historico-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.historico-table th {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 12px 8px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
}

.historico-table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
  font-size: 12px;
}

.historico-table tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Estilos para tipos de movimentação */
.tipo-peso { color: #2196F3; }
.tipo-reforco { color: #FF9800; }
.tipo-entrada { color: #4CAF50; }
.tipo-baixa { color: #F44336; }
.tipo-cadastro { color: #9C27B0; }
.tipo-exclusao { color: #795548; }
.tipo-outros { color: #607D8B; }

/* Estilos para peso/quantidade */
.peso-positivo { color: #4CAF50; font-weight: 600; }
.peso-negativo { color: #F44336; font-weight: 600; }

/* Mensagens especiais */
.no-data, .erro {
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-style: italic;
}

.erro {
  color: #F44336;
}

/* Paginação */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

.pagination button {
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
  border-color: #4CAF50;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#pageInfo {
  color: #e0e0e0;
  font-size: 14px;
}

/* Responsividade */
@media (max-width: 768px) {
  .historico-filters {
    flex-direction: column;
  }
  
  .search-input {
    min-width: 100%;
  }
  
  .historico-table {
    font-size: 11px;
  }
  
  .historico-table th,
  .historico-table td {
    padding: 6px 4px;
  }
}


/* ===== ESTILOS PARA ESTOQUE DE OURO ===== */

/* Dashboard de ouro */
.ouro-dashboard {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Cards de ouro */
.ouro-cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.ouro-card {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 193, 7, 0.05));
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.ouro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #FFD700, #FFC107, #FF8F00);
}

.ouro-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.5);
}

.ouro-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.ouro-card-header i {
  font-size: 20px;
  color: #FFD700;
}

.ouro-card-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #e0e0e0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ouro-card-value {
  font-size: 28px;
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.ouro-unit {
  font-size: 16px;
  color: #b0b0b0;
  font-weight: 400;
}

.ouro-card-info {
  font-size: 12px;
  color: #b0b0b0;
}

.ouro-card-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-indicator.ok {
  background: #4CAF50;
  box-shadow: 0 0 6px rgba(76, 175, 80, 0.6);
}

.status-indicator.baixo {
  background: #FF9800;
  box-shadow: 0 0 6px rgba(255, 152, 0, 0.6);
}

.status-indicator.critico {
  background: #F44336;
  box-shadow: 0 0 6px rgba(244, 67, 54, 0.6);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.ouro-card-status.ok .status-text { color: #4CAF50; }
.ouro-card-status.baixo .status-text { color: #FF9800; }
.ouro-card-status.critico .status-text { color: #F44336; }

/* ROI colors */
.roi-positivo { color: #4CAF50; }
.roi-negativo { color: #F44336; }

/* Ações principais */
.ouro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
}

.btn-ouro-entrada, .btn-ouro-saida, .btn-ouro-cotacao, .btn-ouro-relatorio {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
  justify-content: center;
}

.btn-ouro-entrada {
  background: linear-gradient(135deg, #4CAF50, #45a049);
  color: white;
}

.btn-ouro-entrada:hover {
  background: linear-gradient(135deg, #45a049, #3d8b40);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-ouro-saida {
  background: linear-gradient(135deg, #F44336, #d32f2f);
  color: white;
}

.btn-ouro-saida:hover {
  background: linear-gradient(135deg, #d32f2f, #b71c1c);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

.btn-ouro-cotacao {
  background: linear-gradient(135deg, #2196F3, #1976D2);
  color: white;
}

.btn-ouro-cotacao:hover {
  background: linear-gradient(135deg, #1976D2, #1565C0);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.btn-ouro-relatorio {
  background: linear-gradient(135deg, #FF9800, #F57C00);
  color: white;
}

.btn-ouro-relatorio:hover {
  background: linear-gradient(135deg, #F57C00, #E65100);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

/* Configurações rápidas */
.ouro-config-rapida {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: end;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 25px;
}

.config-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.config-item label {
  font-size: 12px;
  color: #e0e0e0;
  font-weight: 600;
}

.config-item input {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 14px;
  width: 120px;
}

.config-item input:focus {
  outline: none;
  border-color: #FFD700;
  box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.btn-config-avancada {
  padding: 8px 16px;
  background: linear-gradient(135deg, #9C27B0, #7B1FA2);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-config-avancada:hover {
  background: linear-gradient(135deg, #7B1FA2, #6A1B9A);
  transform: translateY(-1px);
}

/* Movimentações */
.ouro-movimentacoes {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.movimentacoes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.movimentacoes-header h3 {
  margin: 0;
  color: #e0e0e0;
  font-size: 18px;
}

.movimentacoes-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-input-small {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 12px;
  width: 200px;
}

.search-input-small:focus {
  outline: none;
  border-color: #FFD700;
  box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.btn-exportar-ouro {
  padding: 6px 12px;
  background: linear-gradient(135deg, #607D8B, #455A64);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-exportar-ouro:hover {
  background: linear-gradient(135deg, #455A64, #37474F);
  transform: translateY(-1px);
}

/* Tabela de movimentações */
.ouro-table-container {
  overflow-x: auto;
  margin-bottom: 15px;
}

.ouro-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.ouro-table th {
  background: rgba(255, 215, 0, 0.1);
  color: #FFD700;
  padding: 12px 8px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ouro-table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
}

.ouro-table tr:hover {
  background: rgba(255, 215, 0, 0.05);
}

.tipo-entrada { color: #4CAF50; font-weight: 600; }
.tipo-saida { color: #F44336; font-weight: 600; }

.loading, .no-data, .erro {
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-style: italic;
}

.erro { color: #F44336; }

/* Paginação */
.movimentacoes-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
}

.btn-pagination {
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 12px;
}

.btn-pagination:hover:not(:disabled) {
  background: rgba(255, 215, 0, 0.2);
  border-color: #FFD700;
}

.btn-pagination:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Modais específicos para ouro */
.valor-total-preview {
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 6px;
  padding: 15px;
  margin: 15px 0;
  text-align: center;
  color: #FFD700;
  font-size: 16px;
}

.estoque-atual-info {
  background: rgba(33, 150, 243, 0.1);
  border: 1px solid rgba(33, 150, 243, 0.3);
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 15px;
  text-align: center;
  color: #2196F3;
}

.config-section {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.config-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.config-section h3 {
  color: #FFD700;
  margin-bottom: 15px;
  font-size: 16px;
}

.checkbox-group {
  margin-bottom: 10px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e0e0e0;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #FFD700;
}

/* Responsividade */
@media (max-width: 768px) {
  .ouro-cards-container {
    grid-template-columns: 1fr;
  }
  
  .ouro-actions {
    flex-direction: column;
  }
  
  .ouro-actions button {
    width: 100%;
  }
  
  .ouro-config-rapida {
    flex-direction: column;
    align-items: stretch;
  }
  
  .config-item input {
    width: 100%;
  }
  
  .movimentacoes-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .movimentacoes-actions {
    flex-direction: column;
  }
  
  .search-input-small {
    width: 100%;
  }
  
  .ouro-table {
    font-size: 10px;
  }
  
  .ouro-table th,
  .ouro-table td {
    padding: 6px 4px;
  }
}


/* ==================== ESTILOS DA FOLHEAÇÃO ==================== */

.folheacao-card {
  background: linear-gradient(135deg, #FF8C00 0%, #FFD700 100%);
  border: 2px solid #FF8C00;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.3);
}

.folheacao-card h3 {
  color: #fff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  font-size: 1.2em;
  margin-bottom: 15px;
}

.folheacao-card .tank-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 15px;
}

.folheacao-card.error {
  background: linear-gradient(135deg, #e74c3c 0%, #ec7063 100%);
}

.error-message {
  color: white;
  text-align: center;
  padding: 20px;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Estilos para o modal de processamento */
.estoque-info {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #dee2e6;
}

.info-card {
  text-align: center;
  font-size: 1.1em;
}

.form-group-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 15px;
}

.calculo-preview {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #dee2e6;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  margin: 15px 0;
  font-weight: bold;
  font-size: 1.1em;
}

.calculo-preview span {
  color: #27ae60;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-processar-folheacao {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(39, 174, 96, 0.3);
}

.btn-processar-folheacao:hover {
  background: linear-gradient(135deg, #229954 0%, #27ae60 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

.btn-configurar-folheacao {
  background: linear-gradient(135deg, #3498db 0%, #5dade2 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

.btn-configurar-folheacao:hover {
  background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.btn-relatorio-folheacao {
  background: linear-gradient(135deg, #9b59b6 0%, #bb8fce 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(155, 89, 182, 0.3);
}

.btn-relatorio-folheacao:hover {
  background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4);
}

/* Modal específico para relatórios da folheação */
.modal-large .modal-content {
  max-width: 90%;
  width: 1000px;
}

.relatorio-sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.relatorio-section {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #dee2e6;
}

.relatorio-section h3 {
  color: #FF8C00;
  margin-bottom: 15px;
  border-bottom: 2px solid #FF8C00;
  padding-bottom: 5px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.info-item {
  background: white;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.info-item strong {
  color: #333;
  display: block;
  margin-bottom: 5px;
}

.movimentacoes-table {
  overflow-x: auto;
}

.movimentacoes-table table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.movimentacoes-table th {
  background: linear-gradient(135deg, #FF8C00 0%, #FFD700 100%);
  color: white;
  padding: 12px;
  text-align: left;
  font-weight: bold;
}

.movimentacoes-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e9ecef;
}

.movimentacoes-table tr:hover {
  background: #f8f9fa;
}

/* Responsividade para folheação */
@media (max-width: 768px) {
  .form-group-inline {
    grid-template-columns: 1fr;
  }
  
  .folheacao-card .tank-actions {
    grid-template-columns: 1fr;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-large .modal-content {
    width: 95%;
    max-width: none;
  }
  
  .movimentacoes-table {
    font-size: 0.9em;
  }
  
  .movimentacoes-table th,
  .movimentacoes-table td {
    padding: 8px 6px;
  }
}



/* ===== Seleção múltipla de tanques ===== */
.modo-selecao-multipla .tank-card.selecionavel {
  cursor: pointer;
  position: relative;
  outline: 2px dashed rgba(255,255,255,0.12);
}
.tank-card .checkbox-selecao {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(0,0,0,0.45);
  padding: 6px;
  border-radius: 10px;
}
.tank-card.selecionado {
  box-shadow: 0 0 0 3px #f1c40f, 0 8px 24px rgba(0,0,0,0.6);
  transform: translateY(-2px);
}
#barra-selecao-multipla {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  border-top: 2px solid #f1c40f;
  padding: 12px 18px;
  z-index: 1000;
}
#barra-selecao-multipla .barra-conteudo {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lista-selecionados {
  margin: 8px 0 0;
  max-height: 120px;
  overflow: auto;
  padding-left: 18px;
}

/* ==================== ESTILOS DOS MODAIS DE OURO ==================== */

/* Modal Nova Entrada de Ouro */
#modalNovaEntradaOuro .modal-content {
  max-width: 500px;
  width: 90%;
}

#modalNovaEntradaOuro h2 {
  color: #f39c12;
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.5em;
}

/* Modal Registrar Saída de Ouro */
#modalRegistrarSaidaOuro .modal-content {
  max-width: 500px;
  width: 90%;
}

#modalRegistrarSaidaOuro h2 {
  color: #e74c3c;
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.5em;
}

/* Estilo para informação do estoque atual no modal de saída */
.estoque-info {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #dee2e6;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.1em;
}

.estoque-info strong {
  color: #2c3e50;
}

.estoque-info span {
  color: #27ae60;
  font-weight: bold;
}

/* Botões específicos para ouro */
.btn-ouro-entrada {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(39, 174, 96, 0.3);
  font-size: 1em;
  min-width: 150px;
}

.btn-ouro-entrada:hover {
  background: linear-gradient(135deg, #229954 0%, #27ae60 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}

.btn-ouro-saida {
  background: linear-gradient(135deg, #e74c3c 0%, #ec7063 100%);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
  font-size: 1em;
  min-width: 150px;
}

.btn-ouro-saida:hover {
  background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

/* Container das ações de ouro */
.ouro-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin: 20px 0;
  flex-wrap: wrap;
}

/* Botões de confirmação nos modais */
.btn-success {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.btn-success:hover {
  background: linear-gradient(135deg, #229954 0%, #27ae60 100%);
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(39, 174, 96, 0.4);
}

.btn-danger {
  background: linear-gradient(135deg, #e74c3c 0%, #ec7063 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.btn-danger:hover {
  background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
  transform: translateY(-1px);
  box-shadow: 0 3px 12px rgba(231, 76, 60, 0.4);
}

/* Estilos para campos de formulário nos modais de ouro */
#modalNovaEntradaOuro .form-group input,
#modalNovaEntradaOuro .form-group textarea,
#modalRegistrarSaidaOuro .form-group input,
#modalRegistrarSaidaOuro .form-group select,
#modalRegistrarSaidaOuro .form-group textarea {
  width: 100%;
  padding: 10px;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

#modalNovaEntradaOuro .form-group input:focus,
#modalNovaEntradaOuro .form-group textarea:focus,
#modalRegistrarSaidaOuro .form-group input:focus,
#modalRegistrarSaidaOuro .form-group select:focus,
#modalRegistrarSaidaOuro .form-group textarea:focus {
  border-color: #f39c12;
  outline: none;
  box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
}

/* Texto pequeno de ajuda */
#modalNovaEntradaOuro small {
  display: block;
  margin-top: 5px;
  color: #6c757d;
  font-size: 12px;
}

/* Toast notifications */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 20px;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  z-index: 10000;
  max-width: 300px;
  word-wrap: break-word;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast-success {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.toast-error {
  background: linear-gradient(135deg, #e74c3c 0%, #ec7063 100%);
}

.toast-warning {
  background: linear-gradient(135deg, #f39c12 0%, #f7dc6f 100%);
}

.toast-info {
  background: linear-gradient(135deg, #3498db 0%, #5dade2 100%);
}

/* Responsividade para modais de ouro */
@media (max-width: 768px) {
  .ouro-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-ouro-entrada,
  .btn-ouro-saida {
    width: 100%;
    max-width: 300px;
  }
  
  #modalNovaEntradaOuro .modal-content,
  #modalRegistrarSaidaOuro .modal-content {
    width: 95%;
    max-width: none;
    margin: 5% auto;
  }
  
  .toast {
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

/* Animações para os modais de ouro */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

#modalNovaEntradaOuro.modal[style*="block"] .modal-content,
#modalRegistrarSaidaOuro.modal[style*="block"] .modal-content {
  animation: modalFadeIn 0.3s ease-out;
}

/* Melhorias visuais para os cards de ouro */
.ouro-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.ouro-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.ouro-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.ouro-card-header i {
  font-size: 1.5em;
  color: #f39c12;
}

.ouro-card-header h3 {
  margin: 0;
  color: #2c3e50;
  font-size: 1.1em;
}

.ouro-card-value {
  font-size: 2em;
  font-weight: bold;
  color: #2c3e50;
  margin-bottom: 10px;
}

.ouro-card-info {
  color: #6c757d;
  font-size: 0.9em;
}

.ouro-unit {
  font-size: 0.7em;
  color: #6c757d;
  margin-left: 5px;
}

/* Status indicator */
.status-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
}

.status-text {
  font-weight: bold;
}



/* Estilos para o modal de importação de Excel */
.import-instructions {
  background: rgba(52, 152, 219, 0.1);
  border-left: 4px solid #3498db;
  padding: 15px;
  margin: 15px 0;
  border-radius: 5px;
}

.import-instructions p {
  margin: 10px 0;
  color: #ecf0f1;
}

.import-instructions ul {
  margin: 10px 0 10px 20px;
  color: #bdc3c7;
}

.import-instructions li {
  margin: 5px 0;
}

.import-instructions strong {
  color: #3498db;
}

.import-instructions em {
  color: #95a5a6;
  font-size: 0.9em;
}

#resultadoImportacao {
  background: rgba(0, 0, 0, 0.3);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#resultadoImportacao h3 {
  color: #f1c40f;
  margin-bottom: 15px;
}

#mensagemImportacao {
  max-height: 400px;
  overflow-y: auto;
  color: #ecf0f1;
}
