/* Medical Report Generator Styles */

/* Fixed Message Area at Bottom */
.fixed-message-area {
    position: fixed;
    bottom: 80px;
    left: 0;
    right: 0;
    z-index: 1050;
    max-height: 30vh;
    overflow-y: auto;
    pointer-events: none; /* Allow clicks to pass through when empty */
}

.fixed-message-area .alert {
    margin: 0 15px 15px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    pointer-events: auto; /* Re-enable clicks for actual alerts */
    animation: slideUp 0.3s ease-out;
}

/* Slide up animation for messages */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Auto-dismiss animation */
.alert.auto-dismiss {
    animation: slideUp 0.3s ease-out, fadeOut 0.5s ease-in 4.5s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(100%);
    }
}

/* CSS Flag Icons for cross-browser compatibility */
.flag-icon {
    display: inline-block;
    width: 24px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 2px;
    margin-right: 4px;
    vertical-align: middle;
}

/* Special spacing for dual flag display */
.flag-icon + .flag-icon {
    margin-left: 2px;
}

/* Ensure flags display in navbar */
.navbar .flag-icon {
    width: 20px;
    height: 14px;
    margin-right: 3px;
}

/* Navbar specific flag styling */
.navbar .flag-icon {
    margin-right: 2px;
}

/* Custom dropdown with flags */
.custom-dropdown {
    position: relative;
    display: inline-block;
    min-width: 180px;
}

.custom-dropdown-selected {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background-color: #fff;
    cursor: pointer;
    user-select: none;
    gap: 8px;
}

.custom-dropdown-selected:hover {
    border-color: #86b7fe;
}

.custom-dropdown-selected.active {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.dropdown-arrow {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.2s;
}

.custom-dropdown-selected.active .dropdown-arrow {
    transform: rotate(180deg);
}

.custom-dropdown-options {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ced4da;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

.custom-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    gap: 8px;
    transition: background-color 0.2s;
}

.custom-option:hover {
    background-color: #f8f9fa;
}

.custom-option.selected {
    background-color: #e3f2fd;
}

/* Option styling with flags */
#outputLanguage option {
    padding-left: 30px !important;
    background-repeat: no-repeat;
    background-position: 6px center;
    background-size: 20px 14px;
}

#outputLanguage option[data-flag="flag-us"] {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAyMSAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjIxIiBoZWlnaHQ9IjE1IiBmaWxsPSIjRkZGRkZGIi8+CjxyZWN0IHdpZHRoPSIyMSIgaGVpZ2h0PSIxLjE1IiBmaWxsPSIjQjIyMjM0Ii8+CjxyZWN0IHk9IjIuMzEiIHdpZHRoPSIyMSIgaGVpZ2h0PSIxLjE1IiBmaWxsPSIjQjIyMjM0Ii8+CjxyZWN0IHk9IjQuNjIiIHdpZHRoPSIyMSIgaGVpZ2h0PSIxLjE1IiBmaWxsPSIjQjIyMjM0Ii8+CjxyZWN0IHk9IjYuOTIiIHdpZHRoPSIyMSIgaGVpZ2h0PSIxLjE1IiBmaWxsPSIjQjIyMjM0Ii8+CjxyZWN0IHk9IjkuMjMiIHdpZHRoPSIyMSIgaGVpZ2h0PSIxLjE1IiBmaWxsPSIjQjIyMjM0Ii8+CjxyZWN0IHk9IjExLjU0IiB3aWR0aD0iMjEiIGhlaWdodD0iMS4xNSIgZmlsbD0iI0IyMjIzNCIvPgo8cmVjdCB5PSIxMy44NSIgd2lkdGg9IjIxIiBoZWlnaHQ9IjEuMTUiIGZpbGw9IiNCMjIyMzQiLz4KPHJlY3Qgd2lkdGg9IjkiIGhlaWdodD0iOC4wOCIgZmlsbD0iIzMzNDJBNiIvPgo8L3N2Zz4K');
}

#outputLanguage option[data-flag="flag-de"] {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAyMSAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjIxIiBoZWlnaHQ9IjUiIGZpbGw9IiMwMDAwMDAiLz4KPHJlY3QgeT0iNSIgd2lkdGg9IjIxIiBoZWlnaHQ9IjUiIGZpbGw9IiNERDAwMDAiLz4KPHJlY3QgeT0iMTAiIHdpZHRoPSIyMSIgaGVpZ2h0PSI1IiBmaWxsPSIjRkZDRTAwIi8+Cjwvc3ZnPgo=');
}

#outputLanguage option[data-flag="flag-gb"] {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="30" fill="%23012169"/%3E%3Cpath d="M0 0L60 30" stroke="%23fff" stroke-width="6"/%3E%3Cpath d="M60 0L0 30" stroke="%23fff" stroke-width="6"/%3E%3Cpath d="M0 0L60 30" stroke="%23C8102E" stroke-width="4"/%3E%3Cpath d="M60 0L0 30" stroke="%23C8102E" stroke-width="4"/%3E%3Cpath d="M30 0V30" stroke="%23fff" stroke-width="10"/%3E%3Cpath d="M0 15H60" stroke="%23fff" stroke-width="10"/%3E%3Cpath d="M30 0V30" stroke="%23C8102E" stroke-width="6"/%3E%3Cpath d="M0 15H60" stroke="%23C8102E" stroke-width="6"/%3E%3C/svg%3E');
}

#outputLanguage option[data-flag="flag-nl"] {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="10" fill="%23AE1C28"/%3E%3Crect y="10" width="60" height="10" fill="%23FFF"/%3E%3Crect y="20" width="60" height="10" fill="%23003DA5"/%3E%3C/svg%3E');
}

#outputLanguage option[data-flag="flag-pt"] {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="24" height="30" fill="%23046A38"/%3E%3Crect x="24" width="36" height="30" fill="%23DA020E"/%3E%3C/svg%3E');
}

#outputLanguage option[data-flag="flag-it"] {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="20" height="30" fill="%23009246"/%3E%3Crect x="20" width="20" height="30" fill="%23FFF"/%3E%3Crect x="40" width="20" height="30" fill="%23CE2B37"/%3E%3C/svg%3E');
}

#outputLanguage option[data-flag="flag-ru"] {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="10" fill="%23FFF"/%3E%3Crect y="10" width="60" height="10" fill="%23D52B1E"/%3E%3Crect y="20" width="60" height="10" fill="%230039A6"/%3E%3C/svg%3E');
}

#outputLanguage option[data-flag="flag-ar"] {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="30" fill="%23239F40"/%3E%3C/svg%3E');
}

#outputLanguage option[data-flag="flag-cn"] {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="30" fill="%23DE2910"/%3E%3Cpolygon points="12,6 14,10 18,8 16,12 20,12 12,6" fill="%23FFDE00"/%3E%3C/svg%3E');
}

#outputLanguage option[data-flag="flag-fr"] {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="20" height="30" fill="%23002654"/%3E%3Crect x="20" width="20" height="30" fill="%23FFF"/%3E%3Crect x="40" width="20" height="30" fill="%23ED2939"/%3E%3C/svg%3E');
}

#outputLanguage option[data-flag="flag-es"] {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="7.5" fill="%23C60B1E"/%3E%3Crect y="7.5" width="60" height="15" fill="%23FFC400"/%3E%3Crect y="22.5" width="60" height="7.5" fill="%23C60B1E"/%3E%3C/svg%3E');
}

#outputLanguage option[data-flag="flag-pl"] {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="15" fill="%23FFF"/%3E%3Crect y="15" width="60" height="15" fill="%23DC143C"/%3E%3C/svg%3E');
}

#outputLanguage option[data-flag="flag-ro"] {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="20" height="30" fill="%23002B7F"/%3E%3Crect x="20" width="20" height="30" fill="%23FCD116"/%3E%3Crect x="40" width="20" height="30" fill="%23CE1126"/%3E%3C/svg%3E');
}

#outputLanguage option[data-flag="flag-gr"] {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="3.33" fill="%23005BAE"/%3E%3Crect y="3.33" width="60" height="3.33" fill="%23FFF"/%3E%3Crect y="6.66" width="60" height="3.33" fill="%23005BAE"/%3E%3Crect y="10" width="60" height="3.33" fill="%23FFF"/%3E%3Crect y="13.33" width="60" height="3.33" fill="%23005BAE"/%3E%3Crect y="16.66" width="60" height="3.33" fill="%23FFF"/%3E%3Crect y="20" width="60" height="3.33" fill="%23005BAE"/%3E%3Crect y="23.33" width="60" height="3.33" fill="%23FFF"/%3E%3Crect y="26.66" width="60" height="3.33" fill="%23005BAE"/%3E%3C/svg%3E');
}

#outputLanguage option[data-flag="flag-cz"] {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="15" fill="%23FFF"/%3E%3Crect y="15" width="60" height="15" fill="%23D7141A"/%3E%3Cpolygon points="0,0 30,15 0,30" fill="%2311457E"/%3E%3C/svg%3E');
}

#outputLanguage option[data-flag="flag-hu"] {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="10" fill="%23CE2939"/%3E%3Crect y="10" width="60" height="10" fill="%23FFF"/%3E%3Crect y="20" width="60" height="10" fill="%23477050"/%3E%3C/svg%3E');
}

#outputLanguage option[data-flag="flag-se"] {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="30" fill="%23006AA7"/%3E%3Crect x="20" width="4" height="30" fill="%23FECC00"/%3E%3Crect y="13" width="60" height="4" fill="%23FECC00"/%3E%3C/svg%3E');
}

#outputLanguage option[data-flag="flag-rs"] {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="10" fill="%23C6363C"/%3E%3Crect y="10" width="60" height="10" fill="%233F57A4"/%3E%3Crect y="20" width="60" height="10" fill="%23FFF"/%3E%3C/svg%3E');
}

#outputLanguage option[data-flag="flag-hr"] {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="10" fill="%23FF0000"/%3E%3Crect y="10" width="60" height="10" fill="%23FFF"/%3E%3Crect y="20" width="60" height="10" fill="%23171796"/%3E%3C/svg%3E');
}

#outputLanguage option[data-flag="flag-si"] {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="10" fill="%23FFF"/%3E%3Crect y="10" width="60" height="10" fill="%23005DA4"/%3E%3Crect y="20" width="60" height="10" fill="%23ED1C24"/%3E%3C/svg%3E');
}

#outputLanguage option[data-flag="flag-da"] {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="30" fill="%23C60C30"/%3E%3Crect x="20" width="4" height="30" fill="%23FFF"/%3E%3Crect y="13" width="60" height="4" fill="%23FFF"/%3E%3C/svg%3E');
}

#outputLanguage option[data-flag="flag-no"] {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="30" fill="%23EF2B2D"/%3E%3Crect x="20" width="4" height="30" fill="%23FFF"/%3E%3Crect y="13" width="60" height="4" fill="%23FFF"/%3E%3Crect x="22" width="2" height="30" fill="%23002868"/%3E%3Crect y="14" width="60" height="2" fill="%23002868"/%3E%3C/svg%3E');
}

#outputLanguage option[data-flag="flag-fi"] {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="30" fill="%23FFF"/%3E%3Crect x="20" width="4" height="30" fill="%23003580"/%3E%3Crect y="13" width="60" height="4" fill="%23003580"/%3E%3C/svg%3E');
}

#outputLanguage option[data-flag="flag-ee"] {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="10" fill="%230072CE"/%3E%3Crect y="10" width="60" height="10" fill="%23000"/%3E%3Crect y="20" width="60" height="10" fill="%23FFF"/%3E%3C/svg%3E');
}

#outputLanguage option[data-flag="flag-lv"] {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="12" fill="%23A4343A"/%3E%3Crect y="12" width="60" height="6" fill="%23FFF"/%3E%3Crect y="18" width="60" height="12" fill="%23A4343A"/%3E%3C/svg%3E');
}

#outputLanguage option[data-flag="flag-lt"] {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="10" fill="%23FDB913"/%3E%3Crect y="10" width="60" height="10" fill="%23006A44"/%3E%3Crect y="20" width="60" height="10" fill="%23C1272D"/%3E%3C/svg%3E');
}

#outputLanguage option[data-flag="flag-ba"] {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="30" fill="%23002395"/%3E%3Cpolygon points="0,0 30,15 0,30" fill="%23FFCD00"/%3E%3C/svg%3E');
}

#outputLanguage option[data-flag="flag-tr"] {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="30" fill="%23E30A17"/%3E%3Ccircle cx="20" cy="15" r="6" fill="%23FFF"/%3E%3Ccircle cx="22" cy="15" r="5" fill="%23E30A17"/%3E%3Cpolygon points="28,10 30,12 32,10 31,13 34,14 31,15 32,18 30,16 28,18 29,15 26,14 29,13" fill="%23FFF"/%3E%3C/svg%3E');
}

#outputLanguage option[data-flag="flag-bg"] {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="10" fill="%23FFF"/%3E%3Crect y="10" width="60" height="10" fill="%2300966E"/%3E%3Crect y="20" width="60" height="10" fill="%23D62612"/%3E%3C/svg%3E');
}

#outputLanguage option[data-flag="flag-sk"] {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="10" fill="%23FFF"/%3E%3Crect y="10" width="60" height="10" fill="%230B4EA2"/%3E%3Crect y="20" width="60" height="10" fill="%23EE1C25"/%3E%3C/svg%3E');
}

/* Flag dropdown specific flag classes */
.flag-dropdown.flag-icon.flag-us::before {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAyMSAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjIxIiBoZWlnaHQ9IjE1IiBmaWxsPSIjRkZGRkZGIi8+CjxyZWN0IHdpZHRoPSIyMSIgaGVpZ2h0PSIxLjE1IiBmaWxsPSIjQjIyMjM0Ii8+CjxyZWN0IHk9IjIuMzEiIHdpZHRoPSIyMSIgaGVpZ2h0PSIxLjE1IiBmaWxsPSIjQjIyMjM0Ii8+CjxyZWN0IHk9IjQuNjIiIHdpZHRoPSIyMSIgaGVpZ2h0PSIxLjE1IiBmaWxsPSIjQjIyMjM0Ii8+CjxyZWN0IHk9IjYuOTIiIHdpZHRoPSIyMSIgaGVpZ2h0PSIxLjE1IiBmaWxsPSIjQjIyMjM0Ii8+CjxyZWN0IHk9IjkuMjMiIHdpZHRoPSIyMSIgaGVpZ2h0PSIxLjE1IiBmaWxsPSIjQjIyMjM0Ii8+CjxyZWN0IHk9IjExLjU0IiB3aWR0aD0iMjEiIGhlaWdodD0iMS4xNSIgZmlsbD0iI0IyMjIzNCIvPgo8cmVjdCB5PSIxMy44NSIgd2lkdGg9IjIxIiBoZWlnaHQ9IjEuMTUiIGZpbGw9IiNCMjIyMzQiLz4KPHJlY3Qgd2lkdGg9IjkiIGhlaWdodD0iOC4wOCIgZmlsbD0iIzMzNDJBNiIvPgo8L3N2Zz4K');
}

.flag-dropdown.flag-icon.flag-de::before {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAyMSAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjIxIiBoZWlnaHQ9IjUiIGZpbGw9IiMwMDAwMDAiLz4KPHJlY3QgeT0iNSIgd2lkdGg9IjIxIiBoZWlnaHQ9IjUiIGZpbGw9IiNERDAwMDAiLz4KPHJlY3QgeT0iMTAiIHdpZHRoPSIyMSIgaGVpZ2h0PSI1IiBmaWxsPSIjRkZDRTAwIi8+Cjwvc3ZnPgo=');
}

.flag-dropdown.flag-icon.flag-gb::before {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="30" fill="%23012169"/%3E%3Cpath d="M0 0L60 30" stroke="%23fff" stroke-width="6"/%3E%3Cpath d="M60 0L0 30" stroke="%23fff" stroke-width="6"/%3E%3Cpath d="M0 0L60 30" stroke="%23C8102E" stroke-width="4"/%3E%3Cpath d="M60 0L0 30" stroke="%23C8102E" stroke-width="4"/%3E%3Cpath d="M30 0V30" stroke="%23fff" stroke-width="10"/%3E%3Cpath d="M0 15H60" stroke="%23fff" stroke-width="10"/%3E%3Cpath d="M30 0V30" stroke="%23C8102E" stroke-width="6"/%3E%3Cpath d="M0 15H60" stroke="%23C8102E" stroke-width="6"/%3E%3C/svg%3E');
}

.flag-dropdown.flag-icon.flag-nl::before {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="10" fill="%23AE1C28"/%3E%3Crect y="10" width="60" height="10" fill="%23FFF"/%3E%3Crect y="20" width="60" height="10" fill="%23003DA5"/%3E%3C/svg%3E');
}

.flag-dropdown.flag-icon.flag-pt::before {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="24" height="30" fill="%23046A38"/%3E%3Crect x="24" width="36" height="30" fill="%23DA020E"/%3E%3C/svg%3E');
}

.flag-dropdown.flag-icon.flag-it::before {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="20" height="30" fill="%23009246"/%3E%3Crect x="20" width="20" height="30" fill="%23FFF"/%3E%3Crect x="40" width="20" height="30" fill="%23CE2B37"/%3E%3C/svg%3E');
}

.flag-dropdown.flag-icon.flag-ru::before {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="10" fill="%23FFF"/%3E%3Crect y="10" width="60" height="10" fill="%23D52B1E"/%3E%3Crect y="20" width="60" height="10" fill="%230039A6"/%3E%3C/svg%3E');
}

.flag-dropdown.flag-icon.flag-ar::before {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="30" fill="%23239F40"/%3E%3C/svg%3E');
}

.flag-dropdown.flag-icon.flag-cn::before {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="30" fill="%23DE2910"/%3E%3Cpolygon points="12,6 14,10 18,8 16,12 20,12 12,6" fill="%23FFDE00"/%3E%3C/svg%3E');
}

.flag-dropdown.flag-icon.flag-fr::before {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="20" height="30" fill="%23002654"/%3E%3Crect x="20" width="20" height="30" fill="%23FFF"/%3E%3Crect x="40" width="20" height="30" fill="%23ED2939"/%3E%3C/svg%3E');
}

.flag-dropdown.flag-icon.flag-es::before {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="7.5" fill="%23C60B1E"/%3E%3Crect y="7.5" width="60" height="15" fill="%23FFC400"/%3E%3Crect y="22.5" width="60" height="7.5" fill="%23C60B1E"/%3E%3C/svg%3E');
}

.flag-dropdown.flag-icon.flag-pl::before {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="15" fill="%23FFF"/%3E%3Crect y="15" width="60" height="15" fill="%23DC143C"/%3E%3C/svg%3E');
}

.flag-dropdown.flag-icon.flag-ro::before {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="20" height="30" fill="%23002B7F"/%3E%3Crect x="20" width="20" height="30" fill="%23FCD116"/%3E%3Crect x="40" width="20" height="30" fill="%23CE1126"/%3E%3C/svg%3E');
}

.flag-dropdown.flag-icon.flag-gr::before {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="3.33" fill="%23005BAE"/%3E%3Crect y="3.33" width="60" height="3.33" fill="%23FFF"/%3E%3Crect y="6.66" width="60" height="3.33" fill="%23005BAE"/%3E%3Crect y="10" width="60" height="3.33" fill="%23FFF"/%3E%3Crect y="13.33" width="60" height="3.33" fill="%23005BAE"/%3E%3Crect y="16.66" width="60" height="3.33" fill="%23FFF"/%3E%3Crect y="20" width="60" height="3.33" fill="%23005BAE"/%3E%3Crect y="23.33" width="60" height="3.33" fill="%23FFF"/%3E%3Crect y="26.66" width="60" height="3.33" fill="%23005BAE"/%3E%3C/svg%3E');
}

.flag-dropdown.flag-icon.flag-cz::before {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="15" fill="%23FFF"/%3E%3Crect y="15" width="60" height="15" fill="%23D7141A"/%3E%3Cpolygon points="0,0 30,15 0,30" fill="%2311457E"/%3E%3C/svg%3E');
}

.flag-dropdown.flag-icon.flag-hu::before {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="10" fill="%23CE2939"/%3E%3Crect y="10" width="60" height="10" fill="%23FFF"/%3E%3Crect y="20" width="60" height="10" fill="%23477050"/%3E%3C/svg%3E');
}

.flag-dropdown.flag-icon.flag-se::before {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="30" fill="%23006AA7"/%3E%3Crect x="20" width="4" height="30" fill="%23FECC00"/%3E%3Crect y="13" width="60" height="4" fill="%23FECC00"/%3E%3C/svg%3E');
}

.flag-dropdown.flag-icon.flag-rs::before {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="10" fill="%23C6363C"/%3E%3Crect y="10" width="60" height="10" fill="%233F57A4"/%3E%3Crect y="20" width="60" height="10" fill="%23FFF"/%3E%3C/svg%3E');
}

.flag-dropdown.flag-icon.flag-hr::before {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="10" fill="%23FF0000"/%3E%3Crect y="10" width="60" height="10" fill="%23FFF"/%3E%3Crect y="20" width="60" height="10" fill="%23171796"/%3E%3C/svg%3E');
}

.flag-dropdown.flag-icon.flag-si::before {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="10" fill="%23FFF"/%3E%3Crect y="10" width="60" height="10" fill="%23005DA4"/%3E%3Crect y="20" width="60" height="10" fill="%23ED1C24"/%3E%3C/svg%3E');
}

.flag-dropdown.flag-icon.flag-da::before {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="30" fill="%23C60C30"/%3E%3Crect x="20" width="4" height="30" fill="%23FFF"/%3E%3Crect y="13" width="60" height="4" fill="%23FFF"/%3E%3C/svg%3E');
}

.flag-dropdown.flag-icon.flag-no::before {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="30" fill="%23EF2B2D"/%3E%3Crect x="20" width="4" height="30" fill="%23FFF"/%3E%3Crect y="13" width="60" height="4" fill="%23FFF"/%3E%3Crect x="22" width="2" height="30" fill="%23002868"/%3E%3Crect y="14" width="60" height="2" fill="%23002868"/%3E%3C/svg%3E');
}

.flag-dropdown.flag-icon.flag-fi::before {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="30" fill="%23FFF"/%3E%3Crect x="20" width="4" height="30" fill="%23003580"/%3E%3Crect y="13" width="60" height="4" fill="%23003580"/%3E%3C/svg%3E');
}

.flag-dropdown.flag-icon.flag-ee::before {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="10" fill="%230072CE"/%3E%3Crect y="10" width="60" height="10" fill="%23000"/%3E%3Crect y="20" width="60" height="10" fill="%23FFF"/%3E%3C/svg%3E');
}

.flag-dropdown.flag-icon.flag-lv::before {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="12" fill="%23A4343A"/%3E%3Crect y="12" width="60" height="6" fill="%23FFF"/%3E%3Crect y="18" width="60" height="12" fill="%23A4343A"/%3E%3C/svg%3E');
}

.flag-dropdown.flag-icon.flag-lt::before {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="10" fill="%23FDB913"/%3E%3Crect y="10" width="60" height="10" fill="%23006A44"/%3E%3Crect y="20" width="60" height="10" fill="%23C1272D"/%3E%3C/svg%3E');
}

.flag-dropdown.flag-icon.flag-ba::before {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="30" fill="%23002395"/%3E%3Cpolygon points="0,0 30,15 0,30" fill="%23FFCD00"/%3E%3C/svg%3E');
}

.flag-dropdown.flag-icon.flag-tr::before {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="30" fill="%23E30A17"/%3E%3Ccircle cx="20" cy="15" r="6" fill="%23FFF"/%3E%3Ccircle cx="22" cy="15" r="5" fill="%23E30A17"/%3E%3Cpolygon points="28,10 30,12 32,10 31,13 34,14 31,15 32,18 30,16 28,18 29,15 26,14 29,13" fill="%23FFF"/%3E%3C/svg%3E');
}

.flag-dropdown.flag-icon.flag-bg::before {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="10" fill="%23FFF"/%3E%3Crect y="10" width="60" height="10" fill="%2300966E"/%3E%3Crect y="20" width="60" height="10" fill="%23D62612"/%3E%3C/svg%3E');
}

.flag-dropdown.flag-icon.flag-sk::before {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="10" fill="%23FFF"/%3E%3Crect y="10" width="60" height="10" fill="%230B4EA2"/%3E%3Crect y="20" width="60" height="10" fill="%23EE1C25"/%3E%3C/svg%3E');
}

.flag-icon.flag-de {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAyMSAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjIxIiBoZWlnaHQ9IjUiIGZpbGw9IiMwMDAwMDAiLz4KPHJlY3QgeT0iNSIgd2lkdGg9IjIxIiBoZWlnaHQ9IjUiIGZpbGw9IiNERDAwMDAiLz4KPHJlY3QgeT0iMTAiIHdpZHRoPSIyMSIgaGVpZ2h0PSI1IiBmaWxsPSIjRkZDRTAwIi8+Cjwvc3ZnPgo=');
}

.flag-icon.flag-us {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMTUiIHZpZXdCb3g9IjAgMCAyMSAxNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjIxIiBoZWlnaHQ9IjE1IiBmaWxsPSIjRkZGRkZGIi8+CjxyZWN0IHdpZHRoPSIyMSIgaGVpZ2h0PSIxLjE1IiBmaWxsPSIjQjIyMjM0Ii8+CjxyZWN0IHk9IjIuMzEiIHdpZHRoPSIyMSIgaGVpZ2h0PSIxLjE1IiBmaWxsPSIjQjIyMjM0Ii8+CjxyZWN0IHk9IjQuNjIiIHdpZHRoPSIyMSIgaGVpZ2h0PSIxLjE1IiBmaWxsPSIjQjIyMjM0Ii8+CjxyZWN0IHk9IjYuOTIiIHdpZHRoPSIyMSIgaGVpZ2h0PSIxLjE1IiBmaWxsPSIjQjIyMjM0Ii8+CjxyZWN0IHk9IjkuMjMiIHdpZHRoPSIyMSIgaGVpZ2h0PSIxLjE1IiBmaWxsPSIjQjIyMjM0Ii8+CjxyZWN0IHk9IjExLjU0IiB3aWR0aD0iMjEiIGhlaWdodD0iMS4xNSIgZmlsbD0iI0IyMjIzNCIvPgo8cmVjdCB5PSIxMy44NSIgd2lkdGg9IjIxIiBoZWlnaHQ9IjEuMTUiIGZpbGw9IiNCMjIyMzQiLz4KPHJlY3Qgd2lkdGg9IjkiIGhlaWdodD0iOC4wOCIgZmlsbD0iIzMzNDJBNiIvPgo8L3N2Zz4K');
}

.flag-icon.flag-gb {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="30" fill="%23012169"/%3E%3Cpath d="M0 0L60 30" stroke="%23fff" stroke-width="6"/%3E%3Cpath d="M60 0L0 30" stroke="%23fff" stroke-width="6"/%3E%3Cpath d="M0 0L60 30" stroke="%23C8102E" stroke-width="4"/%3E%3Cpath d="M60 0L0 30" stroke="%23C8102E" stroke-width="4"/%3E%3Cpath d="M30 0V30" stroke="%23fff" stroke-width="10"/%3E%3Cpath d="M0 15H60" stroke="%23fff" stroke-width="10"/%3E%3Cpath d="M30 0V30" stroke="%23C8102E" stroke-width="6"/%3E%3Cpath d="M0 15H60" stroke="%23C8102E" stroke-width="6"/%3E%3C/svg%3E');
}

/* Additional language flags for report output selector */
.flag-icon.flag-nl {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="10" fill="%23AE1C28"/%3E%3Crect y="10" width="60" height="10" fill="%23FFF"/%3E%3Crect y="20" width="60" height="10" fill="%23003DA5"/%3E%3C/svg%3E');
}

.flag-icon.flag-pt {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="24" height="30" fill="%23046A38"/%3E%3Crect x="24" width="36" height="30" fill="%23DA020E"/%3E%3C/svg%3E');
}

.flag-icon.flag-it {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="20" height="30" fill="%23009246"/%3E%3Crect x="20" width="20" height="30" fill="%23FFF"/%3E%3Crect x="40" width="20" height="30" fill="%23CE2B37"/%3E%3C/svg%3E');
}

.flag-icon.flag-ru {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="10" fill="%23FFF"/%3E%3Crect y="10" width="60" height="10" fill="%23D52B1E"/%3E%3Crect y="20" width="60" height="10" fill="%230039A6"/%3E%3C/svg%3E');
}

.flag-icon.flag-ar {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="30" fill="%23239F40"/%3E%3Cpath d="M0 0h60v30H0z" fill="%23239F40"/%3E%3C/svg%3E');
}

.flag-icon.flag-cn {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="30" fill="%23DE2910"/%3E%3Cpolygon points="12,6 14,10 18,8 16,12 20,12 12,6" fill="%23FFDE00"/%3E%3C/svg%3E');
}

.flag-icon.flag-fr {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="20" height="30" fill="%23002654"/%3E%3Crect x="20" width="20" height="30" fill="%23FFF"/%3E%3Crect x="40" width="20" height="30" fill="%23ED2939"/%3E%3C/svg%3E');
}

.flag-icon.flag-es {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="7.5" fill="%23C60B1E"/%3E%3Crect y="7.5" width="60" height="15" fill="%23FFC400"/%3E%3Crect y="22.5" width="60" height="7.5" fill="%23C60B1E"/%3E%3C/svg%3E');
}

.flag-icon.flag-pl {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="15" fill="%23FFF"/%3E%3Crect y="15" width="60" height="15" fill="%23DC143C"/%3E%3C/svg%3E');
}

.flag-icon.flag-ro {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="20" height="30" fill="%23002B7F"/%3E%3Crect x="20" width="20" height="30" fill="%23FCD116"/%3E%3Crect x="40" width="20" height="30" fill="%23CE1126"/%3E%3C/svg%3E');
}

.flag-icon.flag-gr {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="3.33" fill="%23005BAE"/%3E%3Crect y="3.33" width="60" height="3.33" fill="%23FFF"/%3E%3Crect y="6.66" width="60" height="3.33" fill="%23005BAE"/%3E%3Crect y="10" width="60" height="3.33" fill="%23FFF"/%3E%3Crect y="13.33" width="60" height="3.33" fill="%23005BAE"/%3E%3Crect y="16.66" width="60" height="3.33" fill="%23FFF"/%3E%3Crect y="20" width="60" height="3.33" fill="%23005BAE"/%3E%3Crect y="23.33" width="60" height="3.33" fill="%23FFF"/%3E%3Crect y="26.66" width="60" height="3.33" fill="%23005BAE"/%3E%3C/svg%3E');
}

.flag-icon.flag-cz {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="15" fill="%23FFF"/%3E%3Crect y="15" width="60" height="15" fill="%23D7141A"/%3E%3Cpolygon points="0,0 30,15 0,30" fill="%2311457E"/%3E%3C/svg%3E');
}

.flag-icon.flag-hu {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="10" fill="%23CE2939"/%3E%3Crect y="10" width="60" height="10" fill="%23FFF"/%3E%3Crect y="20" width="60" height="10" fill="%23477050"/%3E%3C/svg%3E');
}

.flag-icon.flag-se {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="30" fill="%23006AA7"/%3E%3Crect x="20" width="4" height="30" fill="%23FECC00"/%3E%3Crect y="13" width="60" height="4" fill="%23FECC00"/%3E%3C/svg%3E');
}

.flag-icon.flag-rs {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="10" fill="%23C6363C"/%3E%3Crect y="10" width="60" height="10" fill="%233F57A4"/%3E%3Crect y="20" width="60" height="10" fill="%23FFF"/%3E%3C/svg%3E');
}

.flag-icon.flag-hr {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="10" fill="%23FF0000"/%3E%3Crect y="10" width="60" height="10" fill="%23FFF"/%3E%3Crect y="20" width="60" height="10" fill="%23171796"/%3E%3C/svg%3E');
}

.flag-icon.flag-si {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="10" fill="%23FFF"/%3E%3Crect y="10" width="60" height="10" fill="%23005DA4"/%3E%3Crect y="20" width="60" height="10" fill="%23ED1C24"/%3E%3C/svg%3E');
}

.flag-icon.flag-da {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="30" fill="%23C60C30"/%3E%3Crect x="20" width="4" height="30" fill="%23FFF"/%3E%3Crect y="13" width="60" height="4" fill="%23FFF"/%3E%3C/svg%3E');
}

.flag-icon.flag-no {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="30" fill="%23EF2B2D"/%3E%3Crect x="20" width="4" height="30" fill="%23FFF"/%3E%3Crect y="13" width="60" height="4" fill="%23FFF"/%3E%3Crect x="22" width="2" height="30" fill="%23002868"/%3E%3Crect y="14" width="60" height="2" fill="%23002868"/%3E%3C/svg%3E');
}

.flag-icon.flag-fi {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="30" fill="%23FFF"/%3E%3Crect x="20" width="4" height="30" fill="%23003580"/%3E%3Crect y="13" width="60" height="4" fill="%23003580"/%3E%3C/svg%3E');
}

.flag-icon.flag-ee {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="10" fill="%230072CE"/%3E%3Crect y="10" width="60" height="10" fill="%23000"/%3E%3Crect y="20" width="60" height="10" fill="%23FFF"/%3E%3C/svg%3E');
}

.flag-icon.flag-lv {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="12" fill="%23A4343A"/%3E%3Crect y="12" width="60" height="6" fill="%23FFF"/%3E%3Crect y="18" width="60" height="12" fill="%23A4343A"/%3E%3C/svg%3E');
}

.flag-icon.flag-lt {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="10" fill="%23FDB913"/%3E%3Crect y="10" width="60" height="10" fill="%23006A44"/%3E%3Crect y="20" width="60" height="10" fill="%23C1272D"/%3E%3C/svg%3E');
}

.flag-icon.flag-ba {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="30" fill="%23002395"/%3E%3Cpolygon points="0,0 30,15 0,30" fill="%23FFCD00"/%3E%3C/svg%3E');
}

.flag-icon.flag-tr {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="30" fill="%23E30A17"/%3E%3Ccircle cx="20" cy="15" r="6" fill="%23FFF"/%3E%3Ccircle cx="22" cy="15" r="5" fill="%23E30A17"/%3E%3Cpolygon points="28,10 30,12 32,10 31,13 34,14 31,15 32,18 30,16 28,18 29,15 26,14 29,13" fill="%23FFF"/%3E%3C/svg%3E');
}

.flag-icon.flag-bg {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="10" fill="%23FFF"/%3E%3Crect y="10" width="60" height="10" fill="%2300966E"/%3E%3Crect y="20" width="60" height="10" fill="%23D62612"/%3E%3C/svg%3E');
}

.flag-icon.flag-sk {
    background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 30"%3E%3Crect width="60" height="10" fill="%23FFF"/%3E%3Crect y="10" width="60" height="10" fill="%230B4EA2"/%3E%3Crect y="20" width="60" height="10" fill="%23EE1C25"/%3E%3C/svg%3E');
}

:root {
    --primary-color: #3182ce;      /* Bright professional blue */
    --secondary-color: #4299e1;    /* Lighter blue accent */
    --success-color: #2b77ad;      /* Professional blue for generate button */
    --info-color: #4a90b8;         /* Light blue for info elements */
    --warning-color: #5a9bd4;      /* Soft blue for reset button */
    --danger-color: #c53030;       /* Keep red for actual danger/errors */
    --dark-color: #2d3748;         /* Dark blue-gray text */
    --light-color: #f7fafc;        /* Very light blue-gray background */
    --white-color: #ffffff;        /* Pure white */
    --muted-color: #718096;        /* Blue-gray muted */
}

/* Vertical navbar switch layout */
.navbar .form-check {
    display: flex !important;
    align-items: center !important;
    margin-bottom: 0 !important;
}

.navbar .form-check-input {
    margin-right: 8px !important;
}

.navbar .form-check i {
    margin-right: 8px !important;
}

.navbar .form-check-label {
    margin-bottom: 0 !important;
    display: inline !important;
}

/* Clean, simple layout */
.card {
    margin-bottom: 20px !important;
}

/* PII Detection Alert Styles */
.pii-detection-alert {
    margin-top: 10px !important;
    border-left: 4px solid #dc3545 !important;
    background-color: #fff3cd !important;
    border-color: #ffeaa7 !important;
    animation: slideDown 0.3s ease-out;
}

.pii-detection-alert .btn-close {
    font-size: 0.8rem;
    opacity: 0.6;
}

.pii-detection-alert .btn-close:hover {
    opacity: 1;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
}

/* Card Styling */
.card {
    border: none;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.1);
    border-radius: 8px;
    background-color: var(--white-color);
}

.card-header {
    background-color: var(--secondary-color) !important;
    color: var(--white-color) !important;
    border-radius: 8px 8px 0 0 !important;
    font-weight: 500;
    border-bottom: none;
}

/* Form Controls */
.form-control, .form-select {
    border-radius: 6px;
    border: 1px solid #cbd5e0;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    background-color: var(--white-color);
}

/* Full height text areas - adjusted to fit screen without scrolling, accounting for navbar */
.full-height-textarea {
    height: calc(100vh - 420px) !important;
    min-height: 250px;
    max-height: calc(100vh - 380px);
}

/* Full height output area - adjusted to fit screen without scrolling, accounting for navbar */
.full-height-output {
    height: calc(100vh - 420px) !important;
    min-height: 250px;
    max-height: calc(100vh - 380px);
    overflow-y: auto;
}

/* Full height output area aligned with Reset button - adjusted height to align buttons exactly */
.full-height-output-aligned {
    height: calc(100vh - 340px) !important;
    min-height: 250px;
    max-height: calc(100vh - 300px);
    overflow-y: auto;
}

/* Voice button styling */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Ensure voice buttons are aligned properly */
.form-label {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(66, 153, 225, 0.25);
}

/* Output Area */
.output-area {
    background-color: var(--white-color);
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.output-area:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(66, 153, 225, 0.25);
}

/* PII violation highlighting - red background */
.highlight-pii {
    background-color: #ff4444;
    color: white;
    border: 1px solid #cc0000;
    border-radius: 3px;
    padding: 1px 3px;
    font-weight: 600;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
}

/* Attention highlighting - yellow background (existing) */
.highlight-attention {
    background-color: #fff9c4;
    color: #b45309;
    border: 1px solid #fbbf24;
    border-radius: 3px;
    padding: 1px 3px;
}

/* Critical discrepancy highlighting - red background */
.highlight-critical {
    background-color: #fee;
    color: #b91c1c;
    border: 1px solid #f87171;
    border-radius: 3px;
    padding: 1px 3px;
    font-weight: 600;
}

.output-area strong {
    color: var(--dark-color);
    font-weight: bold;
}

.output-area em {
    color: #6c757d;
    font-style: italic;
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #2c5282;
    border-color: #2c5282;
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover {
    background-color: #2a6496;
    border-color: #2a6496;
}

.btn-warning {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: white;
}

.btn-warning:hover {
    background-color: #4a8bc2;
    border-color: #4a8bc2;
    color: white;
}

.btn-outline-info {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-outline-info:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}


/* System breakdown badges */
.badge.bg-danger {
    background-color: #dc3545 !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #212529;
}

.badge.bg-info {
    background-color: #0dcaf0 !important;
    color: #212529;
}

/* Risk details collapse animation */



.btn-lg {
    padding: 12px 24px;
    font-size: 1.1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Voice Recognition Buttons */
.btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

/* Recording Animation */
.recording {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Classification Badge - Medical Professional Style */
.classification-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-top: 5px;
    background-color: #edf2f7;
    color: var(--dark-color);
    border: 1px solid #cbd5e0;
}

.classification-thorax {
    background-color: #e7f3ff;
    color: #0066cc;
}

.classification-abdomen {
    background-color: #fff3e0;
    color: #e65100;
}

.classification-skelett {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.classification-neurologie {
    background-color: #e8f5e8;
    color: #2e7d32;
}

.classification-kardio {
    background-color: #ffebee;
    color: #c62828;
}

.classification-verlaufskontrolle {
    background-color: #f1f8e9;
    color: #558b2f;
}

.classification-allgemein {
    background-color: #f5f5f5;
    color: #666;
}

/* Alert Styling - Medical Professional Blue Theme */
.alert {
    border-radius: 6px;
    border: none;
    box-shadow: 0 2px 4px rgba(30, 58, 95, 0.1);
}

.alert-success {
    background-color: #e1f5fe;
    color: #1565c0;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background-color: #ffebee;
    color: #c62828;
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background-color: #e3f2fd;
    color: #1976d2;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background-color: #f1f8ff;
    color: #1565c0;
    border-left: 4px solid var(--info-color);
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navbar Customization */
.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
}

.form-switch .form-check-input {
    width: 3em;
    margin-left: -0.5em;
}

/* Modal Customization */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 15px 15px 0 0;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 15px 15px;
}

/* Voice Recording Modal */
#voiceModal .fa-microphone {
    animation: pulse 2s infinite;
}

#recordingTimer .badge {
    font-size: 1rem;
    padding: 8px 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container-fluid {
        padding: 10px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .output-area {
        min-height: 200px;
        font-size: 0.9rem;
    }
}

/* Custom Scrollbar */
.output-area::-webkit-scrollbar {
    width: 8px;
}

.output-area::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.output-area::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.output-area::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Print Styles */
@media print {
    body {
        background-color: white !important;
    }
    
    .card, .btn, .navbar {
        box-shadow: none !important;
    }
    
    .btn, .navbar, #messageArea {
        display: none !important;
    }
    
    .output-area {
        border: 1px solid #000 !important;
        background-color: white !important;
    }
}

/* Accessibility Improvements */
.btn:focus,
.form-control:focus,
.form-check-input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid #000;
    }
    
    .output-area {
        border: 2px solid #000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .btn:hover {
        transform: none;
    }
    
    .loading::after,
    .recording,
    #voiceModal .fa-microphone {
        animation: none;
    }
}

/* Logo styles */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img.rotating {
    animation: logoRotate 2s linear infinite;
}

@keyframes logoRotate {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(360deg);
    }
}



/* Responsive logo */
@media (max-width: 768px) {
    .logo-container {
        padding: 2px 5px;
    }
}

/* Status Messages at bottom of page */
#statusArea {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    pointer-events: none;
    padding: 1rem 3rem;
}

.status-message {
    pointer-events: auto;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    max-width: 400px;
    margin: 0 auto;
    background-color: rgba(241, 248, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(74, 144, 184, 0.2);
}

.status-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive status messages */
@media (max-width: 768px) {
    #statusArea {
        padding: 1rem;
    }
    
    .status-message {
        font-size: 0.9rem;
    }
}
