body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f6f8;
  margin: 0;
  padding: 20px;
  color: #2e7d32;
}

form {
  max-width: 1000px;
  margin: auto;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

h2 {
  display: flex;
  align-items: center;
  font-size: 1.4rem;
  margin-top: 40px;
  color: #1b5e20;
  border-bottom: 2px solid #e8f5e9;
  padding-bottom: 8px;
}

.step-number {
  background-color: #43a047;
  color: white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: 12px;
  font-size: 1rem;
  flex-shrink: 0;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 15px;
}

.col-33 { flex: 1 1 30%; min-width: 200px; }
.col-50 { flex: 1 1 48%; min-width: 260px; }
.col-100 { flex: 1 1 100%; }

label {
  display: block;
  font-weight: 600;
  color: #33691e;
  margin-bottom: 6px;
}

input, select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #c8e6c9;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
  background-color: #fcfcfc;
}

input:focus, select:focus, textarea:focus {
  border-color: #66bb6a;
  outline: none;
  box-shadow: 0 0 3px rgba(102, 187, 106, 0.5);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

input[type="checkbox"] {
  width: auto;
  margin-right: 10px;
}

input[type="file"] {
  width: 100%;
  padding: 12px;
  border: 2px dashed #43a047;
  border-radius: 8px;
  background-color: #f8f9fa;
  cursor: pointer;
  transition: all 0.3s ease;
}

input[type="file"]:hover {
  border-color: #66bb6a;
  background-color: #f0f8f0;
}

input[type="file"]:focus {
  outline: none;
  border-color: #66bb6a;
  box-shadow: 0 0 3px rgba(102, 187, 106, 0.5);
}

.file-upload-info {
  margin-top: 10px;
  padding: 10px;
  background-color: #e8f5e9;
  border-radius: 6px;
  border-left: 4px solid #43a047;
}

.file-list {
  margin-top: 10px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  margin-bottom: 5px;
}

.file-name {
  font-size: 0.9rem;
  color: #495057;
}

.file-size {
  font-size: 0.8rem;
  color: #6c757d;
}

.remove-file {
  background: none;
  border: none;
  color: #dc3545;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0;
  margin-left: 10px;
}

.remove-file:hover {
  color: #c82333;
}

.file-upload-section {
  margin-top: 20px;
}

/* Estilos para tela de acesso negado */
.access-denied {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #f4f6f8, #e8f5e9);
  padding: 20px;
}

.access-denied-content {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  text-align: center;
  max-width: 500px;
  width: 100%;
}

.access-denied-content h1 {
  color: #d32f2f;
  margin-bottom: 20px;
  font-size: 2rem;
}

.access-denied-content p {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.6;
}

.contact-info {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-top: 30px;
  border-left: 4px solid #43a047;
}

.contact-info h3 {
  color: #1b5e20;
  margin-bottom: 15px;
}

.contact-info p {
  margin-bottom: 8px;
  color: #495057;
}

.contact-info strong {
  color: #1b5e20;
}

button {
  margin-top: 30px;
  background-color: #43a047;
  color: white;
  border: none;
  padding: 14px 24px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

button:hover {
  background-color: #388e3c;
}

button:disabled {
  background-color: #9e9e9e !important;
  cursor: not-allowed !important;
  opacity: 0.7 !important;
}

button:disabled:hover {
  background-color: #9e9e9e !important;
}

hr {
  margin: 40px 0;
  border: none;
  border-top: 1px solid #ddd;
}

.info-icon {
  display: inline-block;
  margin-left: 6px;
  cursor: help;
  color: #43a047;
  font-size: 18px;
  transition: all 0.2s;
}

.info-icon:hover {
  color: #1b5e20;
}

.bristol-toggle {
  cursor: pointer !important;
  transition: all 0.2s;
  padding: 4px;
  border-radius: 50%;
  display: inline-block;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

.bristol-toggle:hover {
  background-color: #e8f5e8;
  transform: scale(1.1);
  color: #2e7d32 !important;
}

.bristol-toggle:active {
  transform: scale(0.95);
  background-color: #c8e6c9;
}

.bristol-toggle:focus {
  outline: 2px solid #4caf50;
  outline-offset: 2px;
}


/* Estilos para escala de Bristol */

.bristol-scale {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 15px;
  margin: 10px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bristol-scale h4 {
  margin: 0 0 10px 0;
  color: #1b5e20;
  font-size: 14px;
}

.bristol-scale ul {
  margin: 0;
  padding-left: 20px;
}

.bristol-scale li {
  margin-bottom: 5px;
  font-size: 13px;
  line-height: 1.4;
}

/* Loading overlay global */
#loading-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0,0,0,0.9) !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  font-size: 18px !important;
  color: white !important;
  text-align: center !important;
  font-family: Arial, sans-serif !important;
}

/* Responsivo para mobile */
@media (max-width: 768px) {
  .bristol-toggle {
    padding: 8px;
    font-size: 20px;
    min-width: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}


.bristol-scale {
  margin: 15px 0;
  padding: 20px;
}
  
  .bristol-scale h4 {
    font-size: 16px;
    margin-bottom: 15px;
  }
  
  .bristol-scale li {
    font-size: 14px;
    margin-bottom: 8px;
  }
  
  /* Loading overlay para mobile */
  #loading-overlay {
    font-size: 20px !important;
  }
}

.header-nutricionista {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  background: linear-gradient(135deg, #43a047, #66bb6a);
  color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(67, 160, 71, 0.3);
}

.header-nutricionista h1 {
  margin: 0 0 15px 0;
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.nutricionista-info {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.nutricionista-info p {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
}

.nutricionista-info strong {
  color: #e8f5e9;
}

.progress-container {
  width: 100%;
  background-color: #e0e0e0;
  border-radius: 10px;
  margin-bottom: 30px;
  overflow: hidden;
}

.progress-bar {
  height: 8px;
  background-color: #43a047;
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 10px;
}

.progress-text {
  text-align: center;
  margin-top: 10px;
  font-weight: 600;
  color: #43a047;
}

.section {
  display: none;
}

.section.active {
  display: block;
}

.navigation-buttons {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-top: 30px;
}

.nav-btn {
  background-color: #66bb6a;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.nav-btn:hover {
  background-color: #4caf50;
}

.nav-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  form {
    padding: 20px;
  }
  h2 {
    font-size: 1.2rem;
  }
  button {
    font-size: 15px;
  }
  
  .header-nutricionista h1 {
    font-size: 1.6rem;
  }
  
  .nutricionista-info {
    flex-direction: column;
    gap: 10px;
  }
  
  .nutricionista-info p {
    font-size: 1rem;
  }
}
