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

@font-face {
    font-family: CairoRegular;
    src: url(Cairo-Regular.ttf);
}

html, body {
/*    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;*/
    font-family: CairoRegular;
    font-size: 15px;
}

.nopadding {
    padding: 0 !important;
    margin: 0 !important;
}

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



/* loader */
.landing {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    height: 100%;
    width: 100%;
    z-index: 1;
    background: linear-gradient(145deg, #050d1a 0%, #0a1525 50%, #0d2137 100%);
}

/* Content-area loading overlay — sidebar & topbar stay visible */
.rabta-loading-overlay,
.centered {
    position: absolute;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(165deg, #050d1a 0%, #0a1525 48%, #0d1f35 100%);
    pointer-events: all;
    border-radius: inherit;
}

[data-app-theme="light"] .rabta-loading-overlay,
[data-app-theme="light"] .centered {
    background: linear-gradient(165deg, #eef2f7 0%, #e4ebf3 48%, #d8e3ee 100%);
}

.rabta-loading-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 2.5rem;
    border-radius: 20px;
    background: rgba(10, 21, 37, 0.88);
    border: 1px solid rgba(0, 229, 212, 0.2);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

[data-app-theme="light"] .rabta-loading-card {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(0, 180, 170, 0.28);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.1);
}

/* Inline spinner — used inside list/card panels (not full content overlay) */
.rabta-loading-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 1.5rem 0;
    width: 100%;
}

.rabta-loading-card--inline {
    padding: 1.5rem 2rem;
}

/* Prevent double full-page overlays: page spinner wins over nested panel spinners */
.tw-page-content:has(> .rabta-loading-overlay) .rabta-page-body > .rabta-loading-overlay,
.tw-page-content:has(> .rabta-loading-overlay) #PrintDiv > .rabta-loading-overlay {
    display: none !important;
}

#chartdiv {
    width: 100%;
    height: 500px;
}

.main-body {
    padding: 1rem;
    margin-top: 5px;
    color: var(--tw-text, #1e293b);
    text-align: right;
    background: var(--tw-card, #ffffff);
    border-radius: var(--tw-radius, 16px);
    border: 1px solid rgba(10, 117, 173, 0.08);
    box-shadow: var(--tw-shadow, 0 10px 40px rgba(10, 117, 173, 0.12));
}

/* Global modern form enhancements */
.form-control {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.6rem 0.85rem;
}

.form-control:focus {
    border-color: #0a75ad;
    box-shadow: 0 0 0 3px rgba(10, 117, 173, 0.15);
}

.btn {
    border-radius: 10px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.custom-select {
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-select:focus {
    border-color: #0a75ad;
    box-shadow: 0 0 0 3px rgba(10, 117, 173, 0.15);
}

.alert {
    border-radius: 12px;
    border: none;
}

.card {
    border-radius: 16px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.well {
    border-radius: 12px;
}

.card {
    box-shadow: 0 1px 3px 0 rgba(0,0,0,.1), 0 1px 2px 0 rgba(0,0,0,.06);
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 0 solid rgba(0,0,0,.125);
    border-radius: .25rem;
}

.card-body {
    flex: 1 1 auto;
    min-height: 1px;
    padding: 1rem;
}

.gutters-sm {
    margin-right: -8px;
    margin-left: -8px;
}

    .gutters-sm > .col, .gutters-sm > [class*=col-] {
        padding-right: 8px;
        padding-left: 8px;
    }

.mb-3, .my-3 {
    margin-bottom: 1rem !important;
}

.bg-gray-300 {
    background-color: #e2e8f0;
}

.h-100 {
    height: 100% !important;
}

.shadow-none {
    box-shadow: none !important;
}


