/* 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: 1.5rem;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;

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

/* Container for PIN and QR code */
.pin-qr-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

/* 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%;
        }
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pin-container {
        padding: 1rem;
    }

    .pin-qr-container {
        flex-direction: column;
        gap: 15px;
    }

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

    .pin {
        font-size: 2rem;
        letter-spacing: 0.3rem;
        margin-bottom: 0;
        padding: 1rem 1rem 1rem 2.5rem; /* Slightly reduced left padding for mobile */
    }

    .pin-toggle {
        left: 8px; /* Adjust position for mobile */
    }

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

    .pin-wrapper-user .otp-input-container {
        gap: 6px;
    }

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

/* 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;
}

/* 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;
    }
}

.aluno-avatar {
    border: 2px solid #bbb;
}

.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;
}

.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;
}

.aluno-nome {
    flex: 1;
}

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

/* Adjust the main container to make room for the drawer */
.pin-container {
    margin-right: 300px;
    transition: margin-right 0.3s ease;
}

/* 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;
}

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

.btn-details-user {
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 4px;

    span {
        margin: 0 !important;
    }
}

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

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

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

@media (max-width: 1020px) {
    .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);
    }

    /* Responsive styles for drag-item */
    .drag-item {
        display: flex;
        flex-direction: column;
        padding: 0.5rem;
        gap: 5px;

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

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

        .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;
    }
}
