html, body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: safe center;
    background: linear-gradient(135deg, #a8b8ff 0%, #eee8f5 50%);
    background-attachment: fixed;
    margin: 0; /* Garante que não haja margens externas no body */
}

/* Aplique isso ao elemento principal dentro do seu body */
main, .container {
    margin: auto; 
}

.card{
    margin: 30px auto;
}


/* crie um container específico para centralizar apenas o login */
.page-center {
    min-height: calc(100vh - 56px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: safe center;
    padding: 15px;
}

.main-content {
    flex: 1;
}


a {
    text-decoration: none;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 1);
}

.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.floating-footer{
    position: relative;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background-color: #0d6efd;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    transition: all 0.3s ease;
    overflow: hidden;
}

.floating-footer.collapsed {
    width: 50px;
    height: 50px;
}

.floating-header {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: #0b5ed7;
}

.floating-content {
    padding: 15px;
    font-size: 0.85rem;
}

.floating-footer.collapsed .floating-content {
    display: none;
}

.footer-btn {
    background: none;
    border: none;
    color: white;
    padding: 0;
    font-size: 0.9rem;
    text-decoration: underline;
}

.footer-btn:hover {
    color: #e6f0ff;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-footer.collapsed .footer-text {
    display: none;
}

.footer-link {
    color: #e6f0ff;
    text-decoration: none;
}

.footer-link:hover {
    color: white;
    text-decoration: underline;
}

.login-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    width: 100%;
    max-width: 720px; /* ajuste ideal */
    
}

.login-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px 15px 0 0;
    padding: 2rem;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-login {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 12px;
    font-weight: 600;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-register {
    background: #28a745;
    border: none;
    padding: 12px;
    font-weight: 600;
}

.btn-register:hover {
    background: #218838;
    transform: translateY(-2px);
}

.nav-tabs .nav-link {
    border: none;
    color: #6c757d;
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    color: #667eea;
    border-bottom: 3px solid #667eea;
    background: transparent;
}

.password-toggle {
    cursor: pointer;
    position: absolute;
    right: 0px;
    top: 72%;
    transform: translateY(-50%);
    color: #6c757d;
    display: flex;
    justify-content: center; 
    align-items: center;     
    flex-direction: row; 
    width: 50px;
    height: 50px;
}

.hero-home-dashbord {
    position: relative;
    background: #4c3d9e;
    border-radius: 16px;
    overflow: hidden;
    padding: 3rem 2.5rem;
    margin-bottom: 1.5rem;
    min-height: 200px;
    display: flex;
    align-items: center
}

.hero-bg-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06)
}

.hero-bg-circle.c1 {
    width: 280px;
    height: 280px;
    right: -60px;
    top: -80px
}

.hero-bg-circle.c2 {
    width: 180px;
    height: 180px;
    right: 80px;
    bottom: -60px
}

.hero-bg-circle.c3 {
    width: 120px;
    height: 120px;
    left: 30%;
    top: 10px
}

.hero-deco {
    position: absolute;
    right: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: .1;
    pointer-events: none
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 520px
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .15);
    color: rgba(255, 255, 255, .9);
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 1rem
}

.hero-content h1 {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: .75rem;
    animation: fadeUp .5s .1s both
}

.hero-content p {
    color: rgba(255, 255, 255, .75);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    animation: fadeUp .5s .2s both
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    animation: fadeUp .5s .3s both
}

.btn-hero-white {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    background: #fff;
    color: #4c3d9e;
    border: none;
    text-decoration: none;
    transition: opacity .15s
}

.btn-hero-white:hover {
    opacity: .9;
    color: #4c3d9e
}

.btn-hero-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .3);
    text-decoration: none;
    transition: background .15s
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, .2);
    color: #fff
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 1.5rem
}

.stat-card {
    background: #f7f5ff;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .4s, transform .4s
}

.stat-card.visible {
    opacity: 1;
    transform: none
}

.stat-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px
}

.stat-value {
    font-size: 22px;
    font-weight: 500;
    color: #1a1a1a
}

.stat-trend {
    font-size: 11px;
    margin-top: 4px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 3px
}

.trend-up {
    color: #15803d
}

.trend-down {
    color: #b91c1c
}

.slides-section {
    margin-bottom: 1.75rem
}

.slides-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem
}

.slides-header h2 {
    font-size: 15px;
    font-weight: 500;
    color: #666;
    margin: 0
}

.slides-dots {
    display: flex;
    gap: 6px
}

.slide-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: background .2s, transform .2s
}

.slide-dot.active {
    background: #4c3d9e;
    transform: scale(1.3)
}

.slides-outer {
    overflow: hidden;
    border-radius: 12px
}

.slides-track {
    display: flex;
    transition: transform .45s cubic-bezier(.4, 0, .2, 1)
}

.slide-item {
    min-width: 100%;
    padding: 1.75rem 2rem;
    background: #fff;
    border: 1px solid #e8e4f5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1.75rem
}

.slide-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.slide-item h3 {
    font-size: 17px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #1a1a1a
}

.slide-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0
}

.section-title {
    font-size: 15px;
    font-weight: 500;
    color: #666;
    margin-bottom: 1rem
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 1.75rem
}

.chart-card {
    background: #fff;
    border: 1px solid #e8e4f5;
    border-radius: 12px;
    padding: 1.25rem
}

.chart-card h3 {
    font-size: 13px;
    font-weight: 500;
    color: #888;
    margin: 0 0 1rem
}

.chart-canvas-wrap {
    position: relative;
    height: 220px
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 1.75rem
}

.quick-card {
    background: #fff;
    border: 1px solid #e8e4f5;
    border-radius: 12px;
    padding: 1.25rem;
    text-decoration: none;
    display: block;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .4s, transform .4s, border-color .15s
}

.quick-card.visible {
    opacity: 1;
    transform: none
}

.quick-card:hover {
    border-color: #4c3d9e
}

.qc-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .75rem
}

.qc-title {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 3px
}

.qc-desc {
    font-size: 12px;
    color: #888;
    line-height: 1.4
}

.feed-card {
    background: #fff;
    border: 1px solid #e8e4f5;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.75rem
}

.feed-header {
    padding: .875rem 1.25rem;
    border-bottom: 1px solid #e8e4f5;
    font-size: 13px;
    font-weight: 500;
    color: #888;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.feed-header a {
    font-size: 12px;
    color: #4c3d9e;
    text-decoration: none
}

.feed-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: .75rem 1.25rem;
    border-bottom: 1px solid #f3f0ff;
    transition: background .1s
}

.feed-row:last-child {
    border-bottom: none
}

.feed-row:hover {
    background: #faf8ff
}

.feed-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eeedfe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    color: #534ab7;
    flex-shrink: 0
}

.feed-info {
    flex: 1;
    min-width: 0
}

.feed-nome {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.feed-meta {
    font-size: 11px;
    color: #888
}

.feed-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0
}

.feed-data {
    font-size: 11px;
    color: #aaa;
    white-space: nowrap
}

.feed-empty {
    padding: 1.5rem;
    text-align: center;
    font-size: 13px;
    color: #aaa
}

.badge-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap
}

.badge-andamento {
    background: #fef9c3;
    color: #854d0e
}

.badge-concluida {
    background: #dcfce7;
    color: #166534
}

.badge-nd {
    background: #f3f4f6;
    color: #6b7280
}

.skeleton {
    background: linear-gradient(90deg, #f0eeff 25%, #e8e4ff 50%, #f0eeff 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
    border-radius: 4px
}

@keyframes shimmer {
    0% {
        background-position: 200% 0
    }

    100% {
        background-position: -200% 0
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@media(max-width:576px) {
    .hero-home-dashbord {
        padding: 2rem 1.5rem
    }

    .hero-deco {
        display: none
    }

    .slide-item {
        flex-direction: column;
        gap: 1rem
    }
}

.dt-buttons {
    float: right;
}

/* Garante que o dropdown do Select2 fique sobre o modal do Bootstrap */
.select2-container {
    z-index: 9999 !important;
}

.modal .select2-container {
    width: 100% !important;
}

/* Remove a borda dupla que aparece quando o Select2 está dentro de .form-select */
.select2-container--bootstrap-5 .select2-selection {
    border-color: #dee2e6;
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, .25);
}

/* Placeholder um pouco mais suave */
.select2-container--bootstrap-5 .select2-selection__placeholder {
    color: #9ca3af;
}

