/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f4f6f9;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    min-height: 100vh;
}

/* =====================================================
   HEADER
===================================================== */

.topo {
    background: linear-gradient(
        135deg,
        #005aa7,
        #0d6efd
    );

    padding: 20px 0;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, .15);
}

.logo {
    max-height: 80px;
    width: auto;
}

.titulo-sistema {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.subtitulo-sistema {
    color: rgba(255,255,255,.85);
    margin-bottom: 0;
    font-size: .95rem;
}

/* =====================================================
   CARD PRINCIPAL
===================================================== */

.card {
    border-radius: 18px;
    overflow: hidden;
    border: none;
}

.card-body {
    padding: 30px;
}

.card h4 {
    font-weight: 700;
    color: #1f2937;
}

/* =====================================================
   TABELA
===================================================== */

.table {
    margin-bottom: 0;
}

.table thead tr {
    background: #0d6efd;
}

.table thead th {
    color: white;
    font-weight: 600;
    border: none;
    vertical-align: middle;
    white-space: nowrap;
}

.table tbody td {
    vertical-align: middle;
}

.table-hover tbody tr:hover {
    background-color: rgba(13,110,253,.05);
}

/* =====================================================
   INPUTS
===================================================== */

.form-control {
    border-radius: 10px;
    min-height: 45px;
    border: 1px solid #ced4da;

    transition: all .25s ease;
}

.form-control:focus {
    border-color: #0d6efd;

    box-shadow:
        0 0 0 .20rem rgba(13,110,253,.15);
}

/* =====================================================
   BOTÕES
===================================================== */

.btn {
    border-radius: 10px;
    font-weight: 600;
    transition: all .25s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-success:hover {
    transform: translateY(-2px);
}

.btn-danger:hover {
    transform: scale(1.05);
}

/* =====================================================
   PREVIEW IMAGEM
===================================================== */

.previewImagem {

    width: 90px;
    height: 90px;

    object-fit: cover;

    border-radius: 10px;

    border: 2px solid #dee2e6;

    box-shadow:
        0 2px 8px rgba(0,0,0,.15);
}

/* =====================================================
   TABELA MOBILE
===================================================== */

@media (max-width: 991px) {

    .card-body {
        padding: 20px;
    }

    .titulo-sistema {
        font-size: 1.6rem;
    }

}

@media (max-width: 768px) {

    .topo {
        text-align: center;
    }

    .logo {
        max-height: 70px;
        margin-bottom: 10px;
    }

    .titulo-sistema {
        font-size: 1.4rem;
    }

    .subtitulo-sistema {
        font-size: .85rem;
    }

    .card-body {
        padding: 15px;
    }

    .btn-lg {
        width: 100%;
    }

    .previewImagem {

        width: 70px;
        height: 70px;
    }
}

/* =====================================================
   MOBILE EXTREMO
===================================================== */

@media (max-width: 576px) {

    .table {
        min-width: 750px;
    }

    .form-control {
        min-height: 42px;
        font-size: .9rem;
    }

    .btn {
        font-size: .9rem;
    }

    .btnRemoverLinha {
        min-width: 40px;
    }
}

/* =====================================================
   ANIMAÇÕES
===================================================== */

.card {
    animation: fadeIn .4s ease;
}

@keyframes fadeIn {

    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   SWEETALERT
===================================================== */

.swal2-popup {
    border-radius: 15px !important;
}

.swal2-confirm {
    border-radius: 8px !important;
}

.swal2-cancel {
    border-radius: 8px !important;
}

