/* ==========================================
   Nomfro Geo Switcher - Base Styles
   Author: Nomfro Technologies
   Version: 1.0.1
========================================== */

/* --- Global Reset for NGS Elements --- */
.ngs-wrapper,
[class*="ngs-template"] {
    box-sizing: border-box;
    font-family: inherit;
    position: relative;
    z-index: 9999;
}

.ngs-wrapper * {
    box-sizing: inherit;
}

/* --- Dropdown Common Styling --- */
.ngs-dropdown,
.ngs-dropdown-list,
.ngs-modal,
.ngs-floating-panel {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-width: 180px;
    transition: all 0.2s ease-in-out;
}

.ngs-dropdown li,
.ngs-dropdown-list li,
.ngs-country-list li {
    list-style: none;
}

.ngs-dropdown a,
.ngs-dropdown-list a,
.ngs-country-list a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease;
}

.ngs-dropdown a:hover,
.ngs-dropdown-list a:hover,
.ngs-country-list a:hover {
    background: #f3f6fb;
}

/* --- Flag & Currency Styles --- */
.ngs-flag {
    font-size: 18px;
    margin-right: 8px;
}

.ngs-currency {
    font-size: 12px;
    color: #777;
    margin-left: auto;
}

/* --- Toggle and Buttons --- */
.ngs-toggle,
.ngs-current,
.ngs-switcher-btn,
.ngs-floating-btn,
.ngs-dropdown-toggle {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
}

.ngs-arrow {
    font-size: 10px;
    margin-left: 6px;
    color: #555;
}

/* --- Floating & Sticky Position Utilities --- */
.ngs-fixed-bottom-right {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
}

/* --- Top Bar Utility --- */
.ngs-top-bar {
    width: 100%;
    text-align: center;
    padding: 6px 0;
    font-size: 14px;
}

/* --- Responsive Tweaks --- */
@media (max-width: 768px) {

    .ngs-dropdown-list,
    .ngs-dropdown,
    .ngs-modal,
    .ngs-floating-panel {
        min-width: 150px;
    }

    .ngs-floating-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* --- Dark Mode Support --- */
@media (prefers-color-scheme: dark) {

    .ngs-dropdown,
    .ngs-dropdown-list,
    .ngs-modal,
    .ngs-floating-panel {
        background: #1e1e1e;
        border-color: #333;
    }

    .ngs-dropdown a,
    .ngs-dropdown-list a,
    .ngs-country-list a {
        color: #f5f5f5;
    }

    .ngs-dropdown a:hover,
    .ngs-dropdown-list a:hover,
    .ngs-country-list a:hover {
        background: #2b2b2b;
    }

    .ngs-currency {
        color: #aaa;
    }
}