.drafts-count {
    font-size: 0.85rem;
    color: var(--text2);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.drafts-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 80px 20px;
    background-color: var(--bg2);
    border: 1px dashed var(--border);
    text-align: center;
    color: var(--text2);

    h3 {
        font-size: 1.1rem;
        color: var(--text);
        margin: 0;
    }

    p {
        font-size: 0.9rem;
        margin: 0;
    }

}

.drafts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.drafts-item {
    display: flex;
    gap: 20px;
    background-color: var(--bg2);
    border: 1px solid var(--border);
    border-left: 3px solid var(--rhpz-orange);
    padding: 20px;
    transition: border-color 0.15s;

    &:hover {
        border-color: var(--rhpz-orange);
    }
}

.drafts-cover {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    background-color: var(--bg);
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;

    img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

.drafts-cover-placeholder {
    color: var(--border);
}

.drafts-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drafts-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.drafts-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}

.drafts-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.drafts-dates {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
    font-size: 0.78rem;
    color: var(--text2);
    flex-shrink: 0;

    span {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 5px;
    }
}

.drafts-progress {
    display: flex;
    align-items: center;
    gap: 10px;
}

.drafts-progress-bar {
    flex: 1;
    height: 4px;
    background-color: var(--bg4);
    overflow: hidden;
}

.drafts-progress-fill {
    height: 100%;
    background-color: var(--rhpz-orange);
    transition: width 0.3s ease;

    .complete {
        background-color: var(--success);
    }
}
.drafts-progress-label {
    font-size: 0.75rem;
    color: var(--text2);
    white-space: nowrap;
}
.drafts-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    flex-shrink: 0;
    .btn {
        white-space: nowrap;
    }
}

@media (max-width: 768px) {
    .drafts-count {
        font-size: 0.8rem;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }

    .drafts-item {
        gap: 15px;
        padding: 15px;
    }

    .drafts-cover {
        width: 70px;
        height: 70px;
    }

    .drafts-top {
        gap: 12px;
    }

    .drafts-title {
        font-size: 0.95rem;
    }

    .drafts-meta {
        font-size: 0.8rem;
    }

    .drafts-actions {
        gap: 6px;
    }

    .drafts-actions .btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 600px) {
    .drafts-empty {
        padding: 60px 15px;
        gap: 12px;
    }

    .drafts-empty h3 {
        font-size: 1rem;
    }

    .drafts-empty p {
        font-size: 0.85rem;
    }

    .drafts-item {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    .drafts-cover {
        width: 100%;
        height: 150px;
    }

    .drafts-top {
        flex-direction: column;
        gap: 10px;
    }

    .drafts-title {
        font-size: 0.9rem;
    }

    .drafts-meta {
        font-size: 0.75rem;
    }

    .drafts-progress {
        flex-direction: column;
        gap: 8px;
    }

    .drafts-progress-bar {
        width: 100%;
    }

    .drafts-actions {
        flex-direction: row;
        gap: 6px;
        flex-wrap: wrap;
    }

    .drafts-actions .btn {
        flex: 1;
        min-width: 80px;
        padding: 5px 8px;
        font-size: 0.75rem;
    }
}
