/* Styles for the roteiro_aplicacao component */

.pin-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    /* margin: 0 auto; */


}

.header-container-aplication {
    display: flex;
    align-items: center;
    width: 100%;

    h1 {
        text-align: left;
        margin: 0;
        padding: 0;
    }
}

.status-sinal {
    width: 10px;
    height: 10px;
    margin: 2px 0 0 6px;
    border-radius: 100%;
    background-color: #e22b2b;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        background-color: #e22b2b;
        box-shadow: 0 0 0 rgba(39, 189, 30, 0);
    }

    50% {
        background-color: #ff4141;
        box-shadow: 0 0 5px rgb(255, 0, 0);
    }

    100% {
        background-color: #e22b2b;
        box-shadow: 0 0 0 rgba(189, 30, 30, 0.7);
    }
}

/* Styles for roteiro title and description */
.roteiro-info {
    margin: 2rem 0 1rem 0;
    width: 100%;
    padding: 1.5rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.roteiro-info-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.roteiro-info-main {
    display: flex;
}

.roteiro-imagem {
    img {
        width: 100px;
        height: auto;
        background-size: cover;
        border-radius: 16px;
        box-sizing: content-box;
        border: 6px solid white;
    }
}

.roteiro-titulo-legend {
    font-size: 15px;
    color: #777;
}

.roteiro-titulo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 0.8rem;
}

.roteiro-descricao-legend {
    width: 100%;
    border-top: 1px solid #ddd;
    padding: 10px 0;
    font-size: 12px;
    color: #777;
}

.roteiro-descricao {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.5;
}

.roteiro-datas {
    width: 100%;
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
    margin-top: 0.8rem;
    padding: 1rem;
    border-radius: 1rem;
    background: #eee;
}

.timer-content {
    font-size: 14px !important;
}

.status-andamento,
.status-encerrada {
    display: inline-block;
    background-color: #e22b2b;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-left: 5px;
}

.status-encerrada {
    background-color: #ff5f5f;
    margin-left: 0;
}

.pin-display {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.1);
    width: 100%;

    p {
        margin-bottom: 1rem;
        font-size: 1.2rem;
        color: #333;
        text-align: center;
    }
}

/* Instruções melhoradas */
.pin-instructions {
    margin-bottom: 2rem;

    h3 {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: #007bff;
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
        text-align: center;

        .material-symbols-outlined {
            font-size: 1.6rem;
        }
    }
}

.instruction-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #007bff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;

    &:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
    }
}

/* Destaque para o método principal (PIN manual) */
.step.primary-method {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border-left: 4px solid #4caf50;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.15);
    position: relative;

    &::before {
        content: "⭐ RECOMENDADO";
        position: absolute;
        top: -8px;
        right: 12px;
        background: #4caf50;
        color: white;
        padding: 4px 12px;
        border-radius: 12px;
        font-size: 0.75rem;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    &:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(76, 175, 80, 0.25);
    }
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Número especial para o método principal */
.step.primary-method .step-number {
    background: #4caf50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.step-content {
    flex: 1;

    strong {
        /* display: block; */
        color: #333;
        /* font-size: 1.1rem; */
        margin-bottom: 0.5rem;
        font-weight: 600;
    }

    p {
        color: #666;
        font-size: 0.95rem;
        line-height: 1.4;
        margin: 0;
        text-align: left;
    }
}

/* Destaque especial para o conteúdo do método principal */
.step.primary-method .step-content {
    strong {
        color: #2e7d32;
        font-size: 1.2rem;
    }

    p {
        color: #555;
        font-weight: 500;
    }
}

/* Dicas para o professor */
.teacher-notes {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fff3e0 0%, #fef7e0 100%);
    border-radius: 12px;
    border: 1px solid #ffb74d;
    margin-top: 2rem;
    box-shadow: 0 2px 8px rgba(255, 183, 77, 0.15);

    .note-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: #ffb74d;
        border-radius: 50%;
        flex-shrink: 0;
        box-shadow: 0 2px 8px rgba(255, 183, 77, 0.3);

        .material-symbols-outlined {
            color: white;
            font-size: 1.5rem;
        }
    }

    .note-content {
        flex: 1;

        strong {
            display: block;
            color: #e65100;
            font-size: 1.1rem;
            margin-bottom: 0.8rem;
            font-weight: 600;
        }

        ul {
            margin: 0;
            padding-left: 0;
            list-style: none;
        }

        li {
            color: #555;
            font-size: 0.95rem;
            line-height: 1.5;
            margin-bottom: 0.6rem;
            padding-left: 1.2rem;
            position: relative;

            &::before {
                content: "💡";
                position: absolute;
                left: 0;
                top: 0;
                font-size: 0.9rem;
            }

            strong {
                color: #e65100;
                font-size: 0.95rem;
                margin-bottom: 0.2rem;
                display: inline;
            }
        }

        p {
            color: #666;
            font-size: 0.95rem;
            line-height: 1.4;
            margin: 0;
        }
    }
}

/* Seções PIN e QR melhoradas */
.pin-qr-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

/* Grid layout para seções PIN e QR */
.pin-qr-container.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.pin-section,
.qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 123, 255, 0.1);
}

.pin-label,
.qr-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #007bff;
    font-weight: 600;
    font-size: 1.1rem;

    .material-symbols-outlined {
        font-size: 1.3rem;
    }
}

/* PIN wrapper to contain both PIN and toggle icon */
.pin-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 300px;
    position: relative;
}

.pin-wrapper-user {
    display: flex;
    align-items: center;
    flex: 1;
    max-width: 500px;
    position: relative;
    margin: 0 auto 20px auto;

    .pin-user,
    .nickname {
        font-size: 2.5rem;
        font-weight: bold;
        letter-spacing: 0.5rem;
        color: #007bff;
        padding: 1rem;
        background-color: #fff;
        border: 2px dashed #007bff;
        border-radius: 4px;
        width: 100%;
        text-align: center;
        text-transform: uppercase;
    }

    .confirm-nickname {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        margin-top: 1rem;
    }

    .nickname {
        font-size: 1rem;
        min-width: 400px;
        border: 2px solid #007bff;
        text-transform: none;
    }

    .otp-input-container {
        display: flex;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }

    .otp-input {
        width: 60px;
        height: 60px;
        font-size: 2rem;
        font-weight: bold;
        color: #007bff;
        background-color: #fff;
        border: 2px solid #007bff;
        border-radius: 4px;
        text-align: center;
        text-transform: uppercase;
        padding: 0;
        transition: all 0.2s ease;
    }

    .otp-input:focus {
        outline: none;
        border-color: #0056b3;
        box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
    }
}

/* Toggle icon for PIN visibility */
.pin-toggle {
    position: absolute;
    left: 10px;
    z-index: 1;
    cursor: pointer;
    color: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.pin-toggle:hover {
    color: #0056b3;
}

.pin {
    font-size: 2.5rem;
    font-weight: bold;
    letter-spacing: 0.5rem;
    color: #007bff;
    padding: 1rem 1rem 1rem 3rem;
    /* Increased left padding for the icon */
    background-color: #fff;
    border: 2px dashed #007bff;
    border-radius: 4px;
    width: 100%;
    text-align: center;
    text-transform: uppercase;
}

.qr-code {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-code img {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    background-color: #fff;
}

/* Blur effect for QR code when PIN is hidden */
.qr-code.blur img {
    filter: blur(4px);
    transition: filter 0.3s ease;
}

.error-message {
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: #fff0f0;
    border-radius: 8px;
    border-left: 4px solid #ff3333;
    color: #ff3333;
    width: 100%;
}

.button-container {
    margin-top: 2rem;
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.btn-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: rgba(0, 0, 0, 0.06);
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.btn-back:hover {
    background-color: #5a6268;
}

.cursando {
    margin-left: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    position: relative;

    .md3-chip {
        display: flex;
        align-items: center;
        background-color: #f0f0f0;
        border-radius: 16px;
        padding: 0 8px 0 4px;
        height: 24px;
        margin-bottom: 5px;
        font-size: 12px;
        color: #333;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        transition: background-color 0.2s;

        &:hover {
            background-color: #e0e0e0;
        }

        .chip-text {
            margin-left: 4px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            max-width: 100px;
        }
    }

    .more-chip {
        background-color: #e0e0e0;
        padding: 0 4px;
        cursor: pointer;

        &:hover {
            background-color: #4d85d5;

            .avatar-cursed {
                color: white;
            }
        }

        .avatar-cursed {
            font-weight: bold;
            color: #333;
            background-color: transparent;
            border: none;
            font-size: 12px;
        }
    }

    .avatar-cursed {
        display: flex;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background-color: #ddd;
        border: 1px solid #bbb;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        color: #666;
        overflow: hidden;
        flex-shrink: 0;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
        }
    }
}

/* Regras responsivas consolidadas no final do arquivo */

/* Button container styles */
.d-flex.justify-center {
    display: flex;
    justify-content: center;
    gap: 10px;
    /* Space between buttons */
}

/* Copy button styles */
.btn-copy {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-copy:hover {
    background-color: #45a049;
}

.btn-copy .material-symbols-outlined {
    margin-right: 5px;
}

/* Link button styles */
.btn-link {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;

    &:hover {
        background-color: #0056b3;
    }
}

.btn-iniciar,
.btn-form-default {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 12px 24px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 24px;
    transition: background-color 0.3s;

    &:hover {
        background-color: #0056b3;
    }
}

.btn-form-default {
    &:hover {
        filter: brightness(120%);
        color: white;
    }
}

.btn-link .material-symbols-outlined {
    margin-right: 5px;
}

/* Button to view activities or trails */
.btn-direcionar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background-color: #36a2dc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-direcionar:hover {
    background-color: #2980b9;
    color: white;
    text-decoration: none;
}

/* Different color for "ver atividades" button */
.btn-direcionar[title="ver atividade"] {
    background-color: #f3ab40;
}

/* Container for buttons */
.buttons-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Styling for the details button */
.btn-detalhes {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background-color: #777777;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-detalhes:hover {
    background-color: #a2a2a2;
    color: white;
    text-decoration: none;
}

/* Snackbar styles */
.snackbar,
#snackbar {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 16px;
}

.snackbar.show,
#snackbar.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

/* Styles for the sequence list in view-only mode */
.sequencia-wrapper {
    margin-top: 2rem;
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    background: #f9f9f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Close button container */
.encerrado-text {
    font-size: 24px;
    font-weight: 700;
    color: #0d6efd;
    margin-bottom: 10px;
}

.close-button-container {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

/* Close button styles */
.btn-close {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #000000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.btn-close:hover {
    background-color: #c82333;
}

.btn-close:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Style for closed button */
.btn-closed {
    background-color: #6c757d;
}

.btn-closed:hover {
    background-color: #6c757d;
}

.drag-container {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Basic styling for drag items */
.drag-item {
    display: grid;
    grid-template-columns: 40px 40px 1fr auto !important;
    align-items: center;
    background: #ffffff;
    padding: 0.75rem 1rem;
    margin-bottom: 0.8rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;

    .capa {
        width: 40px;
        height: 40px;
        border-radius: 4px;
        object-fit: cover;
        margin-right: 10px;
    }

    .numero {
        font-weight: bold;
        background-color: #f0f0f0;
        border-radius: 50%;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 10px;
    }

    .tipo {
        font-weight: 500;
        color: #36a2dc;

        &[title="atividade"] {
            color: #f3ab40;
        }
    }

    .titulo {
        margin-left: 10px;
        font-weight: bold;
        flex-grow: 1;
    }
}

/* Override the grid-template-columns for view-only mode */
.pin-container .drag-item {
    grid-template-columns: 40px 40px 1fr 50px;
    cursor: default;

    &:hover {
        transform: none;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        border-color: #e0e0e0;
    }
}

/* Regra unificada de .aluno-avatar abaixo */

.drawer-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100%;
    background-color: #f8f9fa;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
    transition: width 0.3s ease;
}

.drawer-container.collapsed {
    width: 80px;
}

.drawer-container.collapsed .drawer-title,
.drawer-container.collapsed .timer-container,
.drawer-container.collapsed .alunos-list {
    display: none;
}

.drawer-container.collapsed .drawer-head {
    justify-content: center;
    border-bottom: none;
}

.drawer-container.collapsed .drawer-expand-toggle {
    margin-right: 0;
}

/* Hide the drawer container completely */
.drawer-container.hidden {
    display: none;
}

/* Make the button floating and visible when drawer is hidden */
.drawer-expand-toggle.floating {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background-color: #007bff;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin-right: 0;
}

.drawer-expand-toggle.floating:hover {
    background-color: #0056b3;
}

.drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.drawer-expand-toggle {
    background-color: transparent;
    color: #007bff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 10px;
    padding: 0;
    transition: background-color 0.2s;
}

.drawer-expand-toggle:hover {
    background-color: rgba(0, 123, 255, 0.1);
}

.drawer-title {
    font-size: 18px;
    font-weight: bold;
    flex-grow: 1;
}

.timer-container {
    display: flex;
    align-items: center;
    font-size: 11px;
}

.time-reset {
    margin-left: 4px;
    cursor: pointer;
}

.alunos-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Estilo específico para container da lista */
.alunos-list.container {
    padding: 16px;
    background: #f5f7fa;
    border-radius: 12px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.alunos-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
}

.alunos-list li:last-child {
    border-bottom: none;
}

.aluno-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #ddd;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
    border: 2px solid #bbb;
}

.aluno-nome {
    flex: 1;
}

.no-alunos {
    padding: 20px 0;
    text-align: center;
    color: #666;
}



/* Adjust margin when drawer is collapsed */
body.drawer-collapsed .pin-container {
    margin-right: 80px;
}

.inputpin-container {
    max-width: 800px;
    margin: auto;
}

.nickname-container {
    max-width: 800px;
    margin: auto;
}

/* MD3 Popover Styles */
.md3-popover {
    position: absolute;
    /* Changed from fixed to absolute to stay attached to parent when scrolling */
    z-index: 1050;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.08);
    min-width: 200px;
    max-width: 300px;
    overflow: hidden;
    animation: md3-popover-fade-in 0.2s ease-out;
}

.md3-popover-content {
    padding: 8px 0;
}

.md3-popover-header {
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.md3-popover-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 250px;
    overflow-y: auto;
}

.md3-popover-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    cursor: default;
    transition: background-color 0.2s;
}

.md3-popover-item:hover {
    background-color: #f5f5f5;
}

.md3-popover-item .avatar-cursed {
    margin-right: 12px;
    width: 16px;
    height: 16px;
    font-size: 10px;
}

.md3-popover-item .avatar-cursed img {
    max-width: 16px;
    max-height: 16px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 100px;
    border: 2px solid #bbb;
    box-sizing: content-box;
}

.md3-popover-item .popover-text {
    font-size: 14px;
    color: #333;
}

.student-details-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);

    .negative {
        color: #dc3545;
    }
}

.modal-content {
    background-color: #fff;
    /* margin: 10% auto; */
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s;
}

.modal-title-finished {
    display: flex;
    justify-content: center;
    align-content: center;
    gap: 6px;
    color: #dc3545 !important;

    span {
        margin-top: 5px;
    }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #777;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 10px 0;
}

.modal-caption {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
    margin-bottom: 20px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.modal-actions button {
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.modal-actions .btn-cancel {
    background-color: #f1f1f1;
    border: 1px solid #ddd;
    color: #333;
}

.modal-actions .btn-confirm {
    background-color: #dc3545;
    border: 1px solid #dc3545;
    color: white;
}

.modal-actions .btn-cancel:hover {
    background-color: #e5e5e5;
}

.modal-actions .btn-confirm:hover {
    background-color: #c82333;
}

.loading-spinner {
    text-align: center;
    padding: 20px;
    color: #666;
}

.students-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    max-height: 400px;
}

.student-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.student-item:last-child {
    border-bottom: none;
}

.student-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-weight: bold;
    color: #555;
    overflow: hidden;
}

.student-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-info {
    flex: 1;
}

.student-name {
    font-weight: bold;
    margin-bottom: 3px;
}

.student-status {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-completed {
    background-color: #4CAF50;
}

.status-in-progress {
    background-color: #FFC107;
}

.status-not-started {
    background-color: #a9a9a9;
}

.student-time {
    margin-left: auto;
    font-size: 0.9rem;
    color: #666;
}

.no-students {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* User Details Modal Styles */
.user-details-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.user-details {
    display: none;
}

.user-info {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    font-weight: bold;
    font-size: 24px;
    color: #555;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name-router {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;

    &[contenteditable="true"] {
        outline: 2px solid blue;
        padding: 10px;
    }
}

.user-items h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #555;
}

.items-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    max-height: 300px;
}

.item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.item:last-child {
    border-bottom: none;
}

.item-info {
    flex: 1;
}

.item-id {
    font-weight: bold;
    margin-bottom: 5px;
}

.item-status {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.item-dates {
    text-align: right;
    font-size: 0.85rem;
    color: #777;
}

.date-inicio,
.date-fim {
    margin-bottom: 3px;
}

.no-items {
    text-align: center;
    padding: 20px;
    color: #666;
}

.error-message {
    color: #dc3545;
    padding: 15px;
    background-color: #f8d7da;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* Resume Details Modal Styles */
.resume-details-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.resume-details {
    display: none;
}

.resume-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    max-height: 400px;
}

.resume-user {
    padding: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.resume-user:last-child {
    border-bottom: none;
}

.resume-user-info {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.resume-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-weight: bold;
    color: #555;
    overflow: hidden;
}

.resume-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resume-user-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.resume-user-items {
    list-style: none;
    padding: 0;
    margin: 0 0 0 55px;
}

.resume-item {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.resume-item:last-child {
    border-bottom: none;
}

.resume-item-info {
    flex: 1;
}

.resume-item-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.resume-item-status {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.resume-item-dates {
    text-align: right;
    font-size: 0.85rem;
    color: #777;
}

.no-users {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* User action buttons */
.user-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Make the btn-details-user clickable */
.block-line-user {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Regra base para btn-details-user */
.btn-details-user {
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;

    span {
        margin: 0 !important;
    }

    .material-symbols-outlined {
        color: #007bff;
        transition: transform 0.2s;
    }
}

/* Estilo padrão */
.btn-details-user {
    padding: 10px;
    border-radius: 4px;
}

.btn-details-user:hover {
    background-color: #f0f0f0;
}

/* Estilo para ranking-user */
.ranking-user .btn-details-user {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0;
}

.ranking-user .btn-details-user:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.1);
}

/* Estilo para aside */
.alunos-aside .btn-details-user {
    background: rgba(128, 200, 255, 0.15);
    color: white;
}

.alunos-aside .btn-details-user:hover {
    transform: scale(1.1);
}

/* Analytics button styles */
.btn-analytics-user {
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    /* padding: 10px; */
    border-radius: 50%;
    background-color: #e3f2fd;
    border: none;
    width: 36px;
    height: 36px;
    justify-content: center;
}

.btn-analytics-user:hover {
    background-color: #bbdefb;
}

.btn-analytics-user .material-symbols-outlined {
    color: #1976d2;
    transition: transform 0.2s;
}

/* Enhanced resume buttons */
.view-resume-aplicacation,
.view-analytics-comparative {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-block;
}

.view-resume-aplicacation {
    background: #e0e0e0;
    color: #333;
}

.view-resume-aplicacation:hover {
    background: #d0d0d0;
}

.view-analytics-comparative {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.view-analytics-comparative:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Trilha hierarchy in sequencia-list */
.trilha-item {
    background: #f0f8ff;
    border-left: 4px solid #2196f3;
}

.trilha-counter {
    font-size: 0.8em;
    color: #666;
    margin-left: 8px;
}

.trilha-toggle {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 8px;
    padding: 4px;
    border-radius: 50%;
    transition: background 0.2s;
}

.trilha-toggle:hover {
    background: rgba(33, 150, 243, 0.1);
}

.trilha-toggle .material-symbols-outlined {
    font-size: 18px;
    color: #2196f3;
}

.trilha-internal-activities {
    margin-left: 20px;
    border-left: 2px solid #e0e0e0;
    padding-left: 16px;
}

.internal-activity-item {
    background: #fafbfc;
    border: 1px solid #e0e0e0;
    margin-bottom: 8px;
    border-radius: 8px;
    padding: 12px;
}

.internal-activity-item:hover {
    background: #f0f4f8;
}

.internal-numero {
    font-size: 0.9em;
    color: #666;
}

.internal-capa {
    width: 40px;
    height: 40px;
}

.internal-titulo {
    font-size: 0.9em;
    color: #555;
}

.internal-btn {
    font-size: 0.8em;
    padding: 6px 12px;
}

.internal-tipo {
    font-size: 0.8em;
}

@keyframes md3-popover-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Regras responsivas consolidadas no final do arquivo */

/* Styles for roteiro-info-encerrado statistics */
.roteiro-info-encerrado {
    margin: 2rem 0 1rem 0;
    width: 100%;
    padding: 1.5rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.roteiro-stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    border-radius: 12px;
    border: 1px solid rgba(0, 123, 255, 0.1);
    min-width: 200px;
    flex: 1;
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 50%;
    color: white;
    font-size: 24px;
}

.stat-icon .material-symbols-outlined {
    font-size: 24px;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.stat-percentage {
    font-size: 0.8rem;
    color: #28a745;
    font-weight: 600;
}

/* Regras responsivas consolidadas no final do arquivo */

.btn-resume-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}


main.content {
    padding: 0 !important;
}




/* Layout Principal - Roteiro Aplicação */
.roteiro-aplicacao-layout {
    display: flex;
    min-height: 100vh;
    height: 100vh;
}

/* Conteúdo Principal */
.roteiro-aplicacao-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* Permite que o flex item encolha */
    overflow-y: auto;
}

/* Aside de Alunos Fixo */
.alunos-aside {
    width: 360px;
    min-width: 360px;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.alunos-aside-header {
    padding: 20px 16px 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e1e1e1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
}

.alunos-aside-title {
    color: rgb(0, 0, 0);
    font-weight: 700;
    font-size: 18px;
}



.time-reset {
    font-weight: 600;
    color: #FFD700;
    font-size: 14px;
}

.alunos-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
}

/* Ajustes para a lista de alunos no aside */
.alunos-aside .alunos-list {
    padding: 0 16px;
    background: transparent;
    max-height: none;
}

/* Regras unificadas acima */

.alunos-aside .aluno-nome {
    color: rgb(0, 0, 0);
}

.alunos-aside .stat-coins {
    background: rgba(255, 215, 0, 0.2);
    /* border: 1px solid rgba(255, 215, 0, 0.3); */
}

.alunos-aside .stat-activities {
    background: #fff;
    /* border: 1px solid #bababa; */
    color: #757575;
}

.alunos-aside .stat-efficiency {
    background: rgba(76, 175, 80, 0.2);
    /* border: 1px solid rgba(76, 175, 80, 0.3); */
    color: #4CAF50;
}

/* Ajustes para posições de ranking no aside */




/* Botões de ação no aside - regras unificadas acima */

/* Ajustes para o conteúdo principal */
.roteiro-aplicacao-main .pin-container {
    max-width: 100%;
    padding: 20px;
}

/* Efeitos especiais para primeiros colocados no aside */
.alunos-aside .ranking-user:first-child {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.1));
    border-color: rgba(255, 217, 0, 0.752);
    /* box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); */
}

.alunos-aside .ranking-user:nth-child(2) {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.2), rgba(169, 169, 169, 0.1));
    border-color: rgba(192, 192, 192, 0.793);
    /* box-shadow: 0 0 20px rgba(192, 192, 192, 0.3); */
}

.alunos-aside .ranking-user:nth-child(3) {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.2), rgba(184, 134, 11, 0.1));
    border-color: rgba(205, 128, 50, 0.593);
    /* box-shadow: 0 0 20px rgba(205, 127, 50, 0.3); */
}

/* Loading state */
.alunos-aside .no-alunos {
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

/* Responsividade */
@media (max-width: 1200px) {
    .alunos-aside {
        width: 320px;
        min-width: 320px;
    }

    .alunos-aside .ranking-user {
        padding: 10px 12px;
    }

    .alunos-aside-header {
        padding: 16px 12px 12px;
    }

    .alunos-aside-title {
        font-size: 16px;
    }
}

/* Regras responsivas consolidadas no final do arquivo */

/* Scroll customizado para o aside */
.alunos-content::-webkit-scrollbar {
    width: 6px;
}

.alunos-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.alunos-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.alunos-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}



/* Indicador de atualização */
.alunos-aside.updating .alunos-aside-title::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4CAF50;
    margin-left: 8px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: scale(0.8);
        opacity: 1;
    }
}

/* Accessibility */
.alunos-aside:focus-within {
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.25);
}

.alunos-aside .btn-details-user:focus,
.alunos-aside .btn-analytics-user:focus {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}





/* Ranking de Alunos - Roteiro Aplicação */

.alunos-aside {

    /* Layout da lista de alunos com ranking - Regra base */
    .ranking-user {
        display: flex !important;
        align-items: center;
        padding: 12px 16px !important;
        margin-bottom: 8px;
        background: white;
        border-radius: 12px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        border: 1px solid #757575;
    }

    .ranking-user:hover {
        transform: translateY(-2px);
    }

    /* Estilo específico para aside */
    .alunos-aside .ranking-user {
        border: 1px solid #757575;
        backdrop-filter: blur(5px);
        margin-bottom: 12px;
    }

    .alunos-aside .ranking-user:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    }

    /* Posição no ranking */
    .ranking-position {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 14px;
        margin-right: 12px;
        flex-shrink: 0;
        border: 2px solid transparent;
    }

    .ranking-position.gold {
        background: linear-gradient(135deg, #ffe75f, #FFA500);
        color: #8B4513;
        box-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
        border-color: #FFD700;
    }

    .ranking-position.silver {
        background: linear-gradient(135deg, #dfe1e1, #A9A9A9);
        color: #2F4F4F;
        box-shadow: 0 2px 8px rgba(192, 192, 192, 0.5);
        border-color: #C0C0C0;
    }

    .ranking-position.bronze {
        background: linear-gradient(135deg, #e2b990, #d07d00);
        color: white;
        box-shadow: 0 2px 8px rgba(205, 127, 50, 0.5);
        border-color: #CD7F32;
    }

    .ranking-position.other {
        background: #ffffff;
        color: #757575;
        border: 1px solid #757575;
    }


    .ranking-user-container {
        display: flex;
        align-items: center;
        gap: 5px;
        margin-bottom: 5px;
    }


    /* Avatar do aluno */
    .ranking-user .aluno-avatar {
        width: 36px !important;
        height: 36px !important;
        border-radius: 50%;
        margin-right: 0px;
        overflow: hidden;
        border: 3px solid rgba(102, 126, 234, 0.2);
        flex-shrink: 0;
        background: #f0f2f5;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        color: #667eea;
        font-size: 16px;
    }

    .ranking-user.gold .aluno-avatar {
        border-color: rgba(255, 215, 0, 0.5);
    }

    .ranking-user.silver .aluno-avatar {
        border-color: rgba(192, 192, 192, 0.5);
    }

    .ranking-user.bronze .aluno-avatar {
        border-color: rgba(205, 127, 50, 0.5);
    }

    /* Informações do aluno */
    .aluno-info {
        flex: 1;
        min-width: 0;
    }

    .aluno-nome {
        font-weight: 600;
        font-size: 16px;
        color: #333;
        margin-bottom: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .aluno-stats {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        font-size: 12px;
        color: #666;
    }

    .stat-coins {
        display: flex;
        align-items: center;
        gap: 2px;
        color: #b19700;
        font-weight: 600;
        background: rgba(255, 215, 0, 0.1);
        padding: 2px 6px;
        border-radius: 12px;
    }

    .stat-coins .material-symbols-outlined {
        font-size: 14px;
    }

    .stat-activities {
        color: #667eea;
        background: rgba(102, 126, 234, 0.1);
        padding: 2px 6px;
        border-radius: 12px;
        font-weight: 500;
    }

    .stat-efficiency {
        color: #4CAF50;
        background: rgba(76, 175, 80, 0.1);
        padding: 2px 6px;
        border-radius: 12px;
        font-weight: 500;
    }

    /* Ações do usuário */
    .ranking-user .user-actions {
        display: flex;
        gap: 8px;
        flex-shrink: 0;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
    }

    /* Regras de btn-details-user unificadas acima */

    /* Efeitos especiais para os primeiros colocados */
    .ranking-user:first-child {
        background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.05));
        border: 1px solid rgba(255, 215, 0, 0.3);
    }

    .ranking-user:nth-child(2) {
        background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), rgba(169, 169, 169, 0.05));
        border: 1px solid rgba(192, 192, 192, 0.3);
    }

    .ranking-user:nth-child(3) {
        background: linear-gradient(135deg, rgba(205, 127, 50, 0.1), rgba(184, 134, 11, 0.05));
        border: 1px solid rgba(205, 127, 50, 0.3);
    }

    /* Regras responsivas consolidadas no final do arquivo */



    /* Estados especiais */
    .ranking-user.new-entry {
        animation: highlightNew 2s ease-out;
    }

    @keyframes highlightNew {
        0% {
            background: rgba(76, 175, 80, 0.2);
            transform: scale(1.02);
        }

        100% {
            background: white;
            transform: scale(1);
        }
    }

    .ranking-user.position-up {
        animation: highlightUp 2s ease-out;
    }

    @keyframes highlightUp {
        0% {
            background: rgba(76, 175, 80, 0.2);
            /* box-shadow: 0 0 20px rgba(76, 175, 80, 0.3); */
        }

        100% {
            background: white;
            /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
        }
    }

    .ranking-user.position-down {
        animation: highlightDown 2s ease-out;
    }

    @keyframes highlightDown {
        0% {
            background: rgba(244, 67, 54, 0.2);
            /* box-shadow: 0 0 20px rgba(244, 67, 54, 0.3); */
        }

        100% {
            background: white;
            /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
        }
    }

    /* Container da lista - regra unificada acima */

    /* Título da seção */
    .drawer-title {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 600;
        color: #333;
    }

    .drawer-title::before {
        content: "🏆";
        font-size: 18px;
    }

    /* Scroll customizado */
    .alunos-list::-webkit-scrollbar {
        width: 6px;
    }

    .alunos-list::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 3px;
    }

    .alunos-list::-webkit-scrollbar-thumb {
        background: rgba(102, 126, 234, 0.3);
        border-radius: 3px;
    }

    .alunos-list::-webkit-scrollbar-thumb:hover {
        background: rgba(102, 126, 234, 0.5);
    }


    .alunos-list li:last-child{
        border-bottom: 1px solid #757575;
    }

}

/* ========================================
   REGRAS RESPONSIVAS CONSOLIDADAS
   ======================================== */

/* Tablet e mobile (768px e abaixo) */
@media (max-width: 768px) {

    /* Layout principal */
    .pin-container {
        padding: 1rem;
    }

    .roteiro-aplicacao-layout {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .roteiro-aplicacao-main {
        order: 1;
        flex: none;
        height: auto;
        min-height: auto;
    }

    .roteiro-aplicacao-main .pin-container {
        padding: 16px;
    }

    .alunos-aside {
        order: 2;
        min-width: 100%;
        max-width: 100%;
        width: 100% !important;
        height: auto;
        max-height: unset;
        height: unset;
        width: 100%;
        position: relative;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    }

    /* PIN e QR */
    .pin-qr-container {
        flex-direction: column;
        gap: 15px;
    }

    .pin-qr-container.grid-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .pin-wrapper {
        max-width: 100%;
        width: 100%;
    }

    .pin {
        font-size: 2rem;
        letter-spacing: 0.3rem;
        margin-bottom: 0;
        padding: 1rem 1rem 1rem 2.5rem;
    }

    .pin-toggle {
        left: 8px;
    }

    .qr-code img {
        max-width: 120px;
        height: auto;
    }

    /* Instruções */
    .instruction-steps {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Botões */
    .d-flex.justify-center {
        flex-direction: column;
        align-items: center;
    }

    .btn-copy,
    .btn-link {
        width: 100%;
        max-width: 300px;
    }

    /* OTP inputs */
    .pin-wrapper-user .otp-input-container {
        gap: 6px;
    }

    .pin-wrapper-user .otp-input {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    /* Drawer */
    .drawer-container {
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .drawer-container.open {
        transform: translateX(0);
    }

    .pin-container {
        margin-right: 0;
    }

    .drawer-toggle-alunos {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1001;
        background-color: #007bff;
        color: white;
        border: none;
        border-radius: 50%;
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    /* Drag items */
    .drag-item {
        display: flex;
        flex-direction: column;
        padding: 0.5rem;
        gap: 5px;
    }

    .drag-item .capa {
        width: 30px;
        height: 30px;
        margin-right: 5px;
    }

    .drag-item .numero {
        width: 20px;
        height: 20px;
        font-size: 12px;
        margin-right: 5px;
    }

    .drag-item .titulo {
        margin-left: 5px;
        font-size: 14px;
    }

    .pin-container .drag-item {
        grid-template-columns: 30px 30px 1fr !important;
    }

    .buttons-container {
        display: flex;
        flex-direction: column;
        gap: 5px;
        margin-top: 8px;
        grid-column: 1 / -1;
    }

    .btn-direcionar,
    .btn-detalhes {
        font-size: 12px;
        padding: 4px 8px;
    }

    /* Ranking users */
    .ranking-user {
        padding: 10px 12px !important;
    }

    .ranking-position {
        width: 32px;
        height: 32px;
        font-size: 12px;
        margin-right: 10px;
    }

    .ranking-user .aluno-avatar {
        width: 40px !important;
        height: 40px !important;
        margin-right: 10px;
        font-size: 14px;
    }

    .aluno-nome {
        font-size: 14px;
    }

    .aluno-stats {
        font-size: 11px;
        gap: 6px;
    }

    .ranking-user .btn-details-user,
    .ranking-user .btn-analytics-user {
        width: 32px;
        height: 32px;
    }

    /* Aside específico */
    .alunos-aside .ranking-user {
        padding: 10px 12px;
    }

    .alunos-aside-header {
        padding: 16px 12px 12px;
    }

    .alunos-aside-title {
        font-size: 16px;
    }

    .alunos-aside .alunos-list {
        padding: 0 12px;
    }

    /* Estatísticas */
    .roteiro-stats-container {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-item {
        min-width: auto;
    }
}

/* Mobile pequeno (480px e abaixo) */
@media (max-width: 480px) {
    .roteiro-aplicacao-layout {
        min-height: 100vh;
    }

    .alunos-aside {
        max-height: unset;
        height: unset;
        width: 100%;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }

    .alunos-aside .ranking-user {
        padding: 8px 10px;
    }

    .alunos-aside .ranking-position {
        width: 28px;
        height: 28px;
        font-size: 12px;
        margin-right: 8px;
    }

    .alunos-aside .aluno-avatar {
        width: 36px !important;
        height: 36px !important;
        margin-right: 8px;
    }

    .alunos-aside .aluno-nome {
        font-size: 14px;
    }

    .alunos-aside .aluno-stats {
        font-size: 11px;
        gap: 4px;
    }

    .ranking-user {
        flex-wrap: wrap;
        padding: 8px 10px !important;
    }

    .aluno-stats {
        flex-basis: 100%;
        margin-top: 4px;
        justify-content: flex-start;
    }

    .ranking-user .user-actions {
        gap: 6px;
    }

    .pin-container {
        padding: 12px;
    }
}

/* Desktop grande (1200px e abaixo) */
@media (max-width: 1200px) {
    .alunos-aside {
        width: 320px;
        min-width: 320px;
    }

    .alunos-aside .ranking-user {
        padding: 10px 12px;
    }

    .alunos-aside-header {
        padding: 16px 12px 12px;
    }

    .alunos-aside-title {
        font-size: 16px;
    }
}