.ascend-proofreader-container {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.ascend-proofreader-header {
    text-align: center;
    margin-bottom: 30px;
}

.ascend-proofreader-header h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.ascend-proofreader-subtitle {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.ascend-usage-counter {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    margin-top: 10px;
}

.ascend-input-section {
    margin-bottom: 25px;
}

.ascend-input-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.ascend-textarea {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
}

.ascend-textarea:focus {
    outline: none;
    border-color: #667eea;
}

.ascend-select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.ascend-select:focus {
    outline: none;
    border-color: #667eea;
}

.ascend-button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ascend-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.ascend-button:active {
    transform: translateY(0);
}

.ascend-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ascend-spinner {
    display: none;
    text-align: center;
    margin: 30px 0;
}

.ascend-spinner.active {
    display: block;
}

.ascend-spinner::after {
    content: "";
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #667eea;
    border-radius: 50%;
    animation: ascend-spin 1s linear infinite;
}

@keyframes ascend-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ascend-results {
    display: none;
    margin-top: 30px;
}

.ascend-results.active {
    display: block;
}

.ascend-result-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.ascend-result-section h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.ascend-result-section ul {
    list-style-position: inside;
    padding-left: 10px;
}

.ascend-result-section li {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.6;
}

#ascend-rewritten-output {
    color: #333;
    line-height: 1.8;
    white-space: pre-wrap;
}

.ascend-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.ascend-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ascend-modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.ascend-modal-content h2 {
    color: #333;
    margin-bottom: 15px;
}

.ascend-modal-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.ascend-modal-button {
    padding: 12px 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    margin: 5px;
}

.ascend-modal-button:hover {
    background: #5568d3;
}

.ascend-empty-message {
    color: #999;
    font-style: italic;
    
    
    .ascend-user-info {
    margin: 15px 0;
    padding: 10px 20px;
    background: #f0f0f0;
    border-radius: 8px;
    display: inline-block;
}

.ascend-welcome {
    color: #333;
    font-weight: 600;
    margin-right: 15px;
}

.ascend-logout-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.ascend-logout-link:hover {
    text-decoration: underline;
}

.ascend-modal-button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ascend-modal-button-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #653a8a 100%);
}
}