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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f5f5;
}

.container {
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    padding: 0 20px;
}

.message-bar {
    padding: 10px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.message-bar.info {
    background: #eef5ff;
    color: #084298;
}

.message-bar.success {
    background: #eaf7ea;
    color: #0a6b2a;
}

.message-bar.error {
    background: #fdeaea;
    color: #7f1d1d;
}

.tab {
    background: none;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: color 0.2s;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.tab:hover {
    color: #333;
}

.tab.active {
    color: #007bff;
    border-bottom: 2px solid #007bff;
    font-weight: 500;
}

.panel {
    display: none;
    flex: 1;
    flex-direction: column;
    padding: 20px;
    overflow: hidden;
}

.panel.active {
    display: flex;
}

.tokenization-options {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.source-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.generate-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.length-input {
    width: 80px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.length-input:focus {
    outline: none;
    border-color: #007bff;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.radio-label input[type="radio"] {
    margin-right: 6px;
    cursor: pointer;
}

.radio-label:hover {
    color: #333;
}

.radio-label input[type="radio"]:checked + span {
    color: #007bff;
    font-weight: 500;
}

.action-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 10px;
    transition: background 0.2s;
}

.action-button:hover {
    background: #0056b3;
}

textarea {
    flex: 1;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    resize: none;
    line-height: 1.6;
}

textarea:focus {
    outline: none;
    border-color: #007bff;
}

textarea[readonly] {
    background: #f8f9fa;
    cursor: default;
}

#about-panel {
    overflow-y: auto;
}

#about-panel p {
    margin-bottom: 1em;
    line-height: 1.6;
}

#about-panel ul {
    margin: 1em 0;
    padding-left: 2em;
    line-height: 1.6;
}

#about-panel li {
    margin-bottom: 0.5em;
}

