.ll-loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #E87A54; /* Match theme color */
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ll-revised-texts-list {
    margin-top: 20px;
}

.ll-revised-text-card {
    background-color: #FAA576; /* Light peach/orange background like the image */
    border-radius: 15px;
    margin-bottom: 15px;
    padding: 15px 25px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    color: #444;
}

.ll-revised-text-card:hover {
    transform: scale(1.02);
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.1);
}

.ll-revised-text-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 37px;
}

.ll-card-main-content {
    display: flex;
    align-items: center;
}

.ll-card-number {
    background-color: white;
    color: black;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.ll-card-title {
    margin: 0;
    font-size: 1.2em;
    font-weight: bold;
    color: white;
}

.ll-card-right-content {
    display: flex;
    align-items: center;
    color: white;
    font-size: 0.9em;
}

.revision-date {
    margin-right: 15px;
}

.ll-card-arrow-toggle {
    font-size: 1.2em;
    font-weight: bold;
    color: #E87A54;
    background-color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.ll-revised-text-card.expanded .ll-card-arrow-toggle {
    transform: rotate(90deg);
}

.ll-revised-text-card-content {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-top: 15px;
    border: 1px solid #eee;
}

.ll-revised-text-card-content .original-text,
.ll-revised-text-card-content .corrected-text {
    margin-bottom: 15px;
}

.ll-revised-text-card-content h1 {
    margin-top: 24px;
    margin-bottom: 24px;
    font-size: 1.4em;
    color: #333;
}

.ll-revised-text-card-content .ll_rev_error {
    background-color: #f8d7da; /* Light red for deletions */
    text-decoration: line-through;
    color: #721c24;
    padding: 2px 4px;
    border-radius: 3px;
}


.ll-revised-text-card-content .ll_revised {
    background-color: #d4edda; /* Light green for additions */
    text-decoration: none;
    color: #155724;
    padding: 2px 4px;
    border-radius: 3px;
}


/* Button to trigger modal */
.ll-review-text-controls {
    text-align: right;
    justify-content: center;
    display: flex;
    margin: 32px 0;
}

.ll-button-primary {
    background-color: #FF535C !important;
    color: white !important;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s;
}

.ll-button-primary:hover {
    background-color: #d76a44;
}

/* Modal Styles */
.ll-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.ll-modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    animation: slide-down 0.3s ease-out;
}

@keyframes slide-down {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ll-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.ll-modal-close:hover {
    color: #333;
}

#ll-review-text-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    min-height: 150px;
    box-sizing: border-box;
}

/* Loading Overlay */
.ll-creation-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.ll-loading-dots {
    display: flex;
}

.ll-loading-dots div {
    width: 15px;
    height: 15px;
    margin: 0 5px;
    background-color: #E87A54;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.ll-loading-dots div:nth-child(1) {
    animation-delay: -0.32s;
}

.ll-loading-dots div:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    } 40% {
        transform: scale(1.0);
    }
}

/* Pagination Styles */
.ll-pagination {
    margin-top: 20px;
    text-align: center;
}

.ll-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #E87A54;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.ll-pagination .page-numbers:hover,
.ll-pagination .page-numbers.current {
    background-color: #E87A54;
    color: white;
    border-color: #E87A54;
}