#ath-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background: linear-gradient(135deg, #f0f4ff, #e0eaff);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    font-family: 'Arial', sans-serif;
}

h2 { text-align: center; color: #333; }

.ath-options {
    text-align: center;
    margin-bottom: 10px;
}

.ath-editor-toolbar {
    text-align: center;
    margin-bottom: 10px;
}

.ath-btn {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 8px 12px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.ath-btn:hover { background: #357abd; }

.ath-btn.primary { background: #2ecc71; }

.ath-textareas {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.ath-input, .ath-output {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ath-textbox {
    min-height: 400px; /* Large size */
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 10px;
    background: white;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
    overflow-y: auto;
    font-size: 16px;
    line-height: 1.5;
}

label { font-weight: bold; margin-bottom: 5px; color: #555; }

.ath-buttons {
    text-align: center;
    margin-top: 20px;
}

#progress-bar {
    position: relative; /* Added for positioning percentage */
    height: 5px;
    background: #eee;
    border-radius: 5px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: #2ecc71;
    width: 0;
    transition: width 0.2s;
}

#progress-text {
    position: absolute;
    top: -20px; /* Adjusted for visibility */
    right: 10px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

#processing-message {
    margin-top: 10px;
    font-size: 16px;
    color: #333;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#processing-message::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #2ecc71;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#ath-message { 
    color: red;
    text-align: center;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .ath-textareas { flex-direction: column; }
    .ath-textbox { min-height: 300px; }
}