/* Dashboard Container */
.dashboard {
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-left: auto;
    gap: 2rem;
    color: var(--text-secondary-color);
    padding: var(--margin-top) 2rem 0 2rem;
    position: relative;
}

/* Stats Section */
.dashboard__stats {
    width: 420px;
    min-width: 350px;
    background-color: var(--dashboard-bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all var(--transition-duration) var(--transition-ease);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dashboard__title {
    padding: calc(1.5rem + 2px) 2rem;
    position: relative;
    margin-bottom: var(--margin-top);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    background: linear-gradient(to right, rgba(255, 140, 0, 0.05), transparent);
    overflow: hidden;
}

.dashboard__title::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    border-radius: var(--border-radius);
    background: linear-gradient(90deg, var(--dashboard-accent-color) 0%, rgba(255, 140, 0, 0.1) 100%);
}

.dashboard__title::after {
    content: '';
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--dashboard-accent-color), transparent);
    opacity: 0.2;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'%3E%3C/rect%3E%3Crect x='14' y='3' width='7' height='7'%3E%3C/rect%3E%3Crect x='14' y='14' width='7' height='7'%3E%3C/rect%3E%3Crect x='3' y='14' width='7' height='7'%3E%3C/rect%3E%3C/svg%3E") center/contain no-repeat;
}

.dashboard__title h1 {
    color: var(--text-color);
    text-align: left;
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dashboard__title h1::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: linear-gradient(45deg, var(--dashboard-accent-color), var(--dashboard-accent-hover));
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'%3E%3C/path%3E%3Cpolyline points='9 22 9 12 15 12 15 22'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
}

.dashboard__title h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--dashboard-accent-color);
    border-radius: 2px;
}

.dashboard__stats-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1;
    border-radius: var(--border-radius);
}

/* Author Avatar Section */
.dashboard__author-avatar {
    position: relative;
    margin: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.author-avatar {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 320px;
    height: 100%;
    overflow: hidden;
}

.dashboard-avatar {
    width: 100%;
    max-width: 320px;
    height: 500px;
    object-fit: cover;
    border-radius: 12px; 
    object-position: center;   
    background-color: var(--navbar-bg-color);
    box-shadow: var(--box-shadow);
}

.curve {
    position: absolute;
    max-width: 320px;
    z-index: 2;
    width: 100%;
    height: 100%;
    top: 0;
    pointer-events: none;
}

.curve-overly {
    position: relative;
    height: 100%;
    width: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M25 0 C 45 15, 15 75, 25 100 L 100 100 L 100 0 Z' fill='rgba(255,140,0,0.2)' stroke='%23ff8c00' stroke-width='1'/%3E%3C/svg%3E");
    background-size: cover;
    background-repeat: no-repeat;
    backdrop-filter: blur(3px);
}

.dashboard_auhtor_name {
    position: absolute;
    z-index: 2;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    height: 16%;
    width: 100%;
    padding: var(--margin-top);
    background-color: var(--dashboard-author-name-bg);
}

.dashboard-name {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    gap: 0.75rem;
    text-wrap: nowrap;
}

.dahsboard-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 165, 0, 0.6);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    box-shadow: var(--box-shadow);
}

.dahsboard-avatar_profile {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-name h2 {
    font-size: 1.5rem;
    display: flex;
    flex-direction: column;
    color: var(--text-secondary-color);
    font-weight: 500;
    letter-spacing: 0.3px;
    margin: 0;
}

.dashboard-name h2 span {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-left: auto;
    font-weight: 400;
    position: relative;
    padding-left: 0.5rem;
}

.dashboard-name h2 span::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 70%;
    background: rgba(255, 165, 0, 0.6);
}

/* Stats Items */
.dashboard_stat-item {
    position: absolute;
    display: flex;
    text-wrap: nowrap;
    align-items: flex-end;
    width: 50%;
    flex-direction: column;
    justify-content: flex-end;
    right: 0;
    padding: 0 0.2rem 0.7rem;
    height: 90%;
    gap: 1.3rem;
}

.stat-item {
    display: flex;
    padding: 0.3rem 0.5rem;
    cursor: pointer;
    gap: 0.5rem;
    flex-direction: row;
    z-index: 2;
    border-radius: 0.5rem;
    align-items: center;
    background: var(--dashboard-stat-bg);
    color: var(--text-color);
    transition: all 0.2s var(--transition-ease);
}

.stat-item i {
    color: var(--hover-bg-color);
    font-size: 1rem;
    width: 1.2rem;
    text-shadow: 0 0 10px rgba(255, 166, 23, 0.3);
}

.stat-item h3 {
    font-size: 1rem;
    font-weight: 450;
    margin: 0;
    padding: 0;
}

.stat-item p {
    font-size: 1.1rem;
    margin: 0;
}

.stat-item:hover i {
    transform: scale(1.1);
}

/* Author Rating */
.author_overall_rating {
    max-width: 320px;
    width: 100%;
    align-items: center;
    justify-content: center;
    display: flex;
}

.dashboard__rating {
    font-size: 1.3rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 0.9rem;
    gap: 0.3rem;
}

.dashboard__rating .novel_review_count {
    display: flex;
    flex-direction: row;
    position: relative;
    color: var(--novel-metric-icon);
    gap: 251;
    align-items: center;
    justify-content: center;
}

.dashboard__rating .novel_review_count.disabled {
    color: var(--text-secondary-color);
}

.rating-info-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    background: var(--novel-metric-icon);
    color: var(--navbar-bg-color);
    font-size: 12px;
    margin: 0 3px 0 5px;
    cursor: help;
    position: relative;
    font-weight: 400;
}

.rating-info-tooltip {
    visibility: hidden;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    background: var(--navbar-bg-color);
    border: 1px solid var(--novel-metric-icon);
    border-radius: 4px;
    padding: 12px;
    font-size: 14px;
    color: var(--text-color);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.2);
    z-index: 1000;
    text-align: left;
    margin-bottom: 8px;
}

.rating-info-icon:hover .rating-info-tooltip {
    visibility: visible;
}

.rating-info-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--navbar-bg-color) transparent transparent transparent;
}

.rating-info-tooltip strong {
    color: var(--novel-metric-icon);
}

/* Author Stats */
.dashboard__author-stats {
    padding: 0 1rem;
    color: var(--text-color);
    border-top: solid 2px var(--dashboard-border-color);
}

.dashboard__author-stats.empty {
    justify-content: center;
    border-top: none;
}

.collapsible-stats {
    background: var(--navbar-bg-color);
    border-radius: 8px;
    margin: var(--margin-top) 0;
    overflow: hidden;
}

.stats-header {
    width: 100%;
}

.toggle-stats {
    width: 100%;
    padding: var(--margin-top);
    background: var(--dashboard-stats-toggle-bg);
    border: none;
    color: var(--text-secondary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    transition: background-color 0.2s var(--transition-ease);
}

.toggle-stats:hover {
    background: var(--dashboard-stats-toggle-hover);
}

.arrow-icon {
    margin-left: auto;
    transition: transform var(--transition-duration) var(--transition-ease);
}

.stats-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.collapsible-stats.active .arrow-icon {
    transform: rotate(180deg);
}

.collapsible-stats.active .stats-content {
    max-height: 2000px;
    transition: max-height 0.5s ease-in;
}

.author_needed_data {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: var(--margin-top);
}

.needed_data {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
    background-color: var(--dashboard-stats-bg);
    border-radius: 8px;
    padding: 15px;
    position: relative;
    border: 1px solid var(--dashboard-border-color);
}

.needed_data i {
    color: var(--novel-metric-icon);
    margin-right: 0;
    font-size: 1.2em;
    width: 20px;
    text-align: center;
}

.needed_data h3 {
    display: flex;
    text-align: center;
    align-items: center;
    font-size: 1rem;
    color: var(--novel-metric-icon);
    margin: 0;
    font-weight: 500;
}

.needed_data p {
    color: var(--text-color);
    font-size: 1.1rem;
    margin: 0;
    text-align: center;
}

.needed_data p a {
    color: var(--novel-metric-icon);
    text-decoration: none;
    transition: all 0.2s var(--transition-ease);
}

.needed_data p a:hover {
    color: var(--tag-hover-color);
    text-decoration: underline;
}

.needed_data p a:first-of-type::before {
    content: "Novel: ";
    color: #808080;
    font-style: italic;
}

.needed_data p a:last-of-type {
    font-style: italic;
}

/* Novels Section */
.dashboard__novels {
    width: 70%;
    min-height: 320px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    background-color: var(--dashboard-content-bg);
}

.dashboard__novels-header {
    display: flex;
    align-items: center;
    flex-direction: row;
    text-wrap: nowrap;
    height: 100px;
    width: 100%;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    padding: 1.5rem 2rem;
    gap: 2rem;
    border-bottom: 2px solid var(--dashboard-border-color);
}

.dashboard__novels-title h1 {
    color: var(--text-color);
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    position: relative;
}

.dashboard__novels-title h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--dashboard-accent-color);
    border-radius: 2px;
}

.both_add_sort_containers {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.add-novel-btn {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.5rem;
    background-color: var(--dashboard-accent-color);
    color: var(--text-dark-light-color);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s var(--transition-ease);
}

.add-novel-btn:hover {
    background-color: var(--dashboard-accent-hover);
}

.add-novel-btn i {
    font-size: 1.2rem;
}

.dashboard__novels-sort {
    position: relative;
}

.sort-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--dashboard-button-bg);
    color: var(--text-color);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s var(--transition-ease);
}

.current-sort {
    color: var(--dashboard-accent-color);
    margin-left: 4px;
    font-weight: 500;
}

.sort-btn:hover {
    background-color: var(--dashboard-button-hover);
}

.sort-btn i {
    font-size: 1.2rem;
}

.sort-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--dashboard-modal-bg);
    border-radius: 8px;
    padding: 0.5rem;
    min-width: 180px;
    box-shadow: var(--box-shadow);
    display: none;
    z-index: 1000;
}

.sort-dropdown.active {
    display: block;
}

.sort-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.2s var(--transition-ease);
    border-radius: 6px;
}

.sort-option:hover {
    background-color: var(--dashboard-button-bg);
}

.sort-option i {
    font-size: 1.1rem;
    color: var(--dashboard-accent-color);
}

.sort-option.active {
    background-color: var(--dashboard-accent-color);
}

.sort-option.active i {
    color: var(--text-color);
}

/* Novels Grid */
.dashboard__novels-grid {
    list-style-type: none;
    background-color: var(--dashboard-content-bg);
    padding: 1em;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    border-radius: 0 0 23px 23px;
    width: 100%;
}

.dashboard__novel-item {
    display: flex;
    background-color: var(--dashboard-item-bg);
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--search-result-shadow);
    transition: transform var(--transition-duration) var(--transition-ease), background-color var(--transition-duration) var(--transition-ease);
}

.dashboard__novel-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    padding: 1.2em 1rem 0;
    gap: 0.5em;
}

.dashboard__novel-image-wrap {
    position: relative;
    display: flex;
    max-width: 150px;
    flex-direction: column;
    align-items: center;
}

.novel-stat-pulse{
  position: absolute;
  top: 8px;
  left: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.completed-pulse,
.ongoing-pulse {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.completed-pulse{
  background-color: #FF5722;
}

.ongoing-pulse{
  background-color: #4CAF50;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.dashboard__novel-image {
    width: auto;
    max-width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
}

.dashboard__novel-content {
    flex: 2;
    padding-left: 1.5em;
    text-align: left;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.dashboard__novel-title_and_del {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--hover-bg-color);
    padding-bottom: 0.5rem;
}

.dashboard__novel_del {
    text-align: center;
}

.dashboard-btn-del {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--dashboard-delete-bg);
    color: var(--text-dark-light-color);
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background-color var(--transition-duration) var(--transition-ease), box-shadow var(--transition-duration) var(--transition-ease);
}

.dashboard-btn-del:hover {
    background-color: var(--dashboard-delete-hover);
    box-shadow: var(--box-shadow);
}

.dashboard-btn-del i {
    font-size: 1.2rem;
}

.dashboard__novel-title-link {
    color: var(--text-color);
    text-decoration: none;
}

.dashboard__novel-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-align: left;
    color: var(--hover-bg-color);
}

.dashboard__novel-stats {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.6rem 0;
}

.dashboard__novel-metric {
    display: flex;
    align-items: center;
    text-wrap: nowrap;
    color: var(--text-color);
    padding: 0;
    border-radius: 20px;
    font-size: 0.9em;
    gap: 0.3rem;
}

.dashboard__novel-metric i {
    margin-right: 5px;
    color: var(--novel-metric-icon);
}

.dashboard__star-rating {
    display: flex;
    align-items: center;
    text-wrap: nowrap;
    color: var(--text-secondary-color);
    padding: 5px;
    font-size: 0.9em;
}

.dashboard__star-rating i {
    margin: 0;
}

.dashboard__star-rating .novel_review_count {
    color: var(--novel-metric-icon);
    z-index: 2;
}

.dashboard__star-rating .novel_review_count.disabled {
    color: var(--text-muted-color);
}

.stars-outer {
    position: relative;
    display: inline-block;
    margin-right: 0.2rem;
}

.stars-inner {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    width: var(--rating-percent);
}

.stars-outer i {
    color: var(--text-muted-color);
}

.stars-inner i {
    color: var(--novel-metric-icon);
}

/* Novel Dates */
.thin-border {
    border: none;
    border-top: 1px solid var(--dashboard-divider-color);
    width: 100%;
    opacity: 0.5;
    margin: 0.3rem 0;
}

.dashboard_novels_info {
    margin: var(--margin-top) 0;
}

.dashboard_novels_dates {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--text-secondary-color);
    font-size: 1rem;
    list-style-position: inside;
    padding: 0;
}

.dashboard_novels_dates li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 10px;
}

.date-label {
    color: var(--hover-bg-color);
    min-width: 120px;
    font-weight: 500;
}

.date-info {
    display: flex;
    gap: 5px;
    align-items: center;
}

.actual-date {
    color: var(--text-color);
}

.time-ago {
    color: var(--text-muted-color);
    font-size: 0.9em;
}

/* Novel Tags */
.dashboard__novel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    padding: 0.6rem 0;
}

.dashboard__novel-tags .more-genres {
    display: flex;
    align-items: center;
    color: var(--more-genres-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 0;
    cursor: pointer;
    transition: text-decoration var(--transition-duration) var(--transition-ease);
}

/* Novel Buttons */
.dashboard__novel-buttons {
    display: flex;
    height: 100%;
    gap: 1rem;
    padding: 0 1rem 1rem;
    justify-content: flex-end;
    align-items: flex-end;
    background-color: var(--dashboard-item-bg);
    border-radius: 15px;
    text-wrap: nowrap;
}

.dashboard-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--dashboard-content-bg);
    border: 1px solid var(--hover-bg-color);
    border-radius: 8px;
    color: var(--text-secondary-color);
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-duration) var(--transition-ease);
}

.dashboard-btn:hover {
    background-color: var(--hover-bg-color);
    color: var(--dashboard-content-bg);
}

.dashboard-btn i {
    font-size: 1.2rem;
}

.dashboard-btn span {
    font-weight: 500;
}

/* Empty States */
.empty-state {
    padding: 3rem 2rem;
    width: 100%;
    text-align: center;
    background: var(--dashboard-empty-bg);
    border: 1px solid var(--dashboard-empty-border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-state-icon {
    font-size: 3rem;
    color: var(--novel-metric-icon);
    margin-bottom: 1.5rem;
}

.empty-state-title {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.empty-state-text {
    color: var(--text-muted-color);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.empty-state-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--novel-metric-icon);
    color: var(--navbar-bg-color);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}

.empty-state-button:hover {
    background: var(--tag-hover-color);
}

.empty-state-button i {
    font-size: 0.875rem;
}

/* Delete Modal */
.delete-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dashboard-modal-overlay);
    z-index: 1000;
}

.delete-modal-content {
    background-color: var(--dashboard-modal-bg);
    border: 2px solid var(--dashboard-accent-color);
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
}

.delete-modal-content h3 {
    color: var(--dashboard-accent-color);
    margin-bottom: 10px;
    font-size: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--hover-bg-color);
}

.delete-modal-content p {
    color: var(--text-color);
    margin-bottom: 20px;
}

.delete-modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-cancel-v5s {
    background-color: var(--cancel-btn-bg);
    color: var(--text-color);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color var(--transition-duration) var(--transition-ease);
}

.btn-delete-v5s {
    background-color: var(--dashboard-delete-bg);
    color: var(--text-color);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color var(--transition-duration) var(--transition-ease);
}

.btn-cancel-v5s:hover {
    background-color: var(--dashboard-button-hover);
}

.btn-delete-v5s:hover {
    background-color: var(--dashboard-delete-hover);
    color: var(--text-color);
}

/* Large Screens - 1400px */
@media screen and (max-width: 1400px) {
    /* Dashboard Container */
    .dashboard {
        flex-direction: column;
        gap: 2rem;
    }
    
    /* Stats Section */
    .dashboard__stats {
        width: 100%;
    }
    .dashboard__stats-content {
        flex-direction: row;
        justify-content: space-between;
        gap: 0.5rem;
    }
    
    /* Author Avatar */
    .dashboard__author-avatar {
        width: 40%;
        margin: 1rem;
    }
    .author-avatar {
        height: 500px;
        min-width: 320px;
    }
    
    /* Author Stats */
    .dashboard__author-stats {
        width: 100%;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        margin: 1rem;
        border-top: none;
    }
    .collapsible-stats {
        max-height: fit-content;
    }
    .author_needed_data {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }
    .needed_data {
        flex: 1;
        min-width: 250px;
    }
    
    /* Novels Section */
    .dashboard__novels {
        width: 100%;
    }
    .dashboard__novels-grid {
        grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
        gap: 1.5rem;
    }
    
    /* Empty State */
    .empty-state {
        padding: 2.75rem 1.75rem;
    }
    .empty-state-icon {
        font-size: 2.75rem;
        margin-bottom: 1.25rem;
    }
}

/* Medium Screens - 1200px */
@media screen and (max-width: 1200px) {
    /* Stats Section */
    .dashboard__stats-content {
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Author Avatar */
    .dashboard__author-avatar {
        width: 60%;
        margin: 1rem 1rem 0;
    }
    
    /* Author Stats */
    .dashboard__author-stats {
        margin: 0;
    }
    .needed_data {
        min-width: 220px;
    }
    
    /* Novels Section */
    .dashboard__novels-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.25rem;
        padding: 1rem;
    }
    .dashboard__novel-wrapper {
        width: 100%;
    }
    
    /* Empty State */
    .empty-state {
        padding: 2.5rem 1.5rem;
    }
    .empty-state-icon {
        font-size: 2.5rem;
        margin-bottom: 1.25rem;
    }
    .empty-state-title {
        font-size: 1.35rem;
    }
}

/* Tablet Screens - 1024px */
@media screen and (max-width: 1024px) {
    /* Dashboard Container */
    .dashboard {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    /* Author Avatar */
    .dashboard__author-avatar {
        width: 100%;
        margin: 0.5rem;
    }
    
    /* Author Stats */
    .author_needed_data {
        gap: 0.75rem;
    }
    .needed_data {
        min-width: 200px;
        padding: 12px;
    }
    
    /* Novels Section */
    .dashboard__novels-header {
        gap: 1rem;
        padding: 0.7rem 2rem;
    }
    .dashboard__novels-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
    }
    .dashboard__novel-metric {
        font-size: 0.95rem;
    }
    .dashboard__novel-image-wrap {
        width: 100%;
        height: auto;
    }
    .dashboard__novel-buttons {
        padding: 1rem;
    }
    
    /* Empty State */
    .empty-state {
        padding: 2.25rem 1.25rem;
    }
    .empty-state-icon {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }
    .empty-state-text {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
}

/* Mobile Screens - 769px */
@media screen and (max-width: 769px) {
    /* Dashboard Title */
    .dashboard__novels-title h1, .dashboard__title h1 {
        font-size: 1.5rem;
    }
    
    /* Author Stats */
    .needed_data {
        min-width: 100%;
        margin: 0.5rem 0;
    }
    
    /* Novels Header */
    .dashboard__novels-header {
        justify-content: space-between;
        height: 90px;
        padding: 0.7rem 1rem 0.7rem 2rem;
    }
    .both_add_sort_containers {
        gap: 0.5rem;
        justify-content: flex-end;
    }
    .current-sort {
        display: none;
    }
    #sort_By_current_stat {
        display: none;
    }
    
    /* Novels Grid */
    .dashboard__novels-grid {
        display: flex;
        flex-direction: column;
        gap: 1.75rem;
        padding: 0.5rem;
    }
    .dashboard__novel-item {
        width: 100%;
        margin: 0;
    }
    .dashboard__novel-wrapper {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
    }
    .dashboard__novel_del {
        position: absolute;
        top: 5px;
        right: 5px;
    }
    .dashboard__novel-content {
        padding: 0;
        width: 100%;
        align-items: center;
    }
    .dashboard__novel-title_and_del {
        width: 100%;
        justify-content: center;
    }
    .dashboard__novel-stats {
        gap: 0.75rem;
        padding: 0.5rem 0;
        align-items: center;
        justify-content: center;
    }
    .dashboard__novel-metric {
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }
    .dashboard__novel-metric i {
        width: 16px;
    }
    
    /* Star Rating */
    .dashboard__star-rating {
        font-size: 1.1rem;
    }
    .dashboard__star-rating.novel_review_count, .dashboard__star-rating .novel_review_count.disabled {
        font-size: 1.1rem;
    }
    .stars-outer {
        margin-right: 0.5rem;
    }
    
    /* Date Info */
    .actual-date {
        text-align: center;
    }
    .date-info {
        flex-direction: column;
        align-items: center;
    }
    
    /* Empty State */
    .empty-state {
        margin: 0;
    }
    .empty-state-icon {
        margin-bottom: 0.875rem;
    }
    .empty-state-title {
        font-size: 1.25rem;
        margin-bottom: 0.625rem;
    }
    .empty-state-text {
        font-size: 0.875rem;
        margin-bottom: 1rem;
    }
    .empty-state-button {
        font-size: 0.875rem;
    }
    .empty-state-button i {
        font-size: 0.75rem;
    }
}

/* Small Mobile Screens - 480px */
@media screen and (max-width: 480px) {
    /* Dashboard Container */
    .dashboard {
        gap: 1rem;
    }
    
    /* Dashboard Title */
    .dashboard__novels-title h1, .dashboard__title h1 {
        font-size: 1.5rem;
    }
    
    /* Stats Section */
    .dashboard__stats-content {
        padding: 0 0 0.5rem;
    }
    
    /* Author Avatar */
    .author-avatar {
        min-width: 280px;
    }
    
    /* Novel Content */
    .dashboard__novel-content {
        padding: 0 0.75rem;
    }
    .dashboard__novel-title {
        font-size: 1.1rem;
        text-align: center;
    }
    .dashboard__novel-buttons {
        gap: 0.5rem;
    }
    .dashboard__novel-tags {
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.5rem 0;
        align-items: center;
        justify-content: center;
    }
    .dashboard__novel_del {
        padding: 0.25rem;
    }
    
    /* Time and Border */
    .time-ago {
        font-size: 0.8rem;
    }
    .thin-border {
        margin: 0.5rem 0;
    }
    
    /* Buttons */
    .dashboard-btn i {
        font-size: 0.9rem;
    }
    .add-novel-btn i, .sort-btn i {
        font-size: 0.9rem;
    }
}