/* 
 * Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.
 * See LICENSE in the project root for license information.
 */

 html,
 body {
     width: 100%;
     height: 100%;
     margin: 0;
     padding: 0;
 }
 
 ul {
     margin: 0;
     padding: 0;
 }
 
 .ms-welcome__header {
    padding: 20px;
    padding-bottom: 30px;
    padding-top: 100px;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    align-items: center;
 }

 .ms-welcome__main {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-align-items: center;
    align-items: center;
    -webkit-flex: 1 0 0;
    flex: 1 0 0;
    padding: 10px 20px;
 }
 
 .ms-welcome__main > h2 {
     width: 100%;
     text-align: center;
 }
 
 .ms-welcome__features {
     list-style-type: none;
     margin-top: 20px;
 }
 
 .ms-welcome__features.ms-List .ms-ListItem {
     padding-bottom: 20px;
     display: -webkit-flex;
     display: flex;
 }
 
 .ms-welcome__features.ms-List .ms-ListItem > .ms-Icon {
     margin-right: 10px;
 }
 
 .ms-welcome__action.ms-Button--hero {
     margin-top: 30px;
 }
 
.ms-Button.ms-Button--hero .ms-Button-label {
  color: #0078d7;
}

.ms-Button.ms-Button--hero:hover .ms-Button-label,
.ms-Button.ms-Button--hero:focus .ms-Button-label{
  color: #005a9e;
  cursor: pointer;
}

b {
    font-weight: bold;
}


/* Bootstrap */
/* --- CSS Reset & Variables --- */
:root {
    --primary: #0b243b;
    --secondary: #6c757d;
    --success: #198754;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #0dcaf0;
    --light: #f8f9fa;
    --dark: #212529;
    --white: #fff;
    --spacer: 1rem;
}

* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, sans-serif; line-height: 1.5; }

/* --- Spacing (Margin & Padding) --- */
/* 0 = 0, 1 = .25rem, 2 = .5rem, 3 = 1rem, 4 = 1.5rem, 5 = 3rem */
.m-0 { margin: 0 !important; } .p-0 { padding: 0 !important; }
.mt-3 { margin-top: var(--spacer) !important; }
.mb-3 { margin-bottom: var(--spacer) !important; }
.ms-auto { margin-left: auto !important; }
.me-auto { margin-right: auto !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

.p-3 { padding: var(--spacer) !important; }
.px-3 { padding-left: var(--spacer) !important; padding-right: var(--spacer) !important; }
.py-2 { padding-top: calc(var(--spacer) * 0.5) !important; padding-bottom: calc(var(--spacer) * 0.5) !important; }

/* --- Text Colors --- */
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-white { color: var(--white) !important; }
.text-muted { color: #6c757d !important; }

/* --- Background Colors --- */
.bg-primary { background-color: var(--primary) !important; }
.bg-light { background-color: var(--light) !important; }
.bg-dark { background-color: var(--dark) !important; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.35rem 0.6rem;
    font-size: 1rem;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    transition: all 0.2s;
}
.btn-primary { color: #fff; background-color: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background-color: #153b5f; }
.btn-outline-secondary { color: var(--secondary); border-color: var(--secondary); background: none; }
.btn-outline-secondary:hover { background-color: var(--secondary); color: #fff; }

/* --- Inputs --- */
.form-control {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    color: #212529;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.form-control:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
.form-label { margin-bottom: 0.5rem; display: inline-block; }

/* --- Custom Searchable Select Component --- */
.custom-select {
    position: relative;
    display: block;
    width: 100%;
}

.custom-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.25rem 2rem 0.25rem 0.5rem;
    font-size: 0.875rem;
    color: #212529;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    min-height: 32px;
    box-sizing: border-box;
}

.custom-select-trigger:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(11, 36, 59, 0.25);
}

.custom-select-trigger.has-value {
    color: #212529;
}

.custom-select-trigger.placeholder {
    color: #6c757d;
}

.custom-select-arrow {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #6c757d;
    transition: transform 0.2s ease;
    pointer-events: none;
}

.custom-select-trigger.open .custom-select-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 0.25rem 0.25rem;
    box-shadow: 0 4px 6px rgba(11, 36, 59, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
}

.custom-select-dropdown.open {
    display: block;
}

.custom-select-search-wrapper {
    position: relative;
    width: 100%;
}

.custom-select-search {
    padding: 0.25rem;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    background: white;
}

.custom-select-search input {
    width: 100%;
    padding: 0.25rem 0.5rem;
    padding-right: 1.5rem;
    font-size: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    outline: none;
    box-sizing: border-box;
}

.custom-select-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(11, 36, 59, 0.15);
}

.custom-select-search-clear {
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: #6c757d;
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    line-height: 1;
    padding: 0;
}

.custom-select-search-clear:hover {
    background: var(--primary);
}

.custom-select-search.has-value .custom-select-search-clear {
    display: flex;
}

.custom-select-option {
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 0.875rem;
    color: #212529;
    min-height: 28px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.custom-select-option:hover {
    background-color: rgba(11, 36, 59, 0.1);
}

.custom-select-option.selected {
    background-color: rgba(11, 36, 59, 0.15);
    font-weight: 500;
}

.custom-select-option.highlighted {
    background-color: rgba(11, 36, 59, 0.2);
}

.custom-select-option.no-results {
    color: #6c757d;
    cursor: default;
    font-style: italic;
}

.custom-select-option.no-results:hover {
    background-color: transparent;
}

.custom-select-option.disabled {
    cursor: default;
    pointer-events: none;
}

.custom-select-option.placeholder-option {
    color: #6c757d;
    font-style: italic;
    font-weight: normal;
}

.custom-select-option.placeholder-option:hover {
    background-color: transparent;
}

/* Hide original select elements */
.original-select {
    display: none;
}

/* Row layout for selects with buttons */
.row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.row .custom-select {
    flex: 1;
}

.row .btn {
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 0;
}