/* LinguaPro Free Advanced Front-End Styling */

.linguapro_wrapper_rebuilt {
    display: inline-block;
    font-family: inherit;
    font-size: 14px;
}

/* Hide default Google Translate top frame */
body {
    top: 0 !important;
}
.skiptranslate, .goog-te-banner-frame {
    display: none !important;
}
.goog-te-balloon-frame {
    display: none !important;
}

/* Standard select dropdown style */
.gt-dropdown-wrapper {
    display: inline-flex;
    align-items: center;
}
.gt-select-input {
    padding: 6px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
    font-size: inherit;
    transition: border 0.2s;
}
.gt-select-input:focus {
    outline: none;
    border-color: #0073aa;
}

/* Nice Custom Dropdown */
.gt-nice-dropdown {
    position: relative;
    display: inline-block;
    min-width: 140px;
    user-select: none;
}
.gt-nice-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    gap: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.gt-nice-dropdown.dark .gt-nice-trigger {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}
.gt-arrow {
    font-size: 10px;
    opacity: 0.7;
}
.gt-nice-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    margin-top: 4px;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.gt-nice-dropdown.dark .gt-nice-options {
    background: #1e293b;
    border-color: #334155;
}
.gt-nice-options.open {
    display: block;
}
.gt-nice-options > div {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.15s;
}
.gt-nice-options > div:hover {
    background: #f1f5f9;
}
.gt-nice-dropdown.dark .gt-nice-options > div:hover {
    background: #334155;
}
.gt-nice-options > div.active {
    background: #e2e8f0;
    font-weight: 600;
}
.gt-nice-dropdown.dark .gt-nice-options > div.active {
    background: #475569;
}

/* Flags Lists */
.gt-flags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.gt-flag-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s;
}
.gt-flag-link:hover {
    background: rgba(0,0,0,0.05);
}
.gt-flag-link.active {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}
.gt-lang-label {
    font-size: 13px;
}
.gt-lang-label.code {
    font-weight: 600;
}

/* Links lists */
.gt-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.gt-text-link {
    text-decoration: none;
    color: #0073aa;
    font-weight: 500;
}
.gt-text-link:hover {
    text-decoration: underline;
}
.gt-text-link.active {
    color: #1e293b;
    font-weight: 700;
}

/* Floating widget look */
.gt-float-widget {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-size: 13px;
    font-weight: 500;
    user-select: none;
}
.gt-float-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    cursor: pointer;
}
.gt-float-options {
    position: absolute;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-width: 150px;
    max-height: 250px;
    overflow-y: auto;
    display: none;
}
.gt-float-options.open {
    display: block;
}
.gt-float-options.top {
    bottom: 100%;
    margin-bottom: 6px;
}
.gt-float-options.bottom {
    top: 100%;
    margin-top: 6px;
}
.gt-float-options > div {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
}
.gt-float-options > div:hover {
    background: #f1f5f9;
}

/* Globe widget */
.gt-globe-widget {
    position: relative;
    display: inline-block;
}
.gt-globe-options {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-width: 150px;
    max-height: 250px;
    overflow-y: auto;
    display: none;
    z-index: 99999;
    margin-top: 6px;
}
.gt-globe-options.open {
    display: block;
}
.gt-globe-options > div {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
}
.gt-globe-options > div:hover {
    background: #f1f5f9;
}

/* Popup style widget */
.gt-popup-btn {
    padding: 8px 16px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}
.gt-popup-btn:hover {
    background: #005177;
}

/* Global Modal Overlay */
.gt-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999999;
}
.gt-modal-overlay.open {
    display: flex;
}
.gt-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
}
.gt-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
}
.gt-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}
.gt-modal-close {
    font-size: 24px;
    cursor: pointer;
    color: #94a3b8;
}
.gt-modal-close:hover {
    color: #334155;
}
.gt-modal-body {
    padding: 20px;
    overflow-y: auto;
}
.gt-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
@media (max-width: 480px) {
    .gt-modal-grid {
        grid-template-columns: 1fr;
    }
}
.gt-modal-grid > div {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}
.gt-modal-grid > div:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}
.gt-modal-grid > div.active {
    border-color: #0073aa;
    background: #f0f9ff;
    font-weight: 600;
}
