:root {
    --verde-primeiro: #46fd1f;
    --verde-segundo: #3ddf1b;
    --verde-terceiro: #40bb2e;
    --verde-quarto: #3c9232;
}

html, body {
    height: 100%;
    font-size: 15px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

    .btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
    }


.btn-primary {
    color: #000000 !important;
    background-color: var(--verde-segundo) !important;
    border-color: var(--verde-segundo) !important;
}

    .btn-primary:hover {
        color: #000000 !important;
        background-color: var(--verde-quarto) !important;
        border-color: var(--verde-quarto) !important;
    }

    .btn-check:focus + .btn-primary, .btn-primary:focus {
        color: #000000 !important;
        background-color: var(--verde-quarto) !important;
        border-color: var(--verde-quarto) !important;
        -webkit-box-shadow: 0 0 0 0.15rem rgba(116, 136, 235, 0.5);
        box-shadow: 0 0 0 0.15rem rgba(116, 136, 235, 0.5);
    }

.btn-outline-primary {
    color: #5b73e8 !important;
    border-color: #5b73e8 !important;
}

    .btn-outline-primary:hover {
        color: #fff !important;
        background-color: #5b73e8 !important;
        border-color: #5b73e8 !important;
    }

.btn-light {
    color: #000 !important;
    background-color: #f5f6f8 !important;
    border-color: #f5f6f8 !important;
}

    .btn-light:hover {
        color: #000 !important;
        background-color: #f7f7f9 !important;
        border-color: #f6f7f9 !important;
    }

    .btn-check:focus + .btn-light, .btn-light:focus {
        color: #000 !important;
        background-color: #f7f7f9 !important;
        border-color: #f6f7f9 !important;
        -webkit-box-shadow: 0 0 0 0.15rem rgba(208, 209, 211, 0.5);
        box-shadow: 0 0 0 0.15rem rgba(208, 209, 211, 0.5);
    }

.btn-outline-light {
    color: #f5f6f8 !important;
    border-color: #f5f6f8 !important;
}

    .btn-outline-light:hover {
        color: #000 !important;
        background-color: #f5f6f8 !important;
        border-color: #f5f6f8 !important;
    }

    .btn-check:focus + .btn-outline-light, .btn-outline-light:focus {
        -webkit-box-shadow: 0 0 0 0.15rem rgba(245, 246, 248, 0.5);
        box-shadow: 0 0 0 0.15rem rgba(245, 246, 248, 0.5);
    }



.content {
    padding: 1.1rem;
    background-color: #f5f6f8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.text-verde {
    color: var(--verde-primeiro)
}


.text-verde-segundo {
    color: var(--verde-segundo)
}

.form-signin-body {
    display: flex;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 40px;
    background-color: #121212;
}

.form-floating {
    margin-bottom: 1rem;
}

    .form-floating > label::after {
        background-color: transparent !important;
    }

.form-control:focus {
    border-color: #9e9e9e;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgb(205 205 205)
}

.form-signin {
    width: 100%;
    padding-right: var(--bs-gutter-x, .625rem);
    padding-left: var(--bs-gutter-x, .625rem);
    margin-right: auto;
    margin-left: auto;
}

.nav-link {
    display: block;
    padding: .5rem 1rem;
    color: #0d6efd;
    text-decoration: none;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}

.container-fluid.center {
    justify-content: center !important;
}

.img-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.header-profile-user {
    height: 37px;
    width: 37px;
    background-color: black;
    padding: 1px;
}

.footer {
    bottom: 0;
    padding: 20px 30px;
    position: relative;
    right: 0;
    color: #74788d;
    height: 60px;
    -webkit-box-shadow: 0 0 4px rgba(15, 34, 58, .12);
    box-shadow: 0 0 4px rgba(15, 34, 58, .12);
}

.page-title-box {
    padding-bottom: 0.7rem;
}

    .page-title-box h4 {
        font-weight: 600;
        font-size: 18px !important;
    }

.page-title-right {
    align-content: end;
}

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    color: #495057;
}

.breadcrumb-item > a {
    color: #495057 !important;
    text-decoration: none !important;
}

.breadcrumb .breadcrumb-item.active {
    color: #74788d !important;
}

.form-control {
    min-width: 20rem !important;
}

.progress-bar {
    will-change: width;
    height: 100%;
}

.a-card {
    text-decoration: none;
    color: initial;
}

.card-border {
    border: 1px solid rgba(0, 0, 0, .125) !important;
    margin-bottom: 1rem;
    font-size: smaller;
}

    .card-border .card-body, .card-border .card-footer {
        padding: 0.6rem;
    }


.row-custom {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: center;
    margin-bottom: 20px;
}

.col-custom {
    flex: 1 1 calc(20% - 1rem);
    max-width: calc(20% - 1rem);
    min-width: 150px;
}

.card-dashboard {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    padding: 15px;
}

    .card-dashboard:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    }

.card-body-dashboard {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.icon-dashboard {
    font-size: 2rem;
    margin-bottom: 10px;
}

.title-dashboard {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.text-dashboard {
    font-size: 1rem;
    color: #6c757d;
}

.row-dash-activity {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
    margin-top: 20px;
}

.col-dash-activity,
.col-dash-positivacoes {
    flex: 1 1 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
}

.card-activity {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: left;
}

.card-body-activity {
    padding: 10px;
}

.title-activity, .title-positivacoes {
    font-size: 18px;
    margin-bottom: 15px;
}

.activity-feed {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feed-item-activity {
    margin-bottom: 15px;
    border-bottom: 1px dashed #ddd;
    padding-bottom: 10px;
}

.card-positivacoes {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: left;
}

.card-body-positivacoes {
    padding: 10px;
}

.name-column-positivacoes {
    font-weight: bold;
    font-size: 1rem;
}

.number-column-positivacoes {
    text-align: right;
    font-size: 0.9rem;
    color: #6c757d;
}


.thumb-sem-imagem {
    background-color: black;
    padding: 5px;
    width: 200px
}

    .thumb-sem-imagem > img {
        display: block;
        margin-left: auto;
        margin-right: auto;
    }


#modal-imagem {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.switch-danger:checked {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    box-shadow: none !important;
}

.switch-success:not(:checked) {
    background-color: #e2e3e5 !important;
    border-color: #e2e3e5 !important;
    box-shadow: none !important;
}

.icon-alert {
    color: #dc3545 !important;
    margin-left: 5px;
    font-size: 1rem;
}

.icon-ok {
    color: #28a745 !important;
    margin-left: 5px;
    font-size: 1rem;
}

.overflow-grid {
    display: grid;
    gap: 0.5rem;
    max-height: 360px;
    overflow-y: auto;
}

.feedback-card {
    background: #18191c;
    color: #fff;
    border-radius: 0.7rem;
    box-shadow: 0 2px 6px #0002;
    padding: 1em;
    font-size: 1em;
    display: flex;
    flex-direction: column;
    gap: 0.6em;
}

    .feedback-card .feedback-footer {
        color: #fadf25;
        font-size: 0.85em;
        margin-top: 0.6em;
        border-top: 1px solid #3335;
        padding-top: 0.4em;
        word-break: break-word;
    }

#midias-container {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 576px) {
    #midias-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 768px) {
    #midias-container {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 992px) {
    #midias-container {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 1200px) {
    #midias-container {
        grid-template-columns: repeat(7, 1fr);
    }
}


.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: box-shadow 0.3s ease;
    cursor: pointer;
    background-color: #333;
    height: 250px;
}

    .gallery-item:hover {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    }


.image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #333;
}

    .image-wrapper img {
        position: relative;
        z-index: 1;
        max-height: 100%;
        max-width: 100%;
        object-fit: contain;
        margin: auto;
        display: block;
        border-radius: 10px;
    }


.background-blur {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(15px);
    z-index: 0;
    transform: scale(1.1);
    opacity: 0.6;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
    background: #222;
}

    .video-wrapper video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
    }

.gallery-info {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 0.4rem;
    font-size: 0.8rem;
    text-align: center;
    z-index: 3;
    bottom: 0;
}

.gallery-item:hover .gallery-info {
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
    text-align: center;
    z-index: 2;
}

.abrir-positivacao {
    display: inline-block;
    margin-top: 0.3em;
    color: #fadf25;
    font-weight: bold;
    font-size: 0.95em;
    cursor: pointer;
    text-decoration: underline;
    background: none;
    border: none;
}

    .abrir-positivacao:hover {
        color: #fff200;
        text-decoration: none;
    }

.open-imagem {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}


.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background-color: var(--verde-segundo) !important;
    color: #000 !important;
    border-color: #d9bc00;
}

.nav-pills .nav-link {
    background-color: #f4f4f4 !important;
    color: #000 !important;
    border-radius: 8px;
    margin: 2px;
    border: 1px solid #444;
}

#imagens-tab.nav-link {
    border-radius: 8px 0 0 8px !important;
}

#videos-tab.nav-link {
    border-radius: 0 8px 8px 0 !important;
}


#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    background-color: #FFC107;
    color: #000;
    border: none;
    border-radius: 50%;
    padding: 10px 13px;
    font-size: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    display: none;
}

    #backToTop:hover {
        background-color: #e0a800;
    }


.card {
    margin-bottom: 0.5rem
}

.dark .card {
    background-color: #292929;
    color: white;
}

.dark .feedback-card,
.dark .feedback-block {
    background-color: #292929;
    color: white;
}

.dark .text-dark,
.dark .text-black,
.dark .text-primary,
.dark .text-muted,
.dark .text-secondary,
.dark .bg-light {
    color: white !important;
    background-color: #292929 !important;
}
