.tool-container {
  width: 95%;
  margin: 2rem auto;
  padding: 0 1rem;
}

.tool-header {
  text-align: center;
  margin-bottom: 3rem;
}

.tool-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #03396c;
  margin-bottom: 1rem;
}

.tool-description {
  font-size: 1.1rem;
  color: #495057;
  width: 95%;
  margin: 0 auto;
}

.card {
  background: #f0f9ff;
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0, 119, 182, 0.1);
}

.card h2 {
  color: #03396c;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.tool-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  color: #03396c;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.form-control {
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: #0077b6;
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.color-picker {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.color-picker input[type="color"] {
  width: 60px;
  height: 45px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.color-picker input[type="color"]:hover {
  border-color: #0077b6;
  transform: scale(1.05);
}

.color-picker input[type="text"] {
  flex: 1;
}

.file-upload-wrapper {
  position: relative;
}

.file-input {
  display: none;
}

.file-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #0077b6 0%, #00a8e8 100%);
  color: white;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.file-label:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 119, 182, 0.3);
}

.btn-primary, .btn-secondary, .btn-success {
  padding: 0.64rem 1.6rem;
  border: none;
  border-radius: 10px;
  font-size: 0.704rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.384rem;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, #0077b6 0%, #00a8e8 100%);
  color: white;
  width: 100%;
  justify-content: center;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 119, 182, 0.4);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(40, 167, 69, 0.4);
}

.qrcode-display {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem;
  background: white;
  border-radius: 10px;
}

.download-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.alert {
  padding: 1rem 1.5rem;
  border-radius: 10px;
  margin-top: 1rem;
}

.alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.tool-header {
  text-align: center;
  margin-bottom: 3rem;
}

.tool-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #03396c;
  margin-bottom: 1rem;
}

.tool-description {
  font-size: 1.1rem;
  color: #495057;
  max-width: 95%;
  margin: 0 auto;
}

.card {
  background: #f0f9ff;
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(0, 119, 182, 0.1);
}

.card h2 {
  color: #03396c;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.tool-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  color: #03396c;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.form-control {
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: #0077b6;
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.color-picker {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.color-picker input[type="color"] {
  width: 60px;
  height: 45px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}


/* Padronizar todos os botões do assistente de gráficos */
.sheet-controls, .import-export .btn, .export-buttons .btn, .file-label .btn, .preview-actions .btn, .palette-row .btn, .options .btn, .btn, button {
  font-size: 13px !important; /* 20% menor que 0.64rem */
  padding: 3px 7px !important; /* 20% menor que 0.256/0.64 */
  gap: 5px !important; /* 20% menor que 0.36rem */
  box-sizing: border-box;
}
.sheet-controls {
  display: flex;
  gap: 5px;
  margin-bottom: 5px;
}

.sheet-section h2 {
  font-size: 16px;
  margin-bottom: 5px;
}

.sheet, .sheet th, .sheet td {
  font-size: 15px;
}