:root {
    --primary: #673DE6;
    --primary-hover: #673DE6;
    --error: #dc3545;
    --error-bg: #fff8f8;
    --success: #28a745;
    --text: #222;
    --text-light: #333;
    --text-radio: #495057;
    --text-muted: #777;
    --text-violet: #673DE6;
    --border: #e9ecef;
    --border-light: #eee;
    --border-violet: #adc0ff;
    --border-purple: #673DE6;
    --bg-light: #f8f9fa;
    --bg-hover: #D5DFFF;
    --bg-violet: #D5DFFF;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.1);
    --transition: all 0.2s ease;
  }

.girabriefing-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.form-section {
    margin-bottom: 40px;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-section h2 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

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

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

.campo-obrigatorio:after {
    content: '*';
    color: #dc3545;
    margin-left: 4px;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.form-control.error {
    border-color: #dc3545;
    background-color: #fff8f8;
}

.form-control.error:focus {
    box-shadow: 0 0 0 2px rgba(220,53,69,0.25);
}

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

/* Estilo base para textos de formulário */
.form-text {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875em; /* 14px base 16px */
    line-height: 1.4;
  }
  
  /* Versão muted para textos secundários */
  .text-muted {
    color: #6c757d !important; /* Cor cinza padrão Bootstrap */
    opacity: 0.9;
  }
  
  /* Estilo específico para textos de ajuda em formulários */
  .form-group .form-text.text-muted {
    font-style: normal;
    transition: color 0.2s ease;
  }
  
  /* Estados interativos */
  .form-group:focus-within .text-muted {
    color: #495057 !important;
  }
  
  /* Responsividade */
  @media (max-width: 768px) {
    .form-text {
      font-size: 0.8125em; /* 13px em telas menores */
    }
  }
  
  /* Acessibilidade - melhor contraste */
  @media (prefers-contrast: more) {
    .text-muted {
      color: #5a6268 !important;
      opacity: 1;
    }
  }

.form-control-file {
    display: block;
    margin-bottom: 10px;
}

.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.image-preview {
    width: 100px;
    height: 100px;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-item {
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 5px;
}

.file-name {
    font-weight: 600;
}

.file-size {
    color: #666;
    margin-left: 5px;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
}

.button-primary {
    background: var(--border-purple);
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.button-primary:hover {
    background: var(--primary-hover);
}

.button-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Mensagens de erro */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

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

@media (max-width: 768px) {
    .girabriefing-container {
        padding: 10px;
        margin: 10px;
    }

    .form-section {
        padding: 10px;
        margin-bottom: 20px;
    }

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

    .form-control {
        padding: 5px 10px;
    }

    .image-preview-container {
        gap: 5px;
        margin: 5px 0;
    }

    .image-preview {
        width: 50px;
        height: 50px;
    }

    .file-item {
        padding: 3px 5px;
        font-size: 10px;
    }

    .form-actions {
        margin-top: 20px;
    }

    .button-primary {
        padding: 5px 10px;
        font-size: 14px;
    }
}
