:root {
    --primary-color: #0D6EFD;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --success-color: #2ecc71;
    --warning-color: #f1c40f;
    --danger-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
}

body {
    background:
        linear-gradient(to right, #fff 0%, rgba(255,255,255,0.85) 10%, rgba(255,255,255,0) 25%, rgba(255,255,255,0) 75%, rgba(255,255,255,0.85) 90%, #fff 100%);
    /* url('/static/img/ackground-modern-.jpg') center center/cover no-repeat fixed; */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.nav-link {
    transition: all 0.3s ease;
    padding: 0.5rem 1rem !important;
    border-radius: 5px;
    margin: 0 0.2rem;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
}

.card:hover {
    /* transform: translateY(-5px); */
    box-shadow: 0 6px 12px rgba(0,0,0,.15);
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    padding: 1rem;
}

/* List Groups */
.list-group-item {
    border: none;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 5px !important;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: var(--light-color);
    transform: translateX(5px);
}

/* Buttons */
.btn {
    border-radius: 5px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
    margin-bottom: 1rem;
    padding: 1rem;
}

/* Stats Cards */
.stats-card {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
}

.stats-card h3 {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stats-card p {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin: 0;
}

/* Tables */
.table {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.table tbody tr:hover {
    background-color: var(--light-color);
}

/* Forms */
.form-control {
    border-radius: 5px;
    padding: 0.75rem;
    border: 1px solid #ddd;
}

.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    border-color: var(--accent-color);
}

/* Dropdowns */
.dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,.1);
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--light-color);
    transform: translateX(5px);
}

/* Charts */
canvas {
    max-width: 100%;
    height: auto !important;
}

.stat-card {
    color: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: none;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.stat-card p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.9;
}
.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.8;
}
.stat-card-visitas-hoje {
    background: linear-gradient(135deg, #6dd5ed, #2193b0) !important;
}
.stat-card-visitas-andamento {
    background: linear-gradient(135deg, #5cb85c, #28a745) !important;
}
.stat-card-total-visitas {
    background: linear-gradient(135deg, #f1c40f, #f39c12) !important;
}
.stat-card-visitas-mes {
    background: linear-gradient(135deg, #e67e22, #e74c3c) !important;
}

.stat-card, .stat-card * {
    color: #fff !important;
}

.btn-voltar {
    background: #34495e;
    color: #fff;
    border: 2px solid #34495e;
    margin-bottom: 2.2rem;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-voltar:focus, .btn-voltar:active {
    background: #212529;
    color: #fff;
    box-shadow: 0 0 0 3px #b6d4fe;
    border-color: #2193b0;
}
.btn-voltar:hover {
    background: #2193b0;
    color: #fff;
    border-color: #2193b0;
}
@media (max-width: 767.98px) {
    .btn-voltar {
        width: 100%;
        justify-content: flex-start;
        margin-bottom: 2rem;
    }
}

/* Efeitos avançados para área de boas-vindas da home */
.welcome-section {
    background: linear-gradient(150deg, #bbb6b613 10%, #57acd43b 80%);
    border-radius: 32px;
    box-shadow: 0 8px 32px rgba(249, 249, 255, 0);
    padding: 2.5rem 2rem 2rem 2rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}
.welcome-section h1, .welcome-section h3 {
    animation: fadeInLeft 1s cubic-bezier(.77,0,.175,1) both;
}
.welcome-section img {
    animation: fadeInRight 1.2s cubic-bezier(.77,0,.175,1) both;
    box-shadow: 0 8px 32px rgba(80, 80, 160, 0.18), 0 1.5px 8px rgba(0,0,0,0.08);
    transition: transform 0.35s cubic-bezier(.77,0,.175,1), box-shadow 0.35s;
}
.welcome-section img:hover {
    transform: scale(1.045) rotate(-2deg);
    box-shadow: 0 16px 48px rgba(80, 80, 160, 0.22), 0 3px 16px rgba(0,0,0,0.12);
    filter: brightness(1.08) saturate(1.1);
}
@keyframes fadeInLeft {
    0% { opacity: 0; transform: translateX(-40px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    0% { opacity: 0; transform: translateX(40px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* Imagem circular com degradê branco nas bordas */
.card-transparente-borda-preta {
    background: rgba(255,255,255,0.55) !important;
    border: 1.5px solid #222 !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    border-radius: 18px;
    backdrop-filter: blur(2px);
    position: relative;
    overflow: hidden;
}
.video-bg-card-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    border-radius: 18px;
    overflow: hidden;
}
.video-bg-card {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.18;
    display: block;
    border-radius: 18px;
}
.card-transparente-borda-preta > *:not(.video-bg-card-wrapper) {
    position: relative;
    z-index: 2;
}
.card-transparente-borda-preta::before {
    display: none;
}
.secao-bem-vindo {
    gap: 32px;
}
.imagem-circular-degrade {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(221, 220, 220, 0.164) 55%, rgba(247, 247, 247, 0.308) 60%),
        url('/static/img/1660156290.jpg') center center/cover no-repeat;
    box-shadow: 0 4px 24px rgba(39, 192, 219, 0.74);
    display: block;
}
@media (max-width: 767px) {
    .card-transparente-borda-preta {
        padding: 1.2rem !important;
    }
    .secao-bem-vindo {
        gap: 16px;
    }
    .imagem-circular-degrade {
        width: 140px;
        height: 140px;
        margin: 0 auto 16px auto;
    }
}
.descricao-expandida {
    flex: 1 1 0%;
    min-width: 0;
    padding-left: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    font-size: 1.18rem;
    line-height: 1.5;
    word-break: break-word;
}
@media (max-width: 767px) {
    .descricao-expandida {
        padding-left: 0;
        padding-top: 12px;
        text-align: center;
        font-size: 1rem;
    }
}

.card-body .form-select {
    height: 38px;
    min-height: 38px;
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    font-size: 1rem;
}
