/* ========================================
   Truyen Manager - Widget Styles
   ======================================== */

/* ========================================
   Book List Widget
   ======================================== */
.tm-book-list-widget .tm-book-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tm-book-list-widget .tm-book-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.tm-book-list-widget .tm-book-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tm-book-list-widget .tm-book-list li.current-book {
    background: #f9f9f9;
    padding: 8px;
    margin-left: -8px;
    margin-right: -8px;
    border-radius: 4px;
}

.tm-book-list-widget .tm-book-list li.current-book a {
    font-weight: bold;
    color: #0073aa;
}

.tm-book-list-widget .tm-book-list a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
    display: inline-block;
}

.tm-book-list-widget .tm-book-list a:hover {
    color: #0073aa;
}

.tm-book-list-widget .tm-chapter-count {
    color: #999;
    font-size: 0.9em;
    font-weight: normal;
}

/* ========================================
   Chapter List Widget
   ======================================== */
.tm-chapter-list-widget .tm-chapter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tm-chapter-list-widget .tm-chapter-list li {
    margin-bottom: 10px;
    padding-left: 18px;
    position: relative;
}

.tm-chapter-list-widget .tm-chapter-list li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #999;
    font-size: 12px;
    top: 2px;
}

.tm-chapter-list-widget .tm-chapter-list li.current-chapter {
    background: #f0f7ff;
    padding: 6px 6px 6px 18px;
    margin-left: -6px;
    margin-right: -6px;
    border-radius: 4px;
}

.tm-chapter-list-widget .tm-chapter-list li.current-chapter:before {
    color: #0073aa;
    font-weight: bold;
}

.tm-chapter-list-widget .tm-chapter-list li.current-chapter a {
    font-weight: bold;
    color: #0073aa;
}

.tm-chapter-list-widget .tm-chapter-list a {
    text-decoration: none;
    color: #555;
    transition: color 0.3s ease;
}

.tm-chapter-list-widget .tm-chapter-list a:hover {
    color: #0073aa;
}

.tm-chapter-list-widget .tm-chapter-date {
    color: #999;
    font-size: 0.85em;
    display: inline-block;
    margin-left: 5px;
}

.tm-chapter-list-widget .tm-chapter-count-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    color: #666;
    font-size: 0.9em;
    font-weight: 600;
    text-align: center;
}

/* ========================================
   No Content Messages
   ======================================== */
.tm-no-books,
.tm-no-chapters,
.tm-no-book {
    color: #999;
    font-style: italic;
    margin: 0;
    padding: 10px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 4px;
}

/* ========================================
   Responsive Styles
   ======================================== */
@media screen and (max-width: 768px) {
    .tm-book-list-widget .tm-book-list li {
        margin-bottom: 10px;
        padding-bottom: 10px;
    }
    
    .tm-chapter-list-widget .tm-chapter-list li {
        margin-bottom: 8px;
    }
    
    .tm-chapter-list-widget .tm-chapter-date {
        display: block;
        margin-left: 0;
        margin-top: 3px;
    }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .tm-book-list-widget,
    .tm-chapter-list-widget {
        display: none;
    }
}
