﻿html,
body {
    font-family: Calibri, "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

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

.valid.modified:not([type="checkbox"]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    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,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk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A4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

.loader-container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    display: inline-block !important;
    position: relative !important;
    border: 6px solid transparent !important; 
    border-top-color: #102247 !important; 
    border-right-color: #2a77ae !important; 
    border-bottom-color: #68c0d6 !important; 
    border-left-color: transparent !important; 
    animation: rotation 1s linear infinite !important;
    box-sizing: border-box !important;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg) !important;
    }

    100% {
        transform: rotate(360deg) !important;
    }
}

code {
    color: #c02d76;
}

.mud-drawer {
    border-radius: 30px 30px 30px 30px !important;
}

.mud-drawer.mud-drawer-open {
    border-radius: 30px !important;
}

.mud-appbar {
    border-radius: 15px !important;
}

.nav-active-light {
    background: white !important;
    color: black !important;
    border-radius: 8px;
}

.nav-active-dark {
    background: linear-gradient(90deg, #102247 0%, #2a77ae 50%) !important;
    color: white !important;
    border-radius: 8px;
    margin : 0px 10px 0px 10px
}

.nav-active-light .mud-icon-root,
.nav-active-dark .mud-icon-root,
.nav-active-light .mud-nav-link-icon,
.nav-active-dark .mud-nav-link-icon {
    color: inherit !important;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.login-card {
    width: 100% !important;
    max-width: 450px !important;
    backdrop-filter: blur(10px) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 24px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}

.theme-button, .theme-button-delete {
    background: linear-gradient(90deg,#102247 0%,#2a77ae 50%,#68c0d6 100%);
    text-transform: none !important;
    font-size: 16px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.theme-button:hover, .theme-button-delete:hover {
    transform: scale(1.06);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15) !important;
}

.theme-button-inactive {
    background: #cbd5e1 !important;
    cursor: not-allowed;
}

.theme-button-active {
    background: linear-gradient(90deg,#102247 0%,#2a77ae 50%,#68c0d6 100%);
    color: white;
    text-transform: none;
    box-shadow: 0 4px 15px rgba(16, 34, 71, 0.3) !important;
    color: white !important;
}

.theme-button-delete {
    background: #F44336 !important;
    color: white !important;
    border-radius: 4px !important;
}

.main-nav-item-custom {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 100px !important;
    font-size: 18px;
}

.main-nav-icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
    display: inline-block;
}

.main-nav-text {
    display: inline-block;
    font-weight: 500;
    line-height: 1;
    vertical-align: middle;
}

.login-card {
    width: 100%;
    max-width: 450px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 24px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}

.login-button {
    border-radius: 12px !important;
    height: 48px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    font-size: 16px !important;
    color: white !important;
}

.login-button-inactive {
    background: #cbd5e1 !important;
    color: #475569 !important;
    cursor: not-allowed !important;
}

.login-button-active {
    background: linear-gradient( 90deg, #102247 0%, #2a77ae 50%, #68c0d6 100% ) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(16, 34, 71, 0.3);
    cursor: pointer !important;
}

.philsys-tab-pannel {
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.philsys-tab-pannel-active {
    background: linear-gradient(90deg, #102247 0%, #2a77ae 50%, #68c0d6 100%) !important;
    color: white !important;
}

.mud-theme-light .philsys-tab-pannel-inactive {
    background-color: var(--mud-palette-surface) !important;
    color: black;
}

.mud-theme-dark .philsys-tab-pannel-active {
    color: white !important;
}

.mud-theme-dark .philsys-tab-pannel-inactive {
    color: white !important; 
}

.philsys-custom-tabs .mud-tabs-scroll-button {
    display: none !important;
}
.philsys-rounded-input .mud-input-outlined {
    border-radius: 12px !important;
}

.philsys-rounded-input fieldset {
    border-radius: 12px !important;
}

.philsys-custom-tabs .mud-tab {
    border: 1px solid gray;
    max-height: 45px;
    font-size: clamp(12px, 2.5vw, 15px);
    white-space: nowrap;
}

.philsys-form-container {
    margin: 0 auto;
}
.mud-tab-slider {
    display: none !important;
}

.philsys-form-wrapper {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 16px;
    box-sizing: border-box;
}

.philsys-liveness-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(90deg, #102247 0%, #2a77ae 50%, #68c0d6 100%) !important;
}

.philsys-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden; 
}

.philsys-loader-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    max-height: 100vh;
}

.philsys-loader-paper {
    border-radius: 20px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    width: min(90%, 425px);
    height: 200px;
    max-height: 100vh;
    background: #fff;
    box-sizing: border-box;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1), 0 0 40px rgba(0, 0, 0, 0.05), 0 0 60px rgba(0, 0, 0, 0.03);
    animation: fadeIn 0.4s ease-in-out;
}

.philsys-loader-text {
    margin-top: 3px !important;
    color: #333;
    letter-spacing: 0.3px;
    word-wrap: break-word;
    max-width: 100%;
    font-size: clamp(0.9rem, 2.5vw, 1.3rem) !important;
}

.mud-table th {
    font-weight: 700 !important;
    text-align: center;
    font-size: 18px;
}

.mud-table td {
    align-items: center;
    text-align: center;
    font-size: 16px;
    white-space: normal !important;
}

.mud-table-cell {
    min-width: 150px !important;
    white-space: normal;
    flex: 0 0 auto;
    white-space: nowrap;
}

.responsive-title {
    font-size: 20px !important; 
}

@media (max-width: 600px) {
    .responsive-title {
        font-size: 13px !important;
        white-space: normal;
    }
}

.responsive-table-container {
    overflow-x: auto;
    width: 100%;
    height: 100%;
}

