* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #444;
    color: #333;
    line-height: 1.6;
}
input, select, textarea{
    background-color: #ddd;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 0;
    margin-bottom: 30px;
    border-radius: 10px;
    text-align: center;
}
.header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}
.header p {
    font-size: 1.1em;
    opacity: 0.9;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.card {
    background: #777;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
    color: #f2f2f2;
}
.card h3 {
    color: #f2f2f2;
    margin-bottom: 15px;
    font-size: 1.3em;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}
.card-log{
    width: 760px;
}
.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
}
.status-item:last-child {
    border-bottom: none;
}
.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: bold;
}
.status-success {
    background-color: #d4edda;
    color: #155724;
}
.status-error {
    background-color: #f8d7da;
    color: #721c24;
}
.status-warning {
    background-color: #fff3cd;
    color: #856404;
}
.btn {
    /*background: linear-gradient(135deg, #3498db, #2980b9);*/
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    margin: 5px;
    transition: all 0.3s ease;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}
.btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}
.btn-success {
    /*background: linear-gradient(135deg, #27ae60, #229954);*/
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.logs-container {
    background: #2c3e50;
    color: #ecf0f1;
    border-radius: 10px;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    max-height: 400px;
    overflow-y: auto;
}
.log-line {
    margin-bottom: 5px;
    padding: 2px 0;
}
.log-info {
    color: #3498db;
}
.log-warning {
    color: #f39c12;
}

.log-error {
    color: #e74c3c;
}
.loading {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
}
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}
        
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    border-left: 4px solid;
}
.alert-success {
    background-color: #d4edda;
    border-color: #27ae60;
    color: #155724;
}
.alert-error {
    background-color: #f8d7da;
    border-color: #e74c3c;
    color: #721c24;
}

.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color:#f2f2f2;
}
.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
}
.hidden {
    display: none;
}

/* Estilos para o novo formulário */
.form-section {
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}
.form-section h4 {
    font-size: 1.1em;
    color: #f2f2f2;
    margin-bottom: 15px;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 10px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}
.form-group.full-width {
    grid-column: 1 / -1;
}
.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.9em;
}
.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
}
.form-group input[type="file"] {
    padding: 5px;
}
.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

/* Estilos para as Abas */
.nav-tabs {
    display: flex;
    border-bottom: 2px solid #e1e5e9;
    margin-bottom: 20px;
}
.nav-link {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.1em;
    color: #7f8c8d;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
.nav-link.active {
    /*color: #3498db;*/
    color: #f2f2f2;
    /*border-bottom-color: #3498db;*/
    border-bottom-color: #764ba2;
}
.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
}
        
/* Estilos para Upload de Recursos */
.asset-previews-container { /* Seletor renomeado */
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    min-height: 120px; /* Garante um espaço mínimo */
    padding: 5px;
    border: 1px dashed #ccc;
    border-radius: 4px;
}
.asset-preview {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100px;  /* Tamanho ajustado */
    height: 100px; /* Tamanho ajustado */
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}
.asset-preview img {
    max-width: 90px; /* Ajustado para caber no novo container */
    max-height: 90px; /* Ajustado para caber no novo container */
    object-fit: cover;
}
.asset-preview span {
    display: none; /* Esconde o nome do arquivo */
}

/* Estilos para Ações em Massa */
.bulk-actions {
    background-color: #f5f7fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}
.bulk-actions .form-row {
    align-items: flex-end;
}
.hidden {
    display: none;
}

/* Estilos para os valores das variações */
.variation-values-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    background-color: #888;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    margin-top: 10px;
}
.variation-value-label {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #999;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #bdc3c7;
    cursor: pointer;
}

/* Estilos para os Grupos de Variação */
.sku-group-card {
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    margin-top: 20px;
    /*background-color: #f8f9fa;*/
}
.sku-group-card h4 {
    /*background-color: #3498db;*/
    color: white;
    padding: 15px;
    border-radius: 8px 8px 0 0;
    margin: 0;
}
.sku-group-content {
    padding: 15px;
}
.sku-table-mini {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
.sku-table-mini th, .sku-table-mini td {
    border: 1px solid #e1e5e9;
    padding: 8px;
    text-align: left;
}
.sku-table-mini th {
    background-color: #e9ecef;
}
.sku-table-mini input {
    width: 100%;
    padding: 8px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
}

/* --- Estilos para o Modal de Imagens (Adicionado para a nova funcionalidade) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none; /* Começa escondido e o JS o torna visível */
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #444;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    color: #f2f2f2;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25em;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8em;
    cursor: pointer;
    color: #6c757d;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    background-color: #999;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.image-item {
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.2s;
    overflow: hidden;
}

.image-item:hover {
    border-color: #007bff;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Estilos para o botão "Buscar" (A PARTE MAIS IMPORTANTE) --- */
.input-with-button > div {
    display: flex; /* Isso alinha o input e o botão lado a lado */
    align-items: center;
}

.input-with-button input {
    flex-grow: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-browse {
    padding: 10px 15px;
    border: 1px solid #ced4da;
    background-color: #e9ecef;
    cursor: pointer;
    border-left: none;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    white-space: nowrap; /* Impede que o texto "Buscar" quebre em duas linhas */
}

.btn-browse:hover {
    background-color: #dee2e6;
}

.image-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 2px solid #eee;
    padding: 5px;
    border-radius: 4px;
}

.image-item:hover {
    border-color: #007bff;
}

.image-item-caption {
    font-size: 12px;
    margin-top: 5px;
    word-break: break-all;
    color: #555;
    height: 3.5em; /* Garante altura para até 3 linhas de texto */
    overflow: hidden;
}

.asset-preview {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    background-color: #f9f9f9;
    font-size: 0.9em;
    text-align: center;
}

/* --- Estilos Elegantes para o Botão de Deletar no Modal --- */
.image-item {
    position: relative; /* Necessário para posicionar o botão */
    overflow: hidden; /* Garante que o botão não vaze para fora */
}

.delete-asset-btn {
    /* Posicionamento */
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;

    /* Aparência */
    width: 32px;
    height: 32px;
    background-color: rgba(10, 10, 10, 0.6); /* Fundo escuro translúcido */
    color: white;
    border: none;
    border-radius: 50%; /* Totalmente circular */
    
    /* Ícone SVG */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Interação */
    cursor: pointer;
    opacity: 0; /* Começa invisível */
    transform: scale(0.8); /* Começa um pouco menor */
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out, background-color 0.2s;
}

/* Efeito ao passar o mouse sobre a imagem inteira */
.image-item:hover .delete-asset-btn {
    opacity: 1; /* Fica visível */
    transform: scale(1); /* Volta ao tamanho normal */
}

/* Efeito ao passar o mouse sobre o próprio botão */
.delete-asset-btn:hover {
    background-color: #e74c3c; /* Vermelho vivo */
    transform: scale(1.1); /* Aumenta um pouco para dar feedback */
}

/* Garante que o ícone SVG dentro do botão herde a cor branca */
.delete-asset-btn svg {
    stroke: currentColor;
}

/* --- ESTILOS PARA AS MELHORIAS SOLICITADAS --- */

/* 1. Estilo para a pré-visualização com imagem e botão de remover */
.asset-preview {
    position: relative; /* Necessário para o botão de remover */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}
.asset-preview img {
    max-width: 100px;
    max-height: 80px;
    object-fit: cover;
    margin-bottom: 5px;
}
.asset-preview span {
    font-size: 11px;
    word-break: break-all;
    text-align: center;
    line-height: 1.2;
    max-height: 2.4em;
    overflow: hidden;
}
.remove-asset-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background-color: #e74c3c;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* 2. Estilos para seleção múltipla no modal */
.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #e9ecef;
    text-align: right;
}
.image-item.selected {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.4);
}

/* --- ESTILOS PARA O NOVO EDITOR DE VARIAÇÕES --- */
.variation-editor {
    display: grid;
    grid-template-columns: 250px 1fr; /* Coluna fixa à esquerda, flexível à direita */
    gap: 25px;
    align-items: flex-start;
    /*background-color: #f8f9fa;*/
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}
.variation-selector-panel {
    padding-right: 25px;
    border-right: 1px solid #e9ecef;
}
#selected-variations-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    min-height: 45px; /* Espaço mínimo mesmo quando vazio */
}
.attribute-tag {
    display: inline-flex;
    align-items: center;
    /*background-color: #fff;*/
    border: 1px solid #ced4da;
    border-radius: 20px;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}
.attribute-tag:hover {
    border-color: #80bdff;
}
.attribute-tag.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);;
    color: white;
    border-color: #0056b3;
}
.remove-attribute-btn {
    margin-left: 10px;
    background: none;
    border: none;
    color: #6c757d;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}
.attribute-tag.active .remove-attribute-btn {
    color: white;
    opacity: 0.7;
}
.attribute-tag.active .remove-attribute-btn:hover {
    opacity: 1;
}
#variation-values-display .variation-values-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

/* --- ESTILOS PARA O LAYOUT COMPACTO DOS GRUPOS DE SKU --- */

/* Novo container de grid para os campos de dados compartilhados */
.compact-form-grid {
    display: grid;
    /* Cria um grid responsivo que tenta encaixar colunas de no mínimo 150px */
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px; /* Espaçamento entre os campos */
}

/* Reduz o espaçamento inferior de cada grupo de formulário dentro do grid compacto */
.compact-form-grid .form-group {
    margin-bottom: 0;
}

/* Garante que os selects de design/mockup não fiquem muito largos */
.compact-form-grid .form-group select {
    width: 100%;
}

/* Reduz o tamanho do campo de input na tabela de SKUs */
.sku-table-mini input.dimona-sku-input {
    max-width: 200px; /* Impede que o campo se estique demais */
    padding: 6px 8px;
    font-size: 0.9em;
}

/* --- ESTILOS PARA O GRID DE SKUS ESPECÍFICOS --- */

/* Remove a tabela e suas bordas */
.sku-table-mini {
    border-collapse: collapse;
    width: 100%;
    display: none; /* Escondemos a tabela antiga, pois será substituída por divs */
}

/* O novo container que usará CSS Grid */
.sku-grid-container {
    display: grid;
    /* Cria 3 colunas de largura igual, com um mínimo de 180px */
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px; /* Espaçamento entre os itens */
}

/* Cada item individual no grid */
.sku-grid-item {
    display: flex;
    flex-direction: column;
}

.sku-grid-item label {
    font-weight: 500;
    font-size: 0.9em;
    margin-bottom: 5px;
    color: #f2f2f2;
}

.sku-grid-item input {
    width: 100%;
    padding: 8px;
    font-size: 0.9em;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

/* --- ESTILOS PARA MAPEAMENTO DE SKU E CAMPO DESABILITADO --- */
.sku-grid-item input.mapped-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.sku-grid-item input.mapped-error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Estilo para o campo quando mapeado com sucesso E desabilitado */
.sku-grid-item input.mapped-success:disabled {
    color: #155724; /* Texto mais escuro para melhor legibilidade */
    cursor: not-allowed; /* Cursor indica que não é clicável */
    opacity: 0.8; /* Leve transparência para indicar estado inativo */
}

/* --- ESTILOS PARA IMAGEM DE VITRINE --- */
.showcase-image-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    /*background-color: #fff;*/
}
/* Classe para esconder labels visualmente, mas mantê-las para acessibilidade */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* --- ESTILOS PARA O MODAL DE FEEDBACK --- */
.feedback-modal-content {
    max-width: 450px;
    text-align: center;
    padding: 40px 30px;
    animation: fadeInScale 0.3s ease-out;
}

.feedback-modal-body {
    padding: 40px;
    border-radius: 10px;
}

.feedback-title {
    font-size: 1.8em;
    margin: 20px 0 10px;
    color: #2c3e50;
}

.feedback-message {
    font-size: 1.1em;
    color: #555;
    line-height: 1.5;
    min-height: 50px;
}

.feedback-modal-footer {
    padding: 0;
    margin-top: 30px;
    border-top: none;
}

/* --- ÍCONES ANIMADOS --- */
.modal-icon {
    margin: 0 auto;
}

/* Ícone de Loading (Spinner) */
.modal-icon-loading {
    width: 80px;
    height: 80px;
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Ícone de Sucesso (Checkmark) */
.modal-icon-success {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #fff;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #4bb543;
    animation: fillSuccess 0.4s ease-in-out 0.4s forwards, scaleUp 0.3s ease-in-out 0.9s both;
}
.modal-icon-success .checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #4bb543;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.modal-icon-success .checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

/* Ícone de Erro (X) */
.modal-icon-error {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #fff;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #d9534f;
    animation: fillError 0.4s ease-in-out 0.4s forwards, scaleUp 0.3s ease-in-out 0.9s both;
}
.modal-icon-error .error-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #d9534f;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
.modal-icon-error .error-line {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

/* --- ANIMAÇÕES --- */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes scaleUp {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
@keyframes stroke {
    100% { stroke-dashoffset: 0; }
}
@keyframes fillSuccess {
    100% { box-shadow: inset 0px 0px 0px 40px #4bb543; }
}
@keyframes fillError {
    100% { box-shadow: inset 0px 0px 0px 40px #d9534f; }
}

/* Arquivo: public/assets/css/dashboard.css */

/* Adiciona posicionamento relativo para o modal de feedback */
.feedback-modal-content {
    position: relative;
}

/* Remove o botão antigo do rodapé */
.feedback-modal-footer {
    display: none; /* Não precisamos mais do rodapé para este modal */
}

/* Novo botão de fechar estiloso */
#modal-close-feedback {
    /* Posicionamento */
    position: absolute;
    top: 15px;
    right: 15px;
    
    /* Tamanho e Estilo */
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    
    /* Efeitos de Transição */
    transition: background-color 0.2s ease, transform 0.2s ease;
}

/* Efeito de hover */
#modal-close-feedback:hover {
    background-color: #f1f1f1;
    transform: rotate(90deg);
}

/* Desenhando o 'X' com pseudo-elementos */
#modal-close-feedback::before,
#modal-close-feedback::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px; /* Largura da linha */
    height: 2px;  /* Espessura da linha */
    background-color: #888;
}

#modal-close-feedback::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

#modal-close-feedback::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* --- ESTILOS ATUALIZADOS E NOVOS PARA O MODAL --- */

.feedback-modal-content {
    position: relative;
}

/* Botão de fechar estiloso (agora com o seletor de classe .btn-modal-close) */
.btn-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    z-index: 10;
}
.btn-modal-close:hover {
    background-color: #f1f1f1;
    transform: rotate(90deg);
}
.btn-modal-close::before,
.btn-modal-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    background-color: #888;
}
.btn-modal-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
.btn-modal-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

/* Rodapé de confirmação */
#modal-confirmation-footer {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* Botão secundário (Cancelar) */
.btn-secondary {
    background: #6c757d;
    color: white;
}
.btn-secondary:hover {
    background: #5a6268;
}

.login {
    font-family: sans-serif;
    background-color: #444;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; margin: 0;
}

.login-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 100%; max-width: 400px;
    
}

h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #f2f2f2;
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: #555;
}

.button-login {
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.2s;
}

.button-login:hover { background-color: #2980b9; }

.error { color: #e74c3c;
    text-align: center;
    margin-top: 20px;
    background-color: #fdd;
    padding: 10px;
    border-radius: 4px;
}

/* No final de public/assets/css/dashboard.css */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
    width: auto;
    height: 1.2em;
    width: 1.2em;
}
.form-group small {
    display: block;
    margin-top: 5px;
    color: #aaa;
    font-size: 0.85em;
}

/* Estilos para feedback de validação em tempo real */
.validation-feedback {
    font-size: 0.85em;
    margin-top: 5px;
    font-weight: 500;
}

.validation-feedback.valid {
    color: #2ecc71; /* Verde */
}

.validation-feedback.invalid {
    color: #e74c3c; /* Vermelho */
}

/* Estilos para a borda do input */
.form-group input.is-valid {
    border-color: #2ecc71;
    box-shadow: 0 0 0 2px rgba(46, 204, 113, 0.2);
}

.form-group input.is-invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}