* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    background-color: #E0E0E0;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.topbar-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
}

.alpha-badge {
    background-color: #D32F2F;
    color: white;
    font-size: 12px;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 3px;
}

.model-select {
    padding: 8px 16px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    cursor: pointer;
}

.topbar-buttons {
    display: flex;
    gap: 12px;
}

.modal-btn {
    padding: 8px 20px;
    font-size: 14px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-btn:hover {
    background: #f0f0f0;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.input-section {
    flex: 0 0 30%;
    background: white;
    padding: 24px;
}

.input-section textarea {
    width: 100%;
    height: 100%;
    padding: 16px;
    font-size: 18px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: none;
    font-family: inherit;
}

.input-section textarea:focus {
    outline: none;
    border-color: #1976D2;
}

.output-section {
    flex: 1;
    background: #E0E0E0;
    padding: 24px;
    overflow-y: auto;
}

.output-content {
    font-size: 18px;
    line-height: 1.6;
    color: #212121;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.word-fade {
    display: inline-block;
    animation: fadeIn 0.3s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-model {
    color: #E65100;
    font-style: italic;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 32px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.modal-content h2 {
    margin-bottom: 16px;
    font-weight: 600;
    text-transform: lowercase;
}

.modal-content p {
    margin-bottom: 16px;
    line-height: 1.6;
    color: #333;
}

.modal-content ul {
    margin: 16px 0 16px 24px;
    line-height: 1.8;
}

.close {
    position: absolute;
    right: 20px;
    top: 16px;
    font-size: 28px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.statusbar {
    background-color: #E0E0E0;
    padding: 8px 24px;
    display: flex;
    gap: 24px;
    font-size: 13px;
    color: #666;
    height: 36px;
    align-items: center;
}
