* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #202124;
    line-height: 1.6;
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

/* Header Styles */
header {
    text-align: center;
    padding: 20px 0 !important;
    border-bottom: 1px solid #e8eaed;
    margin-bottom: 30px;
}

header img {
    height: 200px !important;
    margin-bottom: 1px !important;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #8B181C;
    margin-top: 0 !important;
    margin-bottom: 1px !important;
}

.subtitle {
    font-size: 1.1rem;
    color: #5f6368;
    margin-top: 5px !important;
    margin-bottom: 2px !important;
}

.powered-by {
    font-size: 0.9rem;
    color: #80868b;
    margin-top: 2px !important;
}

/* Main Content Styles */
.main-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 30px;
    min-height: 600px;
}

.search-container {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e8eaed;
}

.language-dropdown {
    flex: 0 0 140px;
    padding: 12px 16px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.language-dropdown:focus {
    border-color: #1a73e8;
}

.search-box {
    position: relative;
    flex: 1;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    padding-left: 40px;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #5f6368;
}

.search-btn {
    padding: 12px 20px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.search-btn:hover {
    background: #1669d6;
}

.search-btn.french { background: #1a73e8; }
.search-btn.french:hover { background: #1669d6; }

.search-btn.sango { background: #FCA100; }
.search-btn.sango:hover { background: #EF9A03; }

.search-btn.english { background: #d93025; }
.search-btn.english:hover { background: #c5221f; }

/* Display Options */
.display-options {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e8eaed;
}

.display-option {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.display-options label {
    font-size: 14px;
    color: #5f6368;
    font-weight: 500;
}

.display-dropdown {
    padding: 10px 12px;
    border: 1px solid #dadce0;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.display-dropdown:focus {
    border-color: #1a73e8;
}

/* Results Container */
.results-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 30px;
}

/* Word Result Styles */
.word-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8eaed;
}

.word-title {
    font-size: 2rem;
    font-weight: 700;
    color: #202124;
}

.pronunciation {
    font-size: 1.1rem;
    color: #5f6368;
    margin-top: 5px;
}

.part-of-speech {
    background: #f1f3f4;
    color: #5f6368;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 500;
}

.part-of-speech.french { background: #e8f0fe; color: #1a73e8; }
.part-of-speech.sango { background: #e6f4ea; color: #0b8043; }
.part-of-speech.english { background: #fce8e6; color: #d93025; }

.definition-section {
    margin-bottom: 15px;
}

.definition-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #202124;
    margin-bottom: 15px;
}

.definition-text {
    font-size: 1.1rem;
    color: #5f6368;
    line-height: 1.7;
    margin-bottom: 8px;
}

.antonym-section {
    margin: 10px 0;
    padding: 8px;
    background: #fff8e1;
    border-radius: 8px;
    border-left: 4px solid #ffb300;
}

.antonym-label {
    font-weight: 600;
    color: #202124;
    margin-bottom: 8px;
}

.antonym-text {
    color: #5f6368;
}

.example {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 8px;
    border-left: 4px solid #1a73e8;
    margin-top: 8px;
}

.example-text {
    font-style: italic;
    color: #5f6368;
}

.translations {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.translation-item {
    margin-bottom: 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #34a853;
    height: fit-content;
}

.translation-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.translation-language {
    font-weight: 600;
    color: #202124;
    font-size: 1.2rem;
}

.translation-word {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1a73e8;
    margin-bottom: 8px;
}

.translation-details {
    color: #5f6368;
    margin-bottom: 10px;
}

.plural-section {
    margin: 6px 0;
    padding: 6px;
    background: #e8f5e8;
    border-radius: 6px;
}

.plural-label {
    font-weight: 600;
    color: #0b8043;
}

.loading {
    text-align: center;
    padding: 60px 20px;
    color: #5f6368;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #1a73e8;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #5f6368;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #dadce0;
}

.no-results-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #5f6368;
}

/* Bottom Section */
.bottom-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e8eaed;
    display: flex;
    gap: 40px;
}

.bottom-language-section, .bottom-recent-searches {
    flex: 1;
}

.bottom-language-section h3, .bottom-recent-searches h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #202124;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8eaed;
}

.bottom-language-items {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bottom-language-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    border: 1px solid #e8eaed;
}

.bottom-language-item:hover {
    background-color: #f1f3f4;
}

.bottom-language-item.active {
    background-color: #e8f0fe;
    color: #1a73e8;
    font-weight: 500;
}

.language-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.french-flag {
    background-color: #0055a4;
}

.sango-flag {
    background-color: #ff671f;
}

.english-flag {
    background-color: #c8102e;
}

.bottom-recent-items {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bottom-recent-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    border: 1px solid #e8eaed;
    background-color: #f8f9fa;
}

.bottom-recent-item:hover {
    background-color: #e8f0fe;
}

.recent-icon {
    margin-right: 8px;
    color: #5f6368;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .language-dropdown {
        flex: 1;
    }
    
    .translations {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .display-options {
        flex-direction: column;
        gap: 15px;
    }
    
    .bottom-section {
        flex-direction: column;
        gap: 20px;
    }
}
/* For very close spacing */
.search-container {
    margin-bottom: 5px; /* Even more reduced */
}

.display-options {
    margin-bottom: 15px; /* Even more reduced */
    padding: 10px 15px; /* More compact */
}
/* Ultra-compact version */
body {
    padding: 5px 15px;
}

header {
    margin-bottom: 10px;
}

header img {
    height: 150px !important; /* Reduce logo size */
}

.main-content {
    padding: 15px;
}

.search-container {
    padding: 12px;
    margin-bottom: 8px;
}

.results-container {
    max-height: 300px;
    margin-bottom: 15px;
}

.bottom-section {
    margin-top: 15px;
    padding-top: 12px;
}
/* Ultra-compact version */
body {
    padding: 5px 15px;
}

header {
    margin-bottom: 10px;
}

header img {
    height: 150px !important; /* Reduce logo size */
}

.main-content {
    padding: 15px;
}

.search-container {
    padding: 12px;
    margin-bottom: 8px;
}

.results-container {
    max-height: 300px;
    margin-bottom: 15px;
}

.bottom-section {
    margin-top: 15px;
    padding-top: 12px;
}
/* Ultra-compact version */
body {
    padding: 5px 15px;
}

header {
    margin-bottom: 10px;
}

header img {
    height: 150px !important; /* Reduce logo size */
}

.main-content {
    padding: 15px;
}

.search-container {
    padding: 12px;
    margin-bottom: 8px;
}

.results-container {
    max-height: 300px;
    margin-bottom: 15px;
}

.bottom-section {
    margin-top: 15px;
    padding-top: 12px;
}
/* Footer Styles */
.eyalingo-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e8eaed;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #8B181C;
    margin: 0;
}

.powered-by-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #5f6368;
}

.powered-by-badge i {
    color: #5f6368;
}

/* Responsive footer */
@media (max-width: 768px) {
    .eyalingo-footer {
        margin-top: 20px;
        padding-top: 15px;
    }
}
/* Translation Definition Styles */
.translation-definition {
    margin: 10px 0;
    padding: 10px;
    background: #f0f7ff;
    border-radius: 6px;
    border-left: 3px solid #1a73e8;
}

.definition-label {
    font-weight: 600;
    color: #1a73e8;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.translation-definition .definition-text {
    color: #5f6368;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Cloudflare Turnstile Styling */
.cf-turnstile {
    margin: 10px auto;
    display: inline-block;
}

#turnstileWidget {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e8eaed;
}
