@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

main::-webkit-scrollbar,
#course-nav::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

main::-webkit-scrollbar-track,
#course-nav::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

main::-webkit-scrollbar-thumb,
#course-nav::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

main::-webkit-scrollbar-thumb:hover,
#course-nav::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.lesson-content-item {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

pre {
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    font-size: 0.9em;
    line-height: 1.6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #333;
}

code .comment {
    color: #008000;
}

code .keyword {
    color: #0000ff;
    font-weight: bold;
}

code .string {
    color: #a31515;
}

.copy-code-button {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #e0e0e0;
    color: #333;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.copy-code-button:hover {
    opacity: 1;
}

.sidebar-link,
.sidebar-button {
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.sidebar-link:hover,
.sidebar-link.active,
.sidebar-button:hover {
    background-color: #4a5568;
    /* bg-gray-700 */
    color: #ffffff;
    /* text-white */
}

.module-title {
    cursor: pointer;
}

.lesson-list {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.lesson-list.open {
    max-height: 1000px;
}

#sidebar.md\:fixed {
    height: 100vh;
}

/* Estilos para Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    transform: scale(0.95);
    transition: transform 0.3s ease-in-out;
}

.modal-overlay.open .modal-content {
    transform: scale(1);
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #a0a0a0;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #808080;
}

.widget-category-title {
    font-size: 1.3em;
    color: #1e40af;
    border-bottom: 2px solid #93c5fd;
    padding-bottom: 8px;
    margin-top: 20px;
    margin-bottom: 16px;
}

.widget-entry {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px dashed #cbd5e1;
}

.widget-entry:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Estilo para o modal de PIN */
#pin-modal .modal-content {
    background-color: #1e293b;
    /* bg-slate-800 */
    color: #e2e8f0;
    /* text-slate-200 */
    max-width: 360px;
    /* Mais estreito para PIN */
}