/*==================================================
DASHBOARD DEL LECTOR
==================================================*/

#reader-dashboard-button {
    position: fixed;
    right: 20px;
    bottom: 90px;
    width: 58px;
    height: 58px;
    border: none;
    border-radius: 50%;
    background: #00afef;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(0, 175, 239, .35);
    z-index: 9999;
    transition: .3s;
}

#reader-dashboard-button:hover {
    transform: translateY(-4px) scale(1.05);
}

#dashboard-lector {
    position: fixed;
    top: 0;
    right: -430px;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: #ffffff;
    box-shadow: -25px 0 70px rgba(0, 0, 0, .18);
    z-index: 9998;
    transition: .45s;
    overflow-y: auto;
}

#dashboard-lector.open {
    right: 0;
}

.reader-card {
    margin: 25px;
    border-radius: 24px;
    background: linear-gradient(135deg, #00afef, #008fd0);
    color: #fff;
    padding: 30px;
}

.reader-card h3 {
    margin-bottom: 5px;
    font-size: 1.6rem;
}

.reader-card small {
    opacity: .85;
}

.reader-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    font-size: 15px;
}

.reader-progress {
    margin-top: 25px;
}

.reader-progress-bar {
    height: 10px;
    border-radius: 999px;
    background: #dbeafe;
    overflow: hidden;
}

.reader-progress-fill {
    height: 100%;
    background: #00afef;
    width: 0;
    transition: .8s;
}

.reader-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 25px;
}

.reader-badge {
    background: #f1f5f9;
    color: #00afef;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.reader-next {
    margin: 25px;
    padding: 20px;
    border-radius: 18px;
    background: #f8fafc;
    color: #00afef;
}

.reader-close {
    position: absolute;
    right: 18px;
    top: 18px;
    border: none;
    background: none;
    font-size: 22px;
    cursor: pointer;
}

@media(max-width:600px) {
    #dashboard-lector {
        width: 100%;
    }
}