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

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 600;
}

@font-face { 
    font-family: 'Raleway';
    src: url('../fonts/Raleway-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'RalewayBold';
    src: url('../fonts/Raleway-Bold.ttf') format('truetype');
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

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

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    /*box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;*/
}

.content {
    padding-top: 1.1rem;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #121212 !important;
    background-color: #E6E6E6 !important;
    font-weight: 600 !important;
}

.nav-link {
    color: #121212 !important;
    font-weight: 600 !important;
}

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

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2x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uNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.top-row-height {
    /*height: 6rem !important;*/
}

.fs-12px {
    font-size: 12px !important;
}

.sidebar {
    /*background-image: linear-gradient(180deg, rgb(31 31 31) 0%, #050505 70%) !important;*/
    width: 270px;
    height: 90vh;
    position: sticky;
    top: 0;
    padding: 0 5px;
}

    .sidebar .navbar {
        background: white;
        padding: 10px;
        margin-top: 10px;
        margin-left: 12px;
        margin-right: 12px;
        border-radius: 10px;
    }

.match-result-text {
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    margin-bottom: 45px;
}

.page {
    position: relative;
    display: flex;
    flex-direction: row;
    background: #F4F4F4;
    /*height: 100vh ;*/
}

body.iframe-login .page {
    height: 100vh;
}

.pageLogin {
    position: relative;
    display: flex;
    flex-direction: row;
    background: #F4F4F4;
    height: 100vh;
}
main {
    flex: 1
}

footer {
    bottom: -24px !important;
    background: #fff !important;
}

.top-row-bg {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
}

.fixed-header {
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1;
}

.scrollable-table .table-container {
    height: 70vh;
    overflow: auto;
}

.scrollable-table .table thead tr {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f4f4f4;
}

.hidden {
    display: none;
}

.w-2 {
    width: 2%;
}

.w-4 {
    width: 4%;
}

.w-5 {
    width: 5%;
}

.w-6 {
    width: 6%;
}

.w-7 {
    width: 7%;
}

.w-8 {
    width: 8%;
}

.w-10 {
    width: 10%;
}

.w-15 {
    width: 15%;
}

.w-20 {
    width: 20%;
}
.w-25 {
    width: 25%;

}.w-28 {
    width: 28%;
}

.w-30 {
    width: 30%;
}
.w-35 {
    width: 35%;
}

.w-40 {
    width: 40%;
}

.w-80 {
    width: 80%;
}

.title {
    font-family: sans-serif;
    font-weight: 600 !important;
    z-index: 9999;
}

.text-ellipsis {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    line-height: 1.5;
    word-break: break-all !important;
}

.modal-dialog {
    margin-top: 110px;
}

.toast-notify {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    margin: 0;
    z-index: 10;
    overflow: hidden;
    margin: 0 0 6px;
    padding: 15px 15px 15px 15px;
    width: 300px;
    border-radius: 3px;
    background-position: 15px center;
    background-repeat: no-repeat;
    background-size: 24px;
    box-shadow: 0 0 12px #999;
    color: #fff;
}

    .toast-notify.error {
        background-color: #bd362f;
    }

.t-area-resize-none {
    overflow: hidden;
    border: none;
    resize: none;
    outline: none;
}

.w-48 {
    width: 48%;
}

.w-1 {
    width: 1%;
}

.color-gray {
    color: #727272 !important;
}

.breadcrumb-font-size {
    font-size: 14px !important;
}

.input-style {
    border: none !important;
    border-bottom: solid 1px #7272725c !important;
    border-radius: 0 !important;
}

.input-disable-style {
    border: none !important;
    border-bottom: solid 1px #7272725c !important;
    border-radius: 0 !important;
    background: white !important;
    color: #bbbbbb !important;
    padding-left: 0px;
}

.display-contents {
    display: contents !important;
}

.table-td-space {
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

td a {
    word-break: break-all !important;
}

.tile {
    padding: 23px 29px;
    border-radius: 8px;
    background-color: #ffffff;
}

.tile-header {
    font: normal normal 600 16px/24px Poppins;
    letter-spacing: 0.05px;
    color: #2B2B2BDD;
    margin-bottom: 20px;
}

.field-label {
    font: normal normal bold 11px/16px RalewayBold;
    letter-spacing: 0.37px;
    color: #3C3C3C;
}

.field-highlight-none:focus {
    outline: 0px !important;
    box-shadow: none;
}

textarea, input, select {
    font: normal normal normal 16px/21px Raleway !important;
    letter-spacing: 0.2px;
    color: #727272 !important;
}

.popover .popover-body .popover-dark-parent {
    overflow: hidden;
    border-radius: 4px;
}

    .popover .popover-body .popover-dark-parent .popover-dark {
        background-color: #585858;
        color: #fff;
        font: normal normal normal 11px/16px Raleway !important;
        border-color: #585858;
        padding: 1rem 1rem;
    }

.popover .popover-body {
    padding: 0 !important;
}

.popover .popover-header {
    background-color: #585858;
    color: #fff;
    border-color: #585858;
}

.popover .popover-arrow::after {
    border-right-color: #585858 !important;
}

.showConfirmDialogBtn {
    border: none;
    background: transparent;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: var(--bs-breadcrumb-divider, ">") !important;
}

.border-radius-10 {
    border-radius: 10px !important;
}

.job-log-block {
    max-height: 50vh;
    overflow: auto;
}

.copy-id {
    cursor: pointer;
    color: #0071c1;
    position: relative;
    margin-right: 5px;
}

.copied {
    cursor: pointer;
    color: #198754;
    position: relative;
    margin-right: 5px;
}

.disabled-link {
    pointer-events: none; /* Prevents clicking */
    cursor: not-allowed;
    opacity: 0.5; /* Makes it look disabled */
}

button a {
    color: white !important;
    text-decoration: none !important;
}

.text-v-center {
    display: flex;
    align-items: center;
}

.edit-btn {
    border-radius: 50%;
    border: 2px solid #5E5E5E !important;
}

.add-more-action-btn {
    padding: 14px;
    font-size: 14px;
}

/* ===== ENHANCED DATABASE STATUS & TOGGLE STYLES ===== */

/* Status Container */
.status-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Enhanced Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

    .status-badge::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.5s;
    }

    .status-badge:hover::before {
        left: 100%;
    }

    .status-badge i {
        font-size: 1rem;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    }

.status-active {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

    .status-active:hover {
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
        transform: translateY(-1px);
    }

.status-inactive {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.4);
}

    .status-inactive:hover {
        box-shadow: 0 6px 20px rgba(107, 114, 128, 0.5);
        transform: translateY(-1px);
    }

/* Modern Toggle Action Container */
.toggle-action-container {
    position: relative;
}

.toggle-form {
    margin: 0;
}

/* Enhanced Toggle Button */
.toggle-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

    .toggle-btn:hover {
        transform: translateY(-2px);
    }

    .toggle-btn:active {
        transform: translateY(0);
    }

    .toggle-btn.loading {
        pointer-events: none;
        opacity: 0.7;
    }

        .toggle-btn.loading .toggle-slider {
            animation: pulse 1.5s infinite;
        }

/* Toggle Button States */
/*.toggle-btn-active {
    background: linear-gradient(135deg, #fef3c7, #f59e0b);
    color: #92400e;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

    .toggle-btn-active:hover {
        background: linear-gradient(135deg, #fde68a, #d97706);
        box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
    }

.toggle-btn-inactive {
    background: linear-gradient(135deg, #dcfdf4, #10b981);
    color: #065f46;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

    .toggle-btn-inactive:hover {
        background: linear-gradient(135deg, #a7f3d0, #059669);
        box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    }*/

/* Modern Toggle Slider */
.toggle-slider {
    position: relative;
    width: 50px;
    height: 24px;
    border-radius: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

    .toggle-slider.active {
        background: linear-gradient(135deg, #10b981, #059669);
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .toggle-slider.inactive {
        background: linear-gradient(135deg, #d1d5db, #9ca3af);
        box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    }

/* Toggle Knob */
.toggle-knob {
    position: absolute;
    top: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.toggle-slider.active .toggle-knob {
    transform: translateX(26px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toggle-slider.inactive .toggle-knob {
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Toggle Label */
.toggle-label {
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Enhanced Action Buttons */
.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.action-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

    .action-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.2);
        transform: scale(0);
        border-radius: 50%;
        transition: transform 0.3s ease;
    }

    .action-btn:hover::before {
        transform: scale(1);
    }

    .action-btn:hover {
        transform: translateY(-2px);
    }

    .action-btn:active {
        transform: translateY(0);
    }

    /* Ensure icons are visible and have good contrast */
    .action-btn i {
        color: white !important;
        font-weight: bold;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        position: relative;
        z-index: 1;
    }

    .action-btn:hover i {
        color: white !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    }

.edit-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

    .edit-btn:hover {
        background: linear-gradient(135deg, #2563eb, #1e40af);
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    }

    /* Specific styling for network-wired icon visibility */
    .edit-btn .fa-network-wired {
        color: white !important;
        font-weight: 900 !important;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
    }

    .edit-btn:hover .fa-network-wired {
        color: #ffffff !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6) !important;
        filter: brightness(1.1);
    }

.delete-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

    .delete-btn:hover {
        background: linear-gradient(135deg, #dc2626, #b91c1c);
        box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    }

.view-btn {
    background: linear-gradient(135deg, #40c859d6, #007115);
    color: white !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}
    .view-btn:hover {
        background: linear-gradient(135deg, #1af443, #1af443);
        box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
    }


.add-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

    .add-btn:hover {
        background: linear-gradient(135deg, #2563eb, #1e40af);
        box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
    }
/* Connection String Cell Styling */
.connection-string-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    .connection-string-cell span {
        cursor: help;
        padding: 4px 8px;
        border-radius: 4px;
        transition: background-color 0.3s ease;
    }

        .connection-string-cell span:hover {
            background-color: rgba(59, 130, 246, 0.1);
        }

/* Table Row Hover Effect */
.table-hover tbody tr:hover {
    background-color: rgba(59, 130, 246, 0.03);
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .status-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
        gap: 6px;
    }

    .toggle-btn {
        font-size: 0.75rem;
        padding: 6px 12px;
        gap: 8px;
    }

    .toggle-slider {
        width: 40px;
        height: 20px;
    }

    .toggle-knob {
        width: 16px;
        height: 16px;
    }

    .toggle-slider.active .toggle-knob {
        transform: translateX(20px);
    }

    .action-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .action-buttons {
        gap: 6px;
    }
}

/* Loading state for entire row */
.table-row-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

    .table-row-loading::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
        animation: loading-shimmer 1.5s infinite;
    }

@keyframes loading-shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Submenu visuals */
.sidebar .nav #subscriptionsToggler .chevron {
    transition: transform .2s ease;
}

.sidebar .nav #subscriptionsToggler[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}

.sidebar .submenu {
    margin-left: .5rem;
    padding-left: .75rem;
    border-left: 2px solid rgba(255, 255, 255, .15);
}

    .sidebar .submenu .nav-link {
        padding: .35rem .5rem;
        font-size: .92rem;
        color: rgba(255, 255, 255, .85);
        background: transparent;
        border-radius: .25rem;
    }

        .sidebar .submenu .nav-link:hover {
            color: #fff;
            background: rgba(255, 255, 255, .08);
        }

        .sidebar .submenu .nav-link.active {
            color: #fff;
            background: rgba(255, 255, 255, .15);
        }

    /* Slightly smaller icons for submenu */
    .sidebar .submenu .btn-circle {
        transform: scale(0.9);
        opacity: .9;
    }
