/* ========================================
   CUSTOM CSS - Validador de Escala URBI
   ======================================== */

/* Estilos personalizados para o login */
.login-container {
    background: linear-gradient(135deg, #009CDF 0%, #49C0E8 100%);
    min-height: 100vh;
    font-family: 'Arial', sans-serif;
}

.login-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 400px;
    width: 100%;
}

.login-header {
    background: linear-gradient(135deg, #009CDF 0%, #49C0E8 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.login-body {
    padding: 2rem;
}

.btn-azure {
    background-color: #0078d4;
    border-color: #0078d4;
    color: white;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.btn-azure:hover {
    background-color: #106ebe;
    border-color: #106ebe;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 120, 212, 0.3);
}

.logo {
    max-width: 120px;
    margin-bottom: 1rem;
}

/* Estilos para o logo da SIAN */
.sian-logo {
    max-height: 80px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

.sian-logo:hover {
    transform: scale(1.05);
}

/* Estilos para badges reduzidos */
.badge-clean {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
}

/* Estilos para tabelas */
.table-custom {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Estilos para cards */
.card-custom {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.card-custom:hover {
    transform: translateY(-2px);
}

/* Estilos para botões */
.btn-custom {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Estilos para alertas */
.alert-custom {
    border: none;
    border-radius: 8px;
    border-left: 4px solid;
}

/* Estilos para sidebar */
.sidebar-custom {
    background: linear-gradient(180deg, #009CDF 0%, #49C0E8 100%);
    min-height: 100vh;
}

/* Estilos para loading */
.loading {
    display: none;
}

.loading.show {
    display: inline-block !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .login-card {
        margin: 1rem;
        max-width: none;
    }
    
    .sian-logo {
        max-height: 60px;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Estilos para scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #009CDF;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0078d4;
}

.rodape-info {
    font-size: 0.6rem !important; /* Reduz o tamanho da fonte para 60% do padrão */
}

.rodape-info p {
    font-size: 0.6rem !important;
    margin-bottom: 0 !important;
    line-height: 1 !important;
}

.rodape-info strong {
    font-size: 0.7rem !important;
    font-weight: 600 !important;
}

.rodape-info i {
    font-size: 0.5rem !important;
}

/* Forçar aplicação em elementos específicos */
.rodape-info .text-muted {
    font-size: 0.6rem !important;
}

.rodape-info .small {
    font-size: 0.6rem !important;
}

/* ========================================
   CORREÇÕES PARA PROBLEMAS DE DUPLICAÇÃO
   ======================================== */

/* Garantir que apenas um botão de upload seja visível */
.upload-area .btn-primary {
    background-color: #009CDF !important;
    border-color: #009CDF !important;
    color: white !important;
    font-weight: 500 !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.375rem !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: none !important;
}

.upload-area .btn-primary:hover {
    background-color: #0088c4 !important;
    border-color: #0088c4 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 156, 223, 0.3) !important;
}

.upload-area .btn-primary:focus {
    background-color: #009CDF !important;
    border-color: #009CDF !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 156, 223, 0.25) !important;
}

/* Remover qualquer estilo duplicado que possa estar causando conflito */
.upload-area button[type="button"].btn-primary,
.upload-area button.btn-primary {
    background-color: #009CDF !important;
    border-color: #009CDF !important;
    color: white !important;
}

/* Garantir que o input file esteja completamente oculto */
.upload-area input[type="file"] {
    display: none !important;
}

/* Override específico para qualquer estilo que possa estar afetando o input file */
input[type="file"]#fileInput {
    display: none !important;
}

/* Estilos para labels de input file */
label[for="fileInput"] {
    cursor: pointer !important;
    display: inline-block !important;
    text-decoration: none !important;
}

/* Garantir que labels de input file tenham aparência de botão */
label[for="fileInput"].btn {
    cursor: pointer !important;
    user-select: none !important;
}

/* ========================================
   ESTILOS DA PÁGINA DE LOGIN
   ======================================== */

/* Estilos para o corpo da página de login */
body.login-page {
    background: linear-gradient(135deg, #009CDF 0%, #49C0E8 100%);
    min-height: 100vh;
    font-family: 'Arial', sans-serif;
}

/* Container de login */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Card de login */
.login-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 400px;
    width: 100%;
}

/* Header do card de login */
.login-header {
    background: linear-gradient(135deg, #009CDF 0%, #49C0E8 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

/* Corpo do card de login */
.login-body {
    padding: 2rem;
}

/* Botão Azure */
.btn-azure {
    background-color: #0078d4;
    border-color: #0078d4;
    color: white;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 1;
}

.btn-azure:hover {
    background-color: #106ebe;
    border-color: #106ebe;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 120, 212, 0.3);
}

/* Logo */
.logo {
    max-width: 120px;
    margin-bottom: 1rem;
}

/* Divisor */
.divider {
    margin: 1.5rem 0;
    text-align: center;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
}

.divider span {
    background: white;
    padding: 0 1rem;
    color: #6c757d;
    font-size: 14px;
}

/* Alertas */
.alert {
    border-radius: 8px;
    border: none;
}

/* Loading */
.loading {
    display: none;
}

.loading.show {
    display: inline-block !important;
}

/* Círculo pequeno para separadores */
.circle-separator {
    font-size: 0.3rem;
    opacity: 0.5;
}