/* ---------------------------------------------------------
   CUSTOM PREMIUM DASHBOARD DESIGN
   Clean, modern, bookstore-style layout
--------------------------------------------------------- */

/* Wrapper */
.custom-dashboard {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-top: 20px;
    padding-bottom: 40px;
}

/* ---------------------------------------------------------
   CARD STYLE
--------------------------------------------------------- */
.custom-card {
    background: #ffffff;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border: 1px solid #f1f1f1;
}

.custom-card-title {
    font-size: 1.7rem;
    margin-bottom: 25px;
    font-weight: 700;
    color: #222;
    letter-spacing: -0.5px;
}

/* ---------------------------------------------------------
   CONTINUE READING HERO
--------------------------------------------------------- */
.custom-continue {
    background: linear-gradient(135deg, #fdf7ff, #f0f7ff);
    border: none;
}

.custom-continue .book-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.custom-continue .book-thumb img {
    width: 180px !important;
    height: 260px !important;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    transition: transform .25s ease;
}

.custom-continue .book-thumb img:hover {
    transform: scale(1.05);
}

/* ---------------------------------------------------------
   STATS ROW
--------------------------------------------------------- */
.custom-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px !important;
}

.custom-stat-item {
    background: #fafafa;
    padding: 25px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.06);
    border: 1px solid #eee;
}

.custom-stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #6a4ae3;
}

.custom-stat-label {
    font-size: 1rem;
    color: #666;
    margin-top: 6px;
}

/* ---------------------------------------------------------
   LIBRARY GRID
--------------------------------------------------------- */
.custom-library-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 30px !important;
}

.custom-library-item {
    text-align: center;
}

/* Consistent cover sizes */
.custom-library-item .book-thumb img,
.custom-recommend-item .recommend-thumb img {
    width: 100% !important;
    height: 230px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    transition: transform .25s ease, box-shadow .25s ease;
}

.custom-library-item .book-thumb img:hover,
.custom-recommend-item .recommend-thumb img:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.custom-library-progress {
    margin-top: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #444;
}

/* ---------------------------------------------------------
   RECOMMENDED GRID
--------------------------------------------------------- */
.custom-recommend-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 30px !important;
}

.custom-recommend-item {
    text-align: center;
}

.custom-recommend-title {
    margin-top: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

/* ---------------------------------------------------------
   OPTIONAL BOOKSHELF BACKGROUND
--------------------------------------------------------- */
.custom-library {
    background: none;
    background-size: contain;
    padding-bottom: 60px;
    border-radius: 18px;
}

/* ---------------------------------------------------------
   RESUME MODAL (DearFlip)
--------------------------------------------------------- */

.reading-resume-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.reading-resume-modal {
    background: #ffffff;
    padding: 20px 24px;
    border-radius: 6px;
    max-width: 320px;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.reading-resume-modal h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.reading-resume-modal p {
    margin: 0 0 16px;
    font-size: 0.95rem;
}

.reading-resume-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.reading-resume-buttons button {
    padding: 6px 14px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.reading-resume-buttons .btn-resume {
    background: #0073aa;
    color: #fff;
}

.reading-resume-buttons .btn-start-over {
    background: #e0e0e0;
    color: #333;
}

