/* Estilos para Módulos Customizados */
.module-builder {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.field-builder {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.field-builder:hover {
    border-color: #FF6200;
    box-shadow: 0 2px 8px rgba(255, 98, 0, 0.1);
}

.preview-container {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    min-height: 400px;
}

.field-preview {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.drag-handle {
    cursor: move;
    color: #6c757d;
    padding: 5px;
}

.drag-handle:hover {
    color: #FF6200;
}

.module-card-custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.module-card-custom:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Dark Theme para Módulos Customizados */
body.dark-theme .module-builder {
    background: #2d2d2d;
    border-color: #555;
}

body.dark-theme .field-builder {
    background: #3a3a3a;
    border-color: #555;
    color: #e8e8e8;
}

body.dark-theme .preview-container {
    background: #2d2d2d;
    border-color: #555;
    color: #e8e8e8;
}

body.dark-theme .field-preview {
    background: #3a3a3a;
    border-color: #555;
}

body.dark-theme .module-card-custom {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}
/***********************************************************************************************************************************/

/* Estilos para Página de Dados dos Módulos */
.data-form-container {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.record-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.record-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #FF6200;
}

.field-value {
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    font-family: monospace;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.record-details {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

/* Dark Theme para Página de Dados */
body.dark-theme .data-form-container {
    background: #2d2d2d;
    border-color: #555;
}

body.dark-theme .record-card {
    background: #3a3a3a;
    border-color: #555;
    color: #e8e8e8;
}

body.dark-theme .field-value {
    background: #2d2d2d;
    color: #e8e8e8;
}

body.dark-theme .record-details {
    border-top-color: #555;
}

.sidebar .nav-link.active {
    background-color: #FF6200 !important; /* Fundo alaranjado para o módulo selecionado */
    color: #fff !important; /* Texto branco para contraste */
}