/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : 21/10/2020, 09:03:47
    Author     : Mega Design
*/


/*MENSAGENS DO SISTEM*/
.trigger {
    padding: 15px 15px 15px 40px;
    background: #eee;
    font-size: 14px;
    margin-bottom: 15px;
}

.trigger a {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    padding: 5px 15px;
    background: #069;
    color: #fff;
}

.trigger a:hover {
    background: #09f;
    color: #fff;
}

.accept {
    background: #71ca73 url(../icons/accept.png) center left 10px no-repeat
}

.infor {
    background: #c8dbfd url(../icons/infor.png) center left 10px no-repeat
}

.alert {
    background: #faf7b7 url(../icons/alert.png) center left 10px no-repeat
}

.error {
    background: #ffafaf url(../icons/error.png) center left 10px no-repeat
}

.fontblack {
    color: #000000;
}

.box {
    background-color: #FFFFFF;
    padding: 20px;
    width: 92%;
    border: 1px solid #dddbda;
    border-radius: 5px;
}

.btn-primary {
    background-color: #10948b !important;
    color: #ffffff;
}

.textright {
    text-align: right;
}

.form {
    display: inline-block !important;
}

.fweight {
    font-weight: bold;
}

/**
 * FORMULÁRIO DE UNIDADES - ESTILOS DE SEGURANÇA E ACESSIBILIDADE
 * Sistema Islab - Admin Panel
 * Versão: 2024
 */

/* ====================================
   FORM SECURITY & VALIDATION STYLES
   ==================================== */

/* Container principal do formulário */
#unidade-create-form {
    position: relative;
}

/* Estilos para campos obrigatórios */
.form-label .text-danger {
    font-weight: 600;
}

/* Estados de validação melhorados */
.form-control:invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control:valid {
    border-color: #28a745;
}

.form-control:focus:invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control:focus:valid {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Feedback de validação */
.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
    font-weight: 500;
}

/* Form text (help text) melhorado */
.form-text {
    color: #6c757d;
    font-size: 0.8rem;
    line-height: 1.4;
    margin-top: 0.25rem;
}

/* ====================================
   FILE INPUT SECURITY STYLES
   ==================================== */

/* Inputs de arquivo simplificados */
input[type="file"] {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.5rem;
    transition: border-color 0.2s ease;
}

input[type="file"]:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    outline: none;
}

/* Estados de validação mais discretos */
input[type="file"][data-valid="true"] {
    border-color: #28a745;
}

input[type="file"][data-valid="false"] {
    border-color: #dc3545;
}

/* ====================================
   CHECKBOX & RADIO IMPROVEMENTS
   ==================================== */

/* Checkboxes com melhor acessibilidade */
.form-check {
    padding: 0.75rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.form-check:hover {
    background-color: rgba(13, 110, 253, 0.05);
    border-radius: 0.25rem;
}

.form-check-input:checked + .form-check-label {
    color: #0d6efd;
    font-weight: 600;
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* ====================================
   LOADING & SUBMIT STATES
   ==================================== */

/* Estados do botão de submit */
#submit-btn {
    min-width: 200px;
    transition: all 0.3s ease;
    position: relative;
}

#submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#submit-btn.loading {
    color: transparent;
}

#submit-btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    border-color: #ffffff transparent #ffffff transparent;
    animation: btn-loading 1.2s linear infinite;
}

@keyframes btn-loading {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ====================================
   MASK INPUT STYLES
   ==================================== */

/* Inputs com máscara */
input[data-mask] {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
}

input[data-mask="cep"] {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
}

input[data-mask="telefone"] {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
}

/* ====================================
   PROGRESS & STATUS INDICATORS (HIDDEN BY DEFAULT)
   ==================================== */

/* Indicador de progresso do formulário - apenas funcional, sem visual */
.form-progress {
    display: none;
}

.form-progress-bar {
    display: none;
}

/* Status de seções - removido para não poluir */
.section-status {
    display: none;
}

/* ====================================
   RESPONSIVE IMPROVEMENTS
   ==================================== */

/* Mobile-first improvements */
@media (max-width: 576px) {
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-label {
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    .form-control {
        font-size: 16px; /* Previne zoom no iOS */
    }
    
    .form-check {
        padding: 0.75rem;
    }
    
    #submit-btn {
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
    }
}

/* Tablet adjustments */
@media (min-width: 577px) and (max-width: 991px) {
    .form-group {
        margin-bottom: 1.25rem;
    }
}

/* ====================================
   ACCESSIBILITY IMPROVEMENTS
   ==================================== */

/* High contrast mode support */
@media (prefers-contrast: high) {
    .form-control {
        border-width: 2px;
    }
    
    .form-check {
        border-width: 2px;
    }
    
    .btn {
        border-width: 2px;
        font-weight: 700;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .form-check:hover {
        transform: none;
    }
}

/* Focus improvements for keyboard navigation */
.form-control:focus,
.form-check-input:focus,
.btn:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Skip link for screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only:focus {
    position: static;
    width: auto;
    height: auto;
    padding: 0.25rem 0.5rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background-color: #0d6efd;
    color: white;
    text-decoration: none;
    border-radius: 0.25rem;
}

/* ====================================
   PRINT STYLES
   ==================================== */

@media print {
    .btn,
    .form-text,
    .invalid-feedback {
        display: none;
    }
    
    .form-control {
        border: 1px solid #000;
        background: transparent;
    }
    
    .form-check-input:checked::before {
        content: "✓";
        color: #000;
    }
}

