/* Custom CSS for MuscleLib API Documentation */
:root {
    --primary-color: #14c4ff;
    --hover-bg: #242835;
    --active-bg: #043aec;
    --dark-bg: #1a1a1a;
    --dark-border: #2c2c2c;
    --light-bg: #f7f9fc;
}

body.dark-theme {
    line-height: 1.6;
    background-color: var(--dark-bg); /* Soft blue-gray background */
    color: var(--light-bg); /* Dark gray text for better readability */
}

header {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: var(--dark-bg); /* White background for the header */
    border-bottom: 1px solid var(--dark-border);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: #0984e3;
}

.response-exemples {
    margin: 3em 0 4em 0;
}

.button {
    transition: background-color 0.3s ease;
    color: #000;
}

.active {
    background-color: #333!important;
}

.bi {
    transition: transform 0.3s ease-in-out;
}

.bi-chevron-down {
    transform: rotate(90deg);
}

.selectBox {
    user-select: all;
}

.response-samples {
    margin: 20px 0 -15px 6px;
    font-size: 1.2em;
    font-weight: bold;
}

.response-schema {
    margin: 2em 0 0 0;
    box-shadow: 0 4px 15px rgba(58, 58, 58, 0.3);
    padding: 1px 40px 20px 40px;
    border-radius: 10px;
}

.active.all-200 {
    border: solid 3px;
    color: var(--bs-success)!important;
}

.active.all-400 {
    border: solid 3px;
    color: var(--bs-danger)!important;
}

.all-400, .all-200 {
    border: solid;
    margin-left: 3em!important;
}

.all-400 {
    margin-left: 10px;
}

.tab-pane {
    border-radius: 3em;
}

.nav-link {
    transition: color 0.3s ease;
}

.pass:hover {
    color: #00cec9;
}

main {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

h1, h2, h3, h4, h5 {
    font-weight: bold;
    color: #0984e3; /* Dark gray for headings */
}

pre {
    margin: 0;
    position: relative;
    border-radius: 5px;
    overflow-x: auto;
    border-radius: 2.2em;
}

.card-body {
    padding: 0;
}

.link {
    border: 1px solid var(--bs-blue);
    color: var(--light-bg);
    border-radius: 10px;
    margin: -6px -10px -5px -12px;
    padding-left: 15px;
}

.select-box {
    cursor: pointer;
}

.copy-button {
    position: absolute;
    top: 9px;
    right: 20px;
    background-color: #007bff;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
}

.copy-button:hover {
    background-color: #0056b3;
}

ul {
    padding-left: 1.5rem;
    border: none!important;
}

footer {
    background: var(--dark-bg)!important;
    box-shadow: -5px -5px 6px rgb(87 87 87 / 20%);
    padding: 2em 0;
    text-align: center;
    margin-top: 4em;
}

footer a {
    color: var(--light-bg);
    text-decoration: none;
    margin: 0 0.5em;
}

footer a:hover {
    color: var(--primary-color);
}

/* Estilo personalizado para o scrollbar */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #272727;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

/* Estilo para o modal */
.modal-content {
    border-radius: 12px;
}

.modal-header {
    background-color: #000;
    border-bottom: 1px solid #0f0f0f!important;
    color: #0dcaf0;
}

.modal-body {
    background-color: #000;
    color: #fff;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    background-color: #000!important;
    border-top: 1px solid #0f0f0f!important;
}

/* Navbar Estilizada */
.nested-nav {
    width: 280px;
    height: 100vh;
    background: linear-gradient(145deg, var(--dark-bg) 0%, var(--dark-border) 100%);
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
    position: fixed;
    border-right: 1px solid var(--dark-border);
}

.nested-link {
    color: var(--bs-blue);
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nested-link:hover {
    background: var(--hover-bg);
    color: var(--primary-color)!important;
    transform: translateX(4px);
}

.nested-link.active {
    background: var(--active-bg);
    color: var(--primary-color)!important;
    font-weight: 600;
}

.nested-link.sublink {
    padding-left: 2.5rem;
    font-size: 0.9em;
    color: #0a67eb;
    position: relative;
}

.collapse-nested {
    background: none!important;
}

.nested-link.sublink::before {
    content: "";
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--dark-bg);
    border-radius: 50%;
}

.nested-link[data-bs-toggle="collapse"]::after {
    content: "\F282";
    font-family: "bootstrap-icons";
    font-size: 0.8em;
    margin-left: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nested-link[data-bs-toggle="collapse"][aria-expanded="true"]::after {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.offcanvas-body {
    margin: -1.5em 0 0 6.5em;
}

.offcanvas-body_nested {
    margin: 1.5em 0 0 2.5em;
}

.offcanvas {
    background: var(--dark-border);
    margin-right: -8em;
    margin-left: -8em;
}

.dropdown_nested {
    margin-left: -1.5em;
}

.theme-select {
    margin-top: 35px;
}

.theme-select-lg {
    margin-left: 40px;
    margin-right: 50px;
}

.lang-select {
    border: solid 1px var(--primary-color);
    border-radius: 10px;
    color: var(--primary-color)!important;
}

.lang-select:hover {
    background: var(--primary-color);
    color: var(--dark-bg)!important;
}

.theme-select-box {
    background: var(--dark-bg);
    color: var(--primary-color);
}

.theme-select-text {
    color: var(--primary-color);
    border-radius: 10px;
}

.theme-select-text:hover {
    color: var(--primary-color);
    background: var(--hover-bg);
}

/* Buttons and links */
.btn {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background-color: #00cec9; /* Calm teal for buttons */
    border: none;
    color: var(--dark-bg);
}

.btn-primary:hover {
    background-color: #0984e3; /* Darker teal on hover */
}

.router-get {
    margin-left: 20px;
}

.accordion-button {
    z-index: 0;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-button::after {
    filter: drop-shadow(0px 0px 1px #fff) drop-shadow(0px 0 0 #fff);
}

.accordion-item {
    border: solid 1px var(--bs-blue);
}

.navbar-fixed {
    display: block;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1;
    background: var(--dark-bg)!important;
    box-shadow: 0 5px 10px rgb(77 75 75 / 50%);
}

.gap-1 {
    margin-top: 30px;
}

.response-samples {
    color: #0984e3;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.toggleButton {
    margin-right: 0.5rem;
}

.architecture-container {
    margin-top: 1rem;
}

.architecture-list {
    list-style: none;
    padding-left: 0;
}

.level-1, .level-2, .level-3 {
    position: relative;
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.level-1::before,
.level-2::before,
.level-3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 10px;
    height: 100%;
    border-left: 1px solid var(--dark-border);
}

.level-1::after,
.level-2::after,
.level-3::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 10px;
    height: 1px;
    border-bottom: 1px solid var(--dark-border);
}

.level-1:last-child::before,
.level-2:last-child::before,
.level-3:last-child::before {
    height: 0.7em;
}

.property-name {
    font-weight: 600;
    color: #2c3e50;
}

.type-array,
.type-object,
.type-string {
    font-style: italic;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.5rem;
}

.type-array {
    color: #27ae60;
    background-color: #e8f6ef;
}

.type-object {
    color: #8e44ad;
    background-color: #f5eef8;
}

.type-string {
    color: #c0392b;
    background-color: #fdedec;
}

.card-body {
    padding: 1rem;
}

.card {
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    background: var(--dark-border);
}

.collapse {
    background: var(--dark-bg);
}

.list {
    font-size: 2em;
    font-weight: bold;
    color: #0984e3;
}

.btn-group {
    display: block;
}

/* Responsividade */
@media (max-width: 768px) {
    h1 {
        font-size: 25px;
        margin-top: 25px;
    }

    .response-schema {
        padding: 1rem;
    }

    .response-samples {
        font-size: 1rem;
    }
}

/* Estilo dos cards */
.card-image {
    width: 300px; /* Largura fixa para os cards */
    height: 200px; /* Altura fixa para os cards */
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin: 10px;
    display: inline-block;
}

/* Imagem de fundo dos cards */
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garantir que a imagem cubra o espaço */
    transition: transform 0.3s ease; /* Efeito de zoom suave */
}

/* Overlay escuro ao passar o mouse */
.card-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Overlay escuro */
    opacity: 0; /* Inicialmente invisível */
    transition: opacity 0.3s ease; /* Transição suave */
}

/* Texto que aparece ao passar o mouse */
.card-image .card-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    opacity: 0; /* Inicialmente invisível */
    transition: opacity 0.3s ease; /* Transição suave */
    z-index: 2; /* Garantir que o texto fique acima do overlay */
}

/* Efeito ao passar o mouse */
.card-image:hover::after {
    opacity: 1; /* Mostrar overlay */
}

.card-image:hover .card-text {
    opacity: 1; /* Mostrar texto */
}

.card-image:hover img {
    transform: scale(1.1); /* Zoom na imagem */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-link {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    header .navbar-collapse {
        text-align: center;
    }

    pre {
        font-size: 0.875rem;
    }
}