@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

.dw-logo {
    width: 45px;
    float: left;
}
.dw-color-background {
    background-color: #2D3142 !important;
}
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}


.ant-btn-primary {
    color: #fff !important; /* Ensure text is white */
    background: #1b6ec2 !important; /* Match .btn-primary background */
    border-color: #1861ac !important; /* Match .btn-primary border */
}

.ant-btn-primary:hover,
.ant-btn-primary:focus {
    background: #0069d9 !important; /* Match Bootstrap .btn-primary:hover background */
    border-color: #0062cc !important; /* Match Bootstrap .btn-primary:hover border */
    color: #fff !important;
}

.ant-btn-primary:active {
    background: #0062cc !important; /* Match Bootstrap .btn-primary:active background */
    border-color: #005cbf !important; /* Match Bootstrap .btn-primary:active border */
    color: #fff !important;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

        .main .top-row > a, .main .top-row .btn-link {
            white-space: nowrap;
            margin-left: 1.5rem;
        }

.main .top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

    .sidebar .top-row {
        background-color: rgba(0,0,0,0.4);
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

    .sidebar .nav-item {
        font-size: 0.9rem;
        padding-bottom: 0.5rem;
    }

        .sidebar .nav-item:first-of-type {
            padding-top: 1rem;
        }

        .sidebar .nav-item:last-of-type {
            padding-bottom: 1rem;
        }

        .sidebar .nav-item a {
            color: #d7d7d7;
            border-radius: 4px;
            height: 3rem;
            display: flex;
            align-items: center;
            line-height: 3rem;
        }

            .sidebar .nav-item a.active {
                background-color: rgba(255,255,255,0.25);
                color: white;
            }

            .sidebar .nav-item a:hover {
                background-color: rgba(255,255,255,0.1);
                color: white;
            }

.content {
    padding-top: 1.1rem;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.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;
}

@media (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        display: none;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    app {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}

ul.two-column-list {
    display: flex;
    list-style-type: none;
    flex-wrap: wrap;
    width: 40em;
    padding: 0;
}

    ul.two-column-list li.full-wide {
        width: 100%;
        padding: 0 0 0 2em;
    }

    ul.two-column-list li.half-wide {
        width: 50%;
        padding: 0 0 0 2em;
    }

    ul.two-column-list li hr {
        margin-left: -2em;
    }

    ul.two-column-list li.extended-spacing {
        margin-bottom: 1em;
    }

ul.single-column-list {
    list-style-type: none;
    width: 40em;
    padding-left: 0px;
    padding-inline-start: 0px;
}

    ul.single-column-list li.full-wide {
        width: 100%;
        margin: 1em 0 1.5em 0;
    }

    ul.single-column-list li.half-wide {
        width: 50%;
    }

.select-box-header {
    margin: 0 0 0.5em 1em;
}

.loading-spinner {
    margin: auto;
    top: 10em;
}

.btn.checkout-button {
    width: 10em;
}

.btn.checkout-button.tall {
    height:4em;
}

.setup-background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: -1;
    background: url('img/setup_background.png') no-repeat center center scroll;
    background-size: cover;
    background-position: 0 0;
}
.setup-background {
    min-height: calc(100vh - 5rem);
}

.row-log-warning {
    background-color: #ccccc7 !important;
}

.row-log-error {
    background-color: #ffccc7 !important;
}

.label-disabled {
    color: gray;
}

.radio-button label {
    margin-left: 5px;
    display: flex;
    align-items: center;
}

.radio-button {
    display: flex;
    align-items: center;
}

.radio-button + .radio-button {
    margin-left: 50px;
}

.centered-element {
    display: flex;
    justify-content: center;
}
.spaced-heading {
    margin-top: 20px;
    margin-bottom: 30px;
}

/* Multicast portal selection table styling */
.multicast-target-selector .table th input.form-check-input,
.multicast-target-selector .table td input.form-check-input {
    margin: 0;
    position: relative;
    transform: translateY(0);
}

.multicast-target-selector .table th,
.multicast-target-selector .table td {
    vertical-align: middle;
}

/* Make the select all checkbox more visible */
.multicast-target-selector .table th input.form-check-input {
    width: 1.2em;
    height: 1.2em;
}

/* Center checkboxes properly */
.multicast-target-selector .form-check {
    margin: 0;
    padding: 0;
    min-height: auto;
}

/* Override Bootstrap default padding for better alignment */
.multicast-target-selector .table td,
.multicast-target-selector .table th {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.btn-auth-size {
    width: 230px; /* Fixed width to match expected style */
    height: 80px !important; /* Force the height */
    display: flex;
    flex-direction: column; /* Stack text lines vertically */
    justify-content: center; /* Center content (text lines) vertically */
    align-items: center; /* Center content (text lines) horizontally */
    text-align: center; /* Ensure text within lines is centered */
    padding: 0.5rem 0.75rem; /* Adjust as needed for text appearance */
}

/* Multicast child migration buttons - disabled styling */
.btn-multicast-child-disabled {
    background-color: #e9ecef !important;
    border-color: #e9ecef !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.65 !important;
}

.btn-multicast-child-disabled:hover,
.btn-multicast-child-disabled:focus,
.btn-multicast-child-disabled:active {
    background-color: #e9ecef !important;
    border-color: #e9ecef !important;
    color: #6c757d !important;
    box-shadow: none !important;
}

/* Ant Design disabled button styling for multicast children */
.ant-btn-multicast-child-disabled {
    background-color: #f5f5f5 !important;
    border-color: #d9d9d9 !important;
    color: rgba(0, 0, 0, 0.25) !important;
    cursor: not-allowed !important;
}

.ant-btn-multicast-child-disabled:hover,
.ant-btn-multicast-child-disabled:focus,
.ant-btn-multicast-child-disabled:active {
    background-color: #f5f5f5 !important;
    border-color: #d9d9d9 !important;
    color: rgba(0, 0, 0, 0.25) !important;
    box-shadow: none !important;
}

.allow-sticky .table-responsive table {
    border-top: none !important;
}

.allow-sticky .table-responsive table thead th {
    border-top: none !important;
}

.allow-sticky .ant-collapse-content,
.allow-sticky .ant-collapse-content-box,
.allow-sticky .ant-spin-nested-loading,
.allow-sticky .ant-spin-container {
    overflow: visible !important;
}

.allow-sticky .table-responsive {
    position: relative;
}

.table-responsive table {
    border-top: none !important;
    border-collapse: collapse !important;
}

.table-responsive table thead th {
    border-top: none !important;
    background-clip: padding-box;
}

.collapse-bottom-margin {
    margin-bottom: 2rem;
}

.scheduled-sync-table {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}