/* Custom CSS for GridUnesp Documentation */

/* Language Selector Styling */
#language-selector {
    font-family: "Lato", "proxima-nova", "Helvetica Neue", Arial, sans-serif;
    transition: all 0.3s ease;
}

#language-selector:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
}

#language-selector a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

#language-selector a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Ensure sidebar is scrollable */
.wy-side-scroll {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Better scrollbar for sidebar */
.wy-side-scroll::-webkit-scrollbar {
    width: 8px;
}

.wy-side-scroll::-webkit-scrollbar-track {
    background: #2b2b2b;
}

.wy-side-scroll::-webkit-scrollbar-thumb {
    background: #525252;
    border-radius: 4px;
}

.wy-side-scroll::-webkit-scrollbar-thumb:hover {
    background: #6b6b6b;
}

/* Logo styling */
.wy-side-nav-search {
    background-color: #ffffff;  /* White background for logo visibility */
    border-bottom: 2px solid #2980b9;
}

.wy-side-nav-search > a {
    color: #2980b9;
    font-size: 1.2em;
    font-weight: bold;
}

.wy-side-nav-search img {
    max-width: 200px;
    margin: 10px auto;
    background-color: #ffffff;
}

/* Better code block styling */
.highlight {
    background: #f8f8f8;
    border: 1px solid #e1e4e5;
    border-radius: 3px;
}

/* Improve admonition styling */
.admonition {
    margin: 20px 0;
}

.admonition.note {
    background-color: #e7f2fa;
    border-color: #6ab0de;
}

.admonition.warning {
    background-color: #ffedcc;
    border-color: #f0b37e;
}

.admonition.attention {
    background-color: #fef5e7;
    border-color: #f39c12;
}

.admonition.tip {
    background-color: #e8f8f5;
    border-color: #1abc9c;
}

/* Better table styling */
.wy-table-responsive table {
    border: 1px solid #e1e4e5;
}

.wy-table-responsive table td,
.wy-table-responsive table th {
    border: 1px solid #e1e4e5;
    padding: 8px;
}

/* Command/code inline styling */
code.literal {
    background-color: #f5f5f5;
    border: 1px solid #e1e4e5;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 90%;
}

/* Make links more visible */
a {
    color: #2980b9;
}

a:hover {
    color: #3091d1;
}

/* Improve content width for better readability */
.wy-nav-content {
    max-width: 1000px;
}

/* Better spacing for sections */
.section {
    margin-bottom: 30px;
}

/* Improve navigation tree */
.wy-menu-vertical li.current {
    background: #e3e3e3;
}

.wy-menu-vertical li.current a {
    border-right: 3px solid #2980b9;
}

/* Better mobile responsiveness */
@media screen and (max-width: 768px) {
    .wy-nav-content {
        max-width: 100%;
        padding: 15px;
    }
    
    .wy-side-nav-search img {
        max-width: 150px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Print styles */
@media print {
    .wy-nav-side,
    .wy-nav-top,
    .rst-versions {
        display: none;
    }
    
    .wy-nav-content {
        max-width: 100%;
        margin-left: 0;
    }
}

/* --------------------------------------------------------------------------
   Botão "Voltar ao Topo" (seta no canto direito)
   -------------------------------------------------------------------------- */

/* Estilo do botão */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #2980B9;
    color: white;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    display: none;  /* Inicialmente oculto */
}

#back-to-top:hover {
    opacity: 1;
    transform: translateY(-3px);
    background-color: #1a5a8c;
}

#back-to-top.show {
    display: block;  /* Mostrar quando necessário */
}

/* Seta (caractere Unicode) */
#back-to-top::before {
    content: "↑";
    font-size: 28px;
    line-height: 50px;
}

/* --------------------------------------------------------------------------
   Ajustes adicionais para o logo
   -------------------------------------------------------------------------- */

/* Centralizar logo */
.wy-side-nav-search > a img.logo {
    max-width: 80%;
    padding: 10px 0;
}

/* Opcional: sombra suave para o logo */
/*.wy-side-nav-search img {
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.1));
}*/

