/* Abas */
.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  background: rgba(15, 23, 42, 0.6);
  padding: 6px;
  border-radius: 12px;
}

.tab-btn {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Área de Upload */
.upload-area {
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: rgba(30, 41, 59, 0.3);
}

.upload-area:hover, .upload-area.dragover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
}

.upload-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 10px;
}

.upload-content p { color: #cbd5e1; font-size: 16px; margin-bottom: 4px; }
.upload-hint { color: #64748b; font-size: 13px; }

/* Informações do Arquivo */
.file-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#file-name {
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Área de Resultado de Texto */
textarea#pdf-texto-resultado {
  width: 100%;
  height: 300px;
  padding: 20px;
  background: rgba(15, 23, 42, 0.6);
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
}

/* Grid de Imagens */
.imagens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.imagem-item {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.imagem-item img {
  width: 100%;
  height: auto;
  display: block;
}

.imagem-item a {
  text-align: center;
  padding: 10px;
  color: #60a5fa;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}
.imagem-item a:hover { background: rgba(255, 255, 255, 0.05); }