/* ================================================================
# DACOG Search Engine – System Architecture
# File: main.css
# Path: /static/css/main.css
# Version: 1.2.3 (Reconciled)
# Description: Main stylesheet
# ================================================================*/

* { box-sizing: border-box; }

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}

/* The Wrapper that holds everything */
.site-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Header - Solid Blue with Right-Aligned Links */
.site-header {
    background-color: #0a9fe1 !important;
    padding: 10px 40px;
    flex-shrink: 0;
    z-index: 1000;
}

.nav-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 15px;
}

/* Main Container - Vertical and Horizontal Centering */
.search-main {
    flex: 1; /* Pushes the footer down */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.search-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
}

/* Logo Styling */
.main-logo {
    width: 250px;
    height: auto;
    margin-bottom: 30px;
}

/* Search Box refinement */
.search-form-wrapper {
    display: flex;
    width: 100%;
    background: white;
    border: 1px solid #dfe1e5;
    border-radius: 30px;
    padding: 5px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s;
}

.search-form-wrapper:focus-within {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px;
    font-size: 18px;
    color: #202124;
}

.search-btn {
    background: none;
    border: none;
    color: #0a9fe1;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* Footer - Solid Blue */
.site-footer {
    background-color: #0a9fe1 !important;
    color: white;
    text-align: center;
    padding: 15px 0;
    flex-shrink: 0;
    font-size: 14px;
}

/* Language Switcher Logic */
#langSwitcher .btn-outline-light {
    border-radius: 20px;
    padding: 5px 15px;
    border: 1px solid rgba(255,255,255,0.5);
    font-size: 13px;
}

#langSwitcher .dropdown-menu {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}