/* Modal Styles */
.noxx-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.noxx-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.noxx-modal {
    background: rgba(20, 20, 25, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 400px;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    color: white;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.noxx-modal-overlay.active .noxx-modal {
    transform: scale(1);
}

.noxx-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.5rem;
    cursor: pointer;
}

.noxx-modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.noxx-modal-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.noxx-modal-text {
    color: rgba(255,255,255,0.7);
    margin-bottom: 2rem;
}

.noxx-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.noxx-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 1rem;
}

.noxx-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.noxx-btn-primary:hover {
    opacity: 0.9;
}

.noxx-btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
}

.noxx-btn-secondary:hover {
    background: rgba(255,255,255,0.15);
}

.noxx-modal-remember {
    display: block;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
}

/* Language Selector Styles */
.noxx-lang-selector {
    position: relative;
    display: inline-block;
}

.noxx-lang-selector.noxx-style-dropdown .noxx-lang-current {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: inherit;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.noxx-lang-selector.noxx-style-dropdown .noxx-lang-current:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.noxx-lang-selector.noxx-style-dropdown .noxx-lang-list {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(15, 15, 16, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #fff;
    min-width: 180px;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    padding: 0.5rem;
    margin-top: 0.5rem;
    list-style: none;
    display: none;
    z-index: 100;
}

.noxx-lang-selector.noxx-style-dropdown:hover .noxx-lang-list,
.noxx-lang-selector.noxx-style-dropdown.open .noxx-lang-list {
    display: block;
}

.noxx-lang-selector.noxx-style-dropdown .noxx-lang-list li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    border-radius: 0.5rem;
    transition: all 0.15s ease;
}

.noxx-lang-selector.noxx-style-dropdown .noxx-lang-list li a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.noxx-original-badge {
    display: inline-block;
    padding: 2px 6px;
    margin-left: auto;
    background: rgba(34, 197, 94, 0.15);
    color: rgba(34, 197, 94, 0.9);
    font-size: 9px;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Mobile styles for dropdown selector */
@media (max-width: 640px) {
    .noxx-lang-selector.noxx-style-dropdown .noxx-lang-list {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 60vh;
        border-radius: 20px 20px 0 0;
        margin-top: 0;
        padding: 1rem;
        padding-top: 0.5rem;
        overflow-y: auto;
    }
    
    .noxx-lang-selector.noxx-style-dropdown .noxx-lang-list::before {
        content: "";
        display: block;
        width: 40px;
        height: 4px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
        margin: 8px auto 16px;
    }
    
    .noxx-lang-selector.noxx-style-dropdown .noxx-lang-list li a {
        padding: 0.875rem 0.75rem;
        font-size: 16px;
    }
}

.noxx-flag {
    display: inline-block !important;
    width: 20px !important;
    height: auto !important;
    background-size: cover !important;
    background-position: center !important;
    border-radius: 2px !important;
}
span.noxx-lang-trigger-flag img {
    vertical-align: middle !important;
    height: auto !important;
    max-height: initial !important;
    margin: auto !important;
}
/* Simple Flags implementation - using CSS for flags or SVGs? */
/* For this demo, I'll assume flag classes use a sprite or background image. 
   Or we can use emoji for simplicity if no assets provided. 
   README implies "noxx-flag-ro" classes. 
   I'll leave them empty or add simple background colors for debugging. 
*/
.noxx-flag-en { background-color: #00247d; } /* Placeholder */
.noxx-flag-ro { background-color: #002B7F; }
.noxx-flag-de { background-color: #000000; }
