﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
  color: #0366d6;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

.footer {
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
}

.fontpassword {
    position: relative;
}

    .fontpassword i {
        position: absolute;
        right: 15px;
        top: 10px;
        color: gray;
    }

.main-header {
    background-color: #1994d2 !important;
}

/*.logout-link {
    color: white !important;
}*/

/* Sign in page style - see updated rules below
-------------------------------------------------- */

.sign-form__separator {
    text-align: center;
    position: relative;
    display: flex;
    justify-content: center;
}

    .sign-form__separator::before {
        content: "";
        position: absolute;
        bottom: 50%;
        transform: translateY(-50%);
        left: 0;
        right: 0;
        height: 1px;
        background-color: #e5e8ef;
    }

    .sign-form__separator span {
        display: inline-block;
        padding: 0 0.5rem;
        background-color: white;
        z-index: 1;
        position: relative;
        font-size: 14px;
        color: #71839b;
    }

.btn-xanablue {
    background: #1994d2;
    color: azure;
}

.btn-xanared {
    background: #DA6A5B;
    color: azure;
}

.full-sidebar {
    position: relative;
    /*    background: #3c7ef3;
*/  /*background: #C9D5DF;*/
    background: #1994d2;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

    .full-sidebar .full-sidebar-logo {
        z-index: 2;
        user-select: none;
    }

   /* .full-sidebar .box-shapes {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1;
        overflow: hidden;
    }

        .full-sidebar .box-shapes .bs-inner {
            width: 540px;
            height: 540px;
            position: absolute;
            top: 0;
            right: 0;
            transform: translate(50%,-50%);
        }

            .full-sidebar .box-shapes .bs-inner > div:nth-child(1) {
                position: absolute;
                top: 0;
                right: 0;
                bottom: 0;
                left: 0;
                border: 70px solid #1994d2;
                border-radius: 50%;
                animation: pulse 4s infinite alternate;
            }

            .full-sidebar .box-shapes .bs-inner > div:nth-child(2) {
                width: 40%;
                height: 40%;
                border-radius: 50%;
                background: #1994d2;
                position: absolute;
                left: 30%;
                top: 30%;
                animation: pulse 3.5s infinite alternate;
            }

            .full-sidebar .box-shapes .bs-inner.bottom-left {
                top: auto;
                right: auto;
                bottom: 0;
                left: 0;
                transform: translate(-50%,50%);
            }

        .full-sidebar .box-shapes .bs-siblings {
            width: 50px;
            height: 65px;
            position: absolute;
            top: 25%;
            left: 15%;
            animation: rotateCircle 60s infinite alternate;
        }

            .full-sidebar .box-shapes .bs-siblings > div:nth-child(1) {
                width: 16px;
                height: 16px;
                border-radius: 50%;
                background: #1994d2;
            }

            .full-sidebar .box-shapes .bs-siblings > div:nth-child(2) {
                width: 42px;
                height: 42px;
                border-radius: 50%;
                background: #1994d2;
                position: absolute;
                bottom: 0;
                right: 0;
            }

            .full-sidebar .box-shapes .bs-siblings.second {
                top: auto;
                left: auto;
                bottom: 25%;
                right: -3%;
                animation: rotateCircleAround 60s infinite alternate;
            }

            .full-sidebar .box-shapes .bs-siblings > div:nth-child(1) {
                width: 16px;
                height: 16px;
                border-radius: 50%;
                background: #1994d2;
            }

            .full-sidebar .box-shapes .bs-siblings > div:nth-child(2) {
                width: 42px;
                height: 42px;
                border-radius: 50%;
                background: #1994d2;
                position: absolute;
                bottom: 0;
                right: 0;
            }*/

    .full-sidebar .box-bottom-text {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        z-index: 2;
        opacity: .75;
        width: 90%;
        text-align: center;
    }

.sign-form__buttons {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 0 -8px;
}

    .sign-form__buttons a {
        display: block;
        padding: 0.65rem;
        background-color: white;
        border: 1px solid #e5e8ef;
        border-radius: 5px;
        transition: background-color .2s ease;
        color: #133159;
        text-align: center;
        font-weight: 500;
        width: 100%;
        font-size: 14px;
        margin: 0 8px;
    }

@keyframes pulse {
    0% {
        transform: scale(1)
    }

    100% {
        transform: scale(1.1)
    }
}

@keyframes rotateCircle {
    0% {
        transform: rotate(0)
    }

    100% {
        transform: rotate(360deg)
    }
}

@keyframes rotateCircleAround {
    0% {
        transform: rotate(0)
    }

    100% {
        transform: rotate(-360deg)
    }
}

/* Portal UI refresh */
:root {
    --brand-900: #0f2a4a;
    --brand-700: #174f8a;
    --brand-500: #1f7cc9;
    --brand-300: #6bb4e8;
    --ink-900: #142033;
    --ink-700: #32445f;
    --ink-500: #586a85;
    --surface: #f5f8fc;
    --surface-elevated: #ffffff;
    --border: #d9e2ef;
    --shadow: 0 20px 60px rgba(15, 42, 74, 0.12), 0 4px 14px rgba(15, 42, 74, 0.08);
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --focus: rgba(31, 124, 201, 0.35);
}

body {
    font-family: "Manrope", "Segoe UI", Tahoma, sans-serif;
    color: var(--ink-900);
    background-color: var(--surface);
    background-image: radial-gradient(circle at 10% 10%, rgba(107, 180, 232, 0.18), transparent 45%),
        radial-gradient(circle at 90% 20%, rgba(31, 124, 201, 0.12), transparent 45%),
        linear-gradient(180deg, #f7faff 0%, #f3f7fd 100%);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin-bottom: 0;
}

body .footer {
    position: fixed;
    bottom: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
}

h1, h2, h3, h4, .display-4 {
    font-family: "Fraunces", "Segoe UI", Tahoma, serif;
    color: var(--ink-900);
    letter-spacing: 0.2px;
}

a {
    color: var(--brand-700);
    text-decoration: none;
}

    a:hover {
        color: var(--brand-900);
        text-decoration: underline;
    }

main {
    padding: 1.5rem 0 0;
}

.container {
    max-width: 1200px;
}

.main-header {
    background: linear-gradient(120deg, var(--brand-900), var(--brand-500)) !important;
    border-bottom: none;
    box-shadow: 0 10px 30px rgba(15, 42, 74, 0.2);
}

    .main-header .navbar-brand {
        color: #fff;
        font-weight: 600;
        letter-spacing: 0.3px;
    }

    .main-header .nav-link,
    .main-header .navbar-nav .nav-link {
        color: rgba(255, 255, 255, 0.9) !important;
        font-weight: 500;
    }

    .main-header .btn-outline-light {
        color: #fff;
        border-color: rgba(255, 255, 255, 0.4);
    }

    .main-header .logout-link {
        color: #fff !important;
    }

    .main-header .nav-active {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.15);
        border-radius: var(--radius-sm);
        font-weight: 600;
    }

.footer {
    background: rgba(255, 255, 255, 0.85);
    border-top: 1px solid var(--border);
}

.form-control, .k-textbox, .k-input, .k-dropdown {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background-color: #fff;
    box-shadow: 0 1px 0 rgba(15, 42, 74, 0.02);
}

    .form-control:focus, .k-textbox:focus, .k-input:focus, .k-dropdown:focus {
        border-color: var(--brand-500);
        box-shadow: 0 0 0 0.2rem var(--focus);
    }

.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    letter-spacing: 0.2px;
}

.btn-primary {
    background-color: var(--brand-700);
    border-color: var(--brand-700);
}

.btn-primary:hover {
    background-color: var(--brand-900);
    border-color: var(--brand-900);
}

.btn-xanablue {
    background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
    border: none;
    color: #fff;
    box-shadow: 0 10px 20px rgba(23, 79, 138, 0.22);
}

.btn-xanared {
    background: linear-gradient(135deg, #b54a3c, #da6a5b);
    border: none;
    color: #fff;
    box-shadow: 0 10px 20px rgba(181, 74, 60, 0.2);
}

.action-login.btn:not(.btn-xanablue):not(.btn-xanared) {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--ink-700);
}

.sign-page {
    display: grid;
    grid-template-columns: minmax(260px, 38%) 1fr;
    background: var(--surface-elevated);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    flex: 1;
}

/* Login page adjustments */
body:has(.sign-page) > .container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

body:has(.sign-page) > .container > main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
}

.sign-page__decor {
    position: relative;
    width: auto;
}

.sign-page__form {
    width: 100%;
    background: linear-gradient(160deg, #ffffff 0%, #f8fbff 100%);
    display: flex;
    align-items: center;
}

.sign-form {
    max-width: 560px;
    margin: 0 auto;
    padding: 3.5rem 3.5rem;
    min-height: auto;
}

.full-sidebar {
    position: relative;
    background: linear-gradient(160deg, #0f2a4a 0%, #1f7cc9 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    overflow: hidden;
}

    .full-sidebar::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.25), transparent 45%),
            radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.15), transparent 50%);
        opacity: 0.7;
    }

    .full-sidebar::after {
        content: "";
        position: absolute;
        width: 320px;
        height: 320px;
        right: -140px;
        bottom: -140px;
        background: rgba(255, 255, 255, 0.12);
        border-radius: 50%;
        filter: blur(2px);
    }

    .full-sidebar .full-sidebar-logo {
        position: relative;
        z-index: 2;
        padding: 1.5rem;
    }

    .full-sidebar img {
        max-width: 240px;
        width: 100%;
        height: auto;
        filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.25));
    }

.sign-form__separator span {
    background-color: var(--surface-elevated);
}

.form-group label {
    font-weight: 600;
    color: var(--ink-700);
}

.fontpassword i {
    top: 12px;
    color: #8a97ab;
}

.sign-form__buttons a {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    box-shadow: 0 10px 20px rgba(15, 42, 74, 0.08);
}

@media (max-width: 991.98px) {
    .sign-page {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .sign-page__decor {
        min-height: 220px;
    }

    .sign-form {
        padding: 2.75rem 2rem 3rem;
    }
}

@media (max-width: 575.98px) {
    .sign-form {
        padding: 2.5rem 1.5rem 3rem;
    }

    .full-sidebar img {
        max-width: 200px;
    }
}

/* ============================================
   Professional Portal UI
   ============================================ */

/* Page Headers */
.page-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    margin: 0;
    font-size: 1.65rem;
    font-weight: 700;
}

.page-subtitle {
    margin: 0.2rem 0 0;
    color: var(--ink-500);
    font-size: 0.8125rem;
    font-weight: 400;
}

/* Content Cards */
.content-card {
    background: var(--surface-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(15, 42, 74, 0.06);
    overflow: hidden;
}

.content-card .k-grid {
    border: none;
    border-radius: 0;
}

.content-card .k-grid-header {
    border-top: none;
}

/* Status Badges */
.k-grid td:has(.status-badge) {
    text-overflow: clip;
    overflow: visible;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.5;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-badge--active {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge--inactive {
    background: #fce4ec;
    color: #c62828;
}

.status-badge--pending {
    background: #fff3e0;
    color: #e65100;
}

.status-badge--info {
    background: #e3f2fd;
    color: #1565c0;
}

/* Kebab Menu */
.kebab-col-header .k-link {
    display: none;
}

.kebab-wrapper {
    text-align: center;
}

.kebab-btn {
    background: none;
    border: 1px solid transparent;
    cursor: pointer;
    padding: 0.3rem 0.55rem;
    border-radius: var(--radius-sm);
    color: var(--ink-500);
    transition: all 0.15s ease;
    font-size: 1rem;
    line-height: 1;
}

.kebab-btn:hover {
    background: var(--surface);
    border-color: var(--border);
    color: var(--ink-900);
}

.kebab-menu-items {
    display: none !important;
}

.kebab-dropdown-menu {
    position: fixed;
    z-index: 10060;
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px rgba(15, 42, 74, 0.16), 0 2px 6px rgba(15, 42, 74, 0.08);
    min-width: 180px;
    padding: 0.3rem 0;
    animation: kebabFadeIn 0.1s ease;
}

@keyframes kebabFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.kebab-dropdown-menu .kebab-action {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1rem;
    color: var(--ink-700);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.1s ease;
    white-space: nowrap;
}

.kebab-dropdown-menu .kebab-action:hover {
    background: var(--surface);
    color: var(--ink-900);
    text-decoration: none;
}

.kebab-dropdown-menu .kebab-action i {
    width: 16px;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--ink-500);
}

.kebab-dropdown-menu .kebab-action:hover i {
    color: var(--ink-700);
}

.kebab-dropdown-menu .kebab-action--danger {
    color: #c62828;
}

.kebab-dropdown-menu .kebab-action--danger:hover {
    background: #fce4ec;
}

.kebab-dropdown-menu .kebab-action--danger i {
    color: #c62828;
}

.kebab-separator {
    height: 1px;
    background: var(--border);
    margin: 0.3rem 0;
}

/* Grid Toolbar Enhancements */
.k-grid-toolbar {
    padding: 0.65rem 1rem !important;
    background: transparent !important;
    border-bottom: 1px solid var(--border) !important;
    gap: 0.5rem;
}

.k-grid-toolbar .k-button {
    border-radius: var(--radius-sm) !important;
    font-weight: 600;
    font-size: 0.8125rem;
}

.k-grid-toolbar .k-grid-Add-User,
.k-grid-toolbar .k-grid-Add-Xanatek-User,
.k-grid-toolbar .k-grid-Add-Agency,
.k-grid-toolbar .k-grid-Add-Number,
.k-grid-toolbar .k-grid-Sync-Database-With-API {
    background: var(--brand-700) !important;
    border-color: var(--brand-700) !important;
    color: #fff !important;
}

.k-grid-toolbar .k-grid-Add-User:hover,
.k-grid-toolbar .k-grid-Add-Xanatek-User:hover,
.k-grid-toolbar .k-grid-Add-Agency:hover,
.k-grid-toolbar .k-grid-Add-Number:hover,
.k-grid-toolbar .k-grid-Sync-Database-With-API:hover {
    background: var(--brand-900) !important;
    border-color: var(--brand-900) !important;
}

.k-grid .k-grid-search {
    margin-left: auto;
    margin-right: 0;
    width: 350px;
}

/* Stats Cards */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--surface-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(15, 42, 74, 0.06);
    transition: box-shadow 0.2s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(15, 42, 74, 0.1);
}

.stat-card__value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--brand-700);
    line-height: 1.2;
}

.stat-card__label {
    font-size: 0.8125rem;
    color: var(--ink-500);
    font-weight: 500;
    margin-top: 0.25rem;
}

.stat-card--wide .stat-card__value {
    font-size: 0.9rem;
    color: var(--ink-700);
    font-weight: 600;
}

/* Filter Bar */
.filter-bar {
    margin-bottom: 1.25rem;
}

.filter-bar label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink-500);
    margin-bottom: 0.35rem;
    display: block;
}

/* Agency Tabs */
.agency-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 -1px 0;
    gap: 0;
}

.agency-tab {
    padding: 0.55rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink-500);
    cursor: pointer;
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: all 0.15s ease;
    user-select: none;
}

.agency-tab:hover {
    color: var(--ink-700);
    background: rgba(255, 255, 255, 0.5);
}

.agency-tab--active {
    color: var(--ink-900);
    background: var(--surface-elevated);
    border-color: var(--border);
}

.agency-tab-content > .content-card {
    border-top-left-radius: 0;
}

/* Inactive agency in filter */
.inactive-agency {
    color: #999;
    font-style: italic;
}


