/* =======================================================
   BASE
======================================================= */

body {
    background-color: #f8f9fa;
    font-family: "Segoe UI", sans-serif;
    display: block;
    min-height: 100vh;
}

/* =======================================================
   LOGIN
======================================================= */

.login-form {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.2);
    padding: 40px 30px;
    text-align: center;
    animation: fadeInUp 0.8s ease both;
}
.login-form .logo img {
    width: 130px;
    margin-bottom: 15px;
    animation: floatLogo 3s ease-in-out infinite;
}
.login-form h2 {
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
}
.login-form .form-control {
    border-radius: 10px;
    margin-bottom: 15px;
    height: 45px;
    font-size: 15px;
    transition: all 0.3s;
}
.login-form .form-control:focus {
    border-color: #00CB78;
    box-shadow: 0 0 0 0.2rem rgba(0,203,120,0.25);
}
.login-form .btn {
    border-radius: 10px;
    height: 45px;
    font-weight: 600;
    background-color: #00CB78;
    border: none;
    transition: transform 0.2s, background 0.3s;
}
.login-form .btn:hover {
    background-color: #00b36a;
    transform: scale(1.03);
}
.login-form .btn:active {
    transform: scale(0.98);
}

/* =======================================================
   SIDEBAR
======================================================= */

.sidebarfin {
    min-height: 100vh;
    background: linear-gradient(180deg, #0d6efd 0%, #0a58ca 100%);
    color: #fff;
    padding-top: 1rem;
    position: fixed;
}
.sidebarfin a {
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    display: block;
    text-decoration: none;
    transition: background 0.2s;
}
.sidebarfin a:hover,
.sidebarfin a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* =======================================================
   LOADER
======================================================= */

#loader {
    display: none;
    text-align: center;
    padding: 30px;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ddd;
    border-top-color: #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: auto;
}

/* =======================================================
   PAGE LAYOUT
======================================================= */

main {
    margin-left: 260px;
    padding: 20px;
}

.page-header {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.table-container {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* =======================================================
   MODAIS
======================================================= */

.modal-content {
    border-radius: 12px !important;
    overflow: visible !important;
    animation: modalZoom 0.4s ease;
}
.modal-header {
    background: #00CB78;
    color: #fff;
}
.modal-header.bg-success {
    background-color: #198754 !important;
}

/* =======================================================
   FORM / INPUTS
======================================================= */

.form-control,
.form-select {
    height: auto;
    border-radius: 6px;
}

.dataTables_filter input {
    border-radius: 8px;
    border: 1px solid #ced4da;
    padding: 6px 10px;
}

.dataTables_length select {
    border-radius: 8px;
}

/* =======================================================
   ANIMAÇÕES
======================================================= */

@keyframes fadeInUp {
    from {opacity: 0; transform: translateY(40px);}
    to {opacity: 1; transform: translateY(0);}
}
@keyframes modalZoom {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}
@keyframes floatLogo {
    0%, 100% {transform: translateY(0);}
    50% {transform: translateY(-5px);}
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* =======================================================
   TABLES
======================================================= */

#bancosTable {
    width: 100% !important;
    table-layout: fixed;
}
#bancosTable td { vertical-align: middle; }

/* =======================================================
   HOVER GLOBAL DE CARDS (mantido)
======================================================= */

.card {
    transition: all 0.25s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* =======================================================
   ↘ MOVIMENTO DIÁRIO — CARDS (ISOLADO)
======================================================= */

/* Contêiner blindado */
.mdia-wrapper-cards {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
}

/* Cada card ocupa 1/6 */
.mdia-card-item {
    flex: 0 0 calc(16.66% - 10px) !important;
    max-width: calc(16.66% - 10px) !important;
    height: auto !important;
    position: relative !important;
}

/* Responsividade */
@media (max-width: 992px) {
    .mdia-wrapper-cards { flex-wrap: wrap !important; }
    .mdia-card-item {
        flex: 0 0 calc(33.33% - 10px) !important;
        max-width: calc(33.33% - 10px) !important;
    }
}
@media (max-width: 576px) {
    .mdia-card-item {
        flex: 0 0 calc(50% - 10px) !important;
        max-width: calc(50% - 10px) !important;
    }
}

/* Card interno blindado */
.mdia-card-item .card {
    min-height: 85px !important;
    border: 0 !important;
    height: 100% !important;
    position: relative !important;
    z-index: 1 !important;
}

/* REMOVE HOVER SOMENTE NO MDIA */
.mdia-card-item .card:hover,
.mdia-card .card:hover {
    transform: none !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08) !important;
}
