@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/*.content {
    padding-top: 1.1rem;
}*/

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

@font-face {
    font-family: 'LaoFont';
    src: url('/fonts/Phetsarath_OT.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.laofont {
    font-family: 'LaoFont', 'Phetsarath OT', 'Noto Sans Lao', sans-serif;
}
/* for destinationchips */


/* container */
.chips-box {
    min-height: 44px;
    background: #fff;
    border: 1px solid #ced4da; /* visible border */
    border-radius: .5rem;
    padding: .35rem .5rem;
}

/* input */
.chips-input {
    outline: none;
    min-width: 180px; /* keep caret visible */
    width: 100%;
    border: 0;
    line-height: 1.4;
}

    /* placeholder color (ensure it’s visible) */
    .chips-input::placeholder {
        color: #6c757d; /* Bootstrap secondary text */
        opacity: 1;
    }

/* chip badge */
.badge.chip {
    background: #6c757d;
    border-radius: 14px;
    padding: .35rem .55rem;
    font-weight: 600;
}

    .badge.chip .chip-x {
        margin-left: .35rem;
        color: #fff;
        opacity: .85;
    }

        .badge.chip .chip-x:hover {
            opacity: 1;
        }

/* suggestions dropdown sits above other content */
.chips-suggest {
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    z-index: 2000; /* higher than cards/nav */
    max-height: 240px;
    overflow: auto;
    box-shadow: 0 .25rem .5rem rgba(0,0,0,.1);
}

.chips-box {
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: .5rem;
    padding: .35rem .5rem;
}

.chips-input {
    outline: none;
    min-width: 180px;
    border: 0;
    line-height: 1.4;
}

.chips-input-wrap {
    display: inline-block;
    position: relative;
}

/* dropdown anchored to the input width */
.chips-suggest {
    position: absolute;
    left: 0;
    right: 0; /* match input width */
    top: calc(100% + .25rem); /* just below input */
    z-index: 2000;
    max-height: 240px;
    overflow: auto;
    box-shadow: 0 .25rem .5rem rgba(0,0,0,.1);
}
/* for destinationchips end */


/*language selector start*/
/* Container */
.lang-selector {
    font-family: 'Noto Sans Lao', 'Noto Sans Thai', 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    color: #333;
}

    /* Flag image */
    .lang-selector .flag-icon {
        border-radius: 2px;
        box-shadow: 0 0 2px rgba(0,0,0,0.3);
    }

/* Dropdown */
.lang-dropdown {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 2px 6px;
    background-color: #fff;
    font-family: inherit; /* keep same font as top bar */
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    /* Hover / focus effect */
    .lang-dropdown:hover,
    .lang-dropdown:focus {
        border-color: #007bff;
        box-shadow: 0 0 4px rgba(0, 123, 255, 0.3);
        outline: none;
    }

/* Optional dark mode tweak */
body.dark .lang-dropdown {
    background-color: #222;
    color: #eee;
    border-color: #555;
}

/*language selector end*/

/* DELETE BUTTON CSS */
.bi-trash {
    display: inline-block;
    width: 16px;
    height: 16px;
    position: relative;
    vertical-align: middle;
    overflow: visible;
}

    /* bin body */
    .bi-trash::before {
        content: "";
        position: absolute;
        left: 4px;
        top: 6px;
        width: 8px;
        height: 8px;
        border: 2px solid currentColor;
        border-top: 0;
        border-radius: 0 0 2px 2px;
        box-sizing: border-box;
    }

    /* lid */
    .bi-trash::after {
        content: "";
        position: absolute;
        left: 3px;
        top: 3px;
        width: 10px;
        height: 2px;
        background: currentColor;
        border-radius: 1px;
    }
/* ENDS DELETE BUTTON CSS */

/* DEBUG: if you don't see the green box, site.css is not being applied */
.trash-icon {
    outline: 2px solid lime !important;
}

button .trash-icon {
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    position: relative !important;
    vertical-align: middle !important;
}

    /* bin body */
    button .trash-icon::before {
        content: "" !important;
        position: absolute !important;
        left: 4px !important;
        top: 6px !important;
        width: 8px !important;
        height: 8px !important;
        border: 2px solid currentColor !important;
        border-top: 0 !important;
        border-radius: 0 0 2px 2px !important;
        box-sizing: border-box !important;
    }

    /* lid */
    button .trash-icon::after {
        content: "" !important;
        position: absolute !important;
        left: 3px !important;
        top: 3px !important;
        width: 10px !important;
        height: 2px !important;
        background: currentColor !important;
        border-radius: 1px !important;
    }


/*Below css is for dropdowns*/
/* wrapper must allow absolute dropdown to show */
.form-group.position-relative {
    overflow: visible !important;
}

/* dropdown box */
.policy-suggestions {
    position: absolute;
    top: calc(100% + 2px);
    left: 0.25rem;
    right: 0.25rem;
    z-index: 1065;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: .25rem;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden; /* IMPORTANT: stop left/right clipping */
    padding: .25rem 0;
}

    /* your items are buttons with class dropdown-item */
    .policy-suggestions .dropdown-item {
        display: block !important;
        width: 100% !important;
        /* HARD reset to prevent any “shift left” rules */
        margin: 0 !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        text-indent: 0 !important;
        border: 0 !important;
        background: transparent !important;
        /* more left padding so text never touches the edge */
        padding: .5rem .75rem .5rem 1.25rem !important;
        text-align: left !important;
        line-height: 1.25rem;
        font-size: .875rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

        .policy-suggestions .dropdown-item:hover,
        .policy-suggestions .dropdown-item:focus {
            background-color: #f8f9fa !important;
            outline: none !important;
        }

/* Prevent clipping by common containers */
.card, .card-body, .modal-body {
    overflow: visible !important;
}


