body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 700px;
    margin: 30px auto;
    padding: 30px;
    background-color: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

h1 {
    text-align: center;
    color: #333;
    margin: 0 0 20px 0;
    font-size: 2em;
}

input {
    width: 85%;
    padding: 12px 15px;
    margin: 15px 0;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s;
}

input:focus {
    outline: none;
    border-color: #667eea;
}

button {
    padding: 12px 25px;
    margin-left: 10px;
    background-color: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #764ba2;
}

#searchResults {
    margin-top: 20px;
    min-height: 100px;
}

.search-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.word-item {
    padding: 12px 15px;
    margin: 8px 0;
    background-color: #f8f9fa;
    border-left: 4px solid #667eea;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
    font-weight: 500;
}

.word-item:hover {
    background-color: #e8eaf6;
    transform: translateX(5px);
    border-left-color: #764ba2;
}

.word-result {
    animation: fadeIn 0.3s ease-in;
}

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

.word-header {
    display: flex;
    align-items: baseline;
    gap: 15px;
    margin-bottom: 15px;
}

.word-header h1 {
    margin: 0;
    flex: 1;
}

.word-types {
    background-color: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    display: inline-block;
    white-space: nowrap;
}

.word-meta {
    color: #666;
    font-size: 0.95em;
    margin: 10px 0;
    padding: 10px 15px;
    background-color: #f5f5f5;
    border-left: 3px solid #764ba2;
    border-radius: 4px;
}

.word-definition {
    line-height: 1.8;
    color: #333;
    font-size: 1.05em;
    margin: 20px 0;
}

.word-definition p {
    margin: 0;
    text-align: justify;
}

.word-source {
    color: #999;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.no-results {
    color: #999;
    text-align: center;
}

.db-status {
    color: #999;
    text-align: center;
    font-size: 0.9em;
}

ol.senses {
    list-style: none;
    margin: 0;
    padding: 0;
}

li.sense {
    margin: 0 0 18px 0;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}

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

li.sense p, li.subsense p {
    line-height: 1.7;
    color: #333;
    margin: 0 0 6px 0;
}

.sense-number {
    font-weight: bold;
    color: #667eea;
}

ul.subsenses {
    list-style: none;
    margin: 8px 0 0 20px;
    padding: 10px 0 0 15px;
    border-left: 3px solid #e8eaf6;
}

li.subsense {
    margin-bottom: 10px;
}

ul.examples {
    list-style: none;
    margin: 6px 0;
    padding: 0;
    color: #555;
    font-style: italic;
}

ul.examples li::before {
    content: "";
}

ul.catalog {
    margin: 6px 0;
    padding-left: 20px;
    color: #555;
    font-size: 0.95em;
}

.tag-line {
    font-size: 0.9em;
    color: #555;
    margin: 4px 0;
}

.expressions {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 2px solid #f0f0f0;
}

.expressions h2 {
    color: #764ba2;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.expression {
    background-color: #faf9fc;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 12px;
}

.expression h3 {
    margin: 0 0 8px 0;
    font-size: 1em;
    color: #444;
    letter-spacing: 0.5px;
}

.enrichment {
    margin-top: 20px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 8px;
    font-size: 0.92em;
    color: #444;
}

.enrichment p {
    margin: 4px 0;
}

.enrichment-group {
    padding: 6px 0;
}

.enrichment-group:not(:last-child) {
    border-bottom: 1px solid #e0e0e0;
}

.enrichment-group:first-child {
    padding-top: 0;
}

.enrichment .notas-uso {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
    line-height: 1.6;
    white-space: pre-line;
}
