body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.header {
    background-color: #4682B4;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 2.5em;
}

.navbar {
    overflow: hidden;
    background-color: #333;
}

.navbar a {
    float: left;
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

.navbar a:hover {
    background-color: #ddd;
    color: black;
}

.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
}

.button {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 1.5em;
    margin: 10px;
    border-radius: 12px;
    width: 200px;
    cursor: pointer;
    text-decoration: none;
}

.button:hover {
    background-color: #45a049;
}

.content-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 80vh;
    text-align: center;
}

/* Word Cloud Specific Styles */
.subtitle {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.input-form {
    margin: 20px 0;
}

.input-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

.options {
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.options label {
    font-weight: 600;
    color: #555;
}

.options input[type="number"] {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100px;
}

.input-form button {
    background-color: #007bff;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 15px;
}

.input-form button:hover {
    background-color: #0056b3;
}

.result {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.wordcloud-image {
    text-align: center;
    margin: 20px 0;
}

.wordcloud-image img {
    max-width: 100%;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stats {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

.error {
    color: #d9534f;
    padding: 10px;
    background-color: #f8d7da;
    border-radius: 4px;
    margin-top: 20px;
}
.input-section {
    margin-bottom: 20px;
}

.input-section input[type="url"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.or-divider {
    text-align: center;
    color: #999;
    margin: 15px 0;
    font-weight: 600;
    font-size: 14px;
}
/* POS Tagging Specific Styles */
.info-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.pos-badge {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.legend-grid div {
    padding: 8px;
    background-color: white;
    border-radius: 4px;
    border-left: 3px solid #007bff;
}

.legend-grid strong {
    color: #007bff;
    font-family: monospace;
    margin-right: 5px;
}

.coming {
    padding: 20px;
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    margin: 20px 0;
}
/* Semantic Parsing / Dependency Styles */
.dep-table-container {
    overflow-x: auto;
    margin: 20px 0;
}

.dep-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dep-table thead {
    background-color: #28a745;
    color: white;
}

.dep-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.dep-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

.dep-table tbody tr:hover {
    background-color: #f8f9fa;
}

.dep-badge {
    display: inline-block;
    background-color: #28a745;
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    font-family: monospace;
}

.dep-legend {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #28a745;
}

.dep-legend h3 {
    margin-top: 0;
    color: #333;
}

.dep-legend h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #555;
}

.example-section {
    margin-top: 25px;
    padding: 15px;
    background-color: white;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.example-text {
    font-style: italic;
    color: #495057;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.example-list {
    list-style: none;
    padding-left: 0;
}

.example-list li {
    padding: 5px 0;
    color: #666;
}

.example-list strong {
    color: #28a745;
}

.example-list code {
    background-color: #e9ecef;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: #28a745;
}
/* POS Visualization */
.pos-visualization {
    padding: 20px;
    background-color: white;
    border-radius: 4px;
    border: 1px solid #ddd;
    margin: 20px 0;
}

/* Word-Tag List */
.word-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.word-tag-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    background-color: white;
    border-radius: 4px;
    border: 2px solid;
    gap: 4px;
}

.word-tag-item strong {
    font-size: 14px;
}

.word-tag-item .tag-label {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Color coding for POS types */
.pos-NOUN { border-color: #3498db; }
.pos-NOUN .tag-label { background-color: #3498db; color: white; }

.pos-PROPN { border-color: #2980b9; }
.pos-PROPN .tag-label { background-color: #2980b9; color: white; }

.pos-VERB { border-color: #e74c3c; }
.pos-VERB .tag-label { background-color: #e74c3c; color: white; }

.pos-ADJ { border-color: #2ecc71; }
.pos-ADJ .tag-label { background-color: #2ecc71; color: white; }

.pos-ADV { border-color: #f39c12; }
.pos-ADV .tag-label { background-color: #f39c12; color: white; }

.pos-PRON { border-color: #9b59b6; }
.pos-PRON .tag-label { background-color: #9b59b6; color: white; }

.pos-DET { border-color: #1abc9c; }
.pos-DET .tag-label { background-color: #1abc9c; color: white; }

.pos-ADP { border-color: #34495e; }
.pos-ADP .tag-label { background-color: #34495e; color: white; }

.pos-CONJ, .pos-CCONJ, .pos-SCONJ { border-color: #e67e22; }
.pos-CONJ .tag-label, .pos-CCONJ .tag-label, .pos-SCONJ .tag-label { 
    background-color: #e67e22; color: white; 
}

.pos-AUX { border-color: #c0392b; }
.pos-AUX .tag-label { background-color: #c0392b; color: white; }

.pos-NUM { border-color: #16a085; }
.pos-NUM .tag-label { background-color: #16a085; color: white; }

.pos-PUNCT { border-color: #95a5a6; }
.pos-PUNCT .tag-label { background-color: #95a5a6; color: white; }

/* Grouped Tags Container */
.grouped-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.group-box {
    background-color: white;
    border-radius: 6px;
    padding: 15px;
    border: 2px solid #ddd;
}

.group-title {
    margin: 0 0 12px 0;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.group-title.pos-NOUN { background-color: #3498db; }
.group-title.pos-VERB { background-color: #e74c3c; }
.group-title.pos-ADJ { background-color: #2ecc71; }
.group-title.pos-ADV { background-color: #f39c12; }
.group-title.pos-PRON { background-color: #9b59b6; }
.group-title.pos-DET { background-color: #1abc9c; }
.group-title.pos-ADP { background-color: #34495e; }
.group-title.pos-CONJ { background-color: #e67e22; }
.group-title.pos-NUM { background-color: #16a085; }

.group-words {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.group-word {
    display: inline-block;
    padding: 4px 10px;
    background-color: #f8f9fa;
    border-radius: 3px;
    font-size: 14px;
    border: 1px solid #dee2e6;
}
/* Romanization Styles */
.romanize-section {
    margin: 20px 0;
}

.text-box {
    padding: 20px;
    border-radius: 6px;
    font-size: 18px;
    line-height: 1.6;
    min-height: 80px;
}

.original-text {
    background-color: #e3f2fd;
    border: 2px solid #2196f3;
    color: #1565c0;
    font-weight: 500;
}

.romanized-text {
    background-color: #f1f8e9;
    border: 2px solid #8bc34a;
    color: #33691e;
    font-weight: 500;
}

.arrow-down {
    text-align: center;
    font-size: 32px;
    color: #666;
    margin: 15px 0;
}

.info-box {
    margin-top: 20px;
    padding: 15px;
    background-color: #fff3e0;
    border-left: 4px solid #ff9800;
    border-radius: 4px;
}

.info-item {
    padding: 5px 0;
    color: #555;
}

.info-item strong {
    color: #e65100;
    margin-right: 5px;
}

.examples-section {
    margin-top: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.examples-section h3 {
    margin-top: 0;
    color: #333;
}

.script-list {
    list-style: none;
    padding: 0;
}

.script-list li {
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
    color: #666;
}

.script-list li:last-child {
    border-bottom: none;
}

.script-list strong {
    color: #007bff;
    margin-right: 5px;
}
