@import url('fonts.css');

/*.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

.loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}
*/
.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;
}




* {
    font-family: 'Iran Sans';
}

html, body {
    font-family: 'Iran Sans';
}

h1:focus {
    outline: none;
}

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

.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 {
    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: 5001;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

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

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

.status-bar-safe-area {
    display: none;
}

@supports (-webkit-touch-callout: none) {
    .status-bar-safe-area {
        display: flex;
        position: sticky;
        top: 0;
        height: env(safe-area-inset-top);
        background-color: #f7f7f7;
        width: 100%;
        z-index: 1;
    }

    .flex-column, .navbar-brand {
        padding-left: env(safe-area-inset-left);
    }
}


.loadingSpinner-section {
    background-color: rgb(255 255 255 / 0.80);
    z-index: 5000 !important;
}

.loadingSpinner-section .distance-spinner {
    width: 5rem !important;
    height: 5rem !important;
    aspect-ratio: 1;
    display: grid;
    border: 5px solid #0000;
    border-radius: 50%;
    border-right-color: #25b09b;
    animation: l15 1s infinite linear;
}

.loadingSpinner-section .distance-spinner::before,
.loadingSpinner-section .distance-spinner::after {
    content: "";
    grid-area: 1/1;
    margin: 2px;
    border: inherit;
    border-radius: 50%;
    animation: l15 2s infinite;
}

.loadingSpinner-section .distance-spinner::after {
    margin: 8px;
    animation-duration: 3s;
}

@keyframes l15 {
    100% {
        transform: rotate(1turn)
    }
}

#layout-navbar {
    background-color: #6861ce !important;
    width: 100% !important;
    border-radius: 0;
    margin: 0;
    position: fixed;
    top: 0;
}

.dashboard .org-card {
    color: #444444;
    cursor: pointer;
    box-shadow: 0px 0 30px rgba(1, 41, 112, 0.1);
}
/* departments */
.dashboard .dep-card h6 {
    font-size: 28px;
    color: #012970;
    font-weight: 700;
    margin: 0;
    padding: 0;
}

.dashboard .card-icon {
    font-size: 32px;
    line-height: 0;
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    flex-grow: 0;
}

.dashboard .bedroom-card .card-icon {
    color: #4154f1;
    background: #f6f6fe;
}

.dashboard .garage-card .card-icon {
    color: #2eca6a;
    background: #e0f8e9;
}

.dashboard .living-card .card-icon {
    color: #2eca6a;
    background: #e0f8e9;
}

.dashboard .kitchen-card .card-icon {
    color: #ff771d;
    background: #ffecdf;
}

.dashboard .dep-container {
    overflow: auto;
}

.dashboard .dep-card {
    background-color: #fff;
    background-clip: border-box;
    padding: 20px;
    border: none;
    border-radius: 5px;
    box-shadow: 0px 0 30px rgba(1, 41, 112, 0.1);
    flex-shrink: 0;
    /* width: 104px; */
    white-space: nowrap;
    margin-bottom: 15px;
    margin-right: 15px;
    cursor: pointer;
    border-top: 4px solid #fff;
}
.dashboard .dep-card.active {
    border-top: 4px solid #8CDDCD;
}
    /*.dashboard .dep-container div:first-child .dep-card {
    margin-right: 0;
}*/
    /*.dashboard .dep-container div:last-child .dep-card {
    margin-left: 15px;
}*/
    .dashboard .dep-card .card-title {
        padding: 15px 0 5px 0;
        font-size: 16px;
        font-weight: 500;
        color: #012970;
        margin: 0;
        overflow: hidden;
        text-overflow: clip;
    }

.dashboard .dep-card .card-title span {
    color: #012970;
    font-size: 15px;
    font-weight: 400;
}

.dashboard .dep-devices {
    margin-top: 2rem;
}

.dashboard .port-container {
    margin-left: -10px;
}

.card.port-card {
    /*width: 48%;*/
    flex: 0 0 calc(50% - 10px);
    margin: 0 0 10px 10px;
    height: 170px;
    border-top: 4px solid #8CDDCD;
    color: #012970;
}

.card.port-card .port-switch {
    width: 2.75em;
    height: 1.25em;
}

.card.port-card .port-icon {
    color: #1abc9c;
    height: 3.75em;
}

.breadcrumb-item + .breadcrumb-item {
    padding-right: .3rem;
}

.breadcrumb {
    margin-bottom: 1.5rem;
}

.card.port-card a.card-body {
    color: #012970;
    text-decoration: none;
    padding: 0 1rem 1rem;
    cursor:pointer;
}

.org-card .card-title {
    padding-top: 5px;
}

.org-card .card-text {
    font-size: 0.9rem;
}

.org-card .card-img-top {
    height: 235px;
}

.sidebar .app-version {
    position: absolute;
    bottom: 50px;
    padding: 0 15px 0 0;
    color: #012970;
    font-size: 13px;
    font-weight: 700;
}

@keyframes fade-in-slide-down {
    from {
        margin-top: -70px;
    }

    to {
        margin-top: 0px;
    }
}

.fadeInAnimation {
    animation-name: fade-in-slide-down;
    animation-duration: 400ms;
    animation-fill-mode: forwards;
}


.press-button {
    /* 	design the outer circle */
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 1px solid #ddd;
    box-shadow: 0 0 5px 0px #888;
    position: relative;
    display: grid;
    place-items: center;
    background-color: #fff;
}

.press-button::before {
    content: "";
    /* 	design the inner-ring */
    width: 70%;
    height: 70%;
    border: 3px solid #eee;
    border-radius: 50%;
    position: absolute;
}

.light {
    /* 	design the vertical light */
    height: 15px;
    width: 5px;
    background: #eee;
    border-radius: 15px;
    position: absolute;
    top: 5px;
    box-shadow: 0 0 0 3px #fff;
    padding: 0
}

.press-button:hover {
    cursor: pointer;
}

.press-button:active {
    box-shadow: 0 0 2px 0px #888 inset;
}

.press-button:active .light, .press-button.selected .light {
    background: #0d6efd;
}

.press-button:active::before, .press-button.selected::before {
    border-color: #0d6efd;
}

.port-progress {
    margin-top: 15px;
}

.port-card .setting-btn {
    border: none;
    background: transparent;
    padding: 5px 20px 0 20px;
    cursor: pointer;
    font-weight: bold;
}

.port-card .setting-btn {
    border: none;
    background: transparent;
    padding: 5px 20px 0 20px;
    cursor: pointer;
    font-weight: bold;
}

.port-card .setting-btn img {
    width: 20px;
    height: 20px;
}

.connectivity-footer {
    padding-top: 0;
    justify-content: center;
    border: 0
}

/* Volume button */
.volumn-container {
    color: white;
    display: grid;
    place-items: center;
}

.volumn-container main {
    width: 70%;
}

.volumn-container #inputRange {
    display: none;
}

.volume-button-knob {
    position: relative;
    touch-action: none;
    user-select: none;
}

.volume-button-knob svg {
    display: block;
    width: 100%;
}

.volume-button-knob .circle {
    fill: #DDD;
    /* fill: url(#radial-gradient); */
    stroke: #CCC;
    stroke-width: 10px;
}

.volume-button-knob .slider-wrap {
    filter: url(#inset-shadow);
}

.volume-button-knob .slider {
    --deg: 0deg;
    --h: 270;
    --s: 60%;
    transform-origin: 50% 50%;
    transform: rotate(var(--deg));
    fill: rgba(255, 255, 255, 0.5);
    cursor: grab;
    transition: all 0.1s ease-in-out;
    fill: hsl(var(--h), var(--s), 55%);
}


.volume-button-knob .without-animate .slider {
    transition: unset;
    cursor: grabbing;
}

.volume-button-knob .gradate line {
    --deg: 0deg;
    --h: 135;
    --s: 10%;
    --a: 0.2;
    stroke-linecap: round;
    stroke-width: 10px;
    stroke: hsla(var(--h), var(--s), 55%, var(--a));
    transform: rotate(var(--deg));
    transform-origin: 50% 50%;
    /* transition: all 0.1s ease-in-out; */
}

.volume-button-knob .gradate line:hover,
.volume-button-knob .gradate line.active {
    --a: 1;
    --s: 60%;
    filter: url(#shadow);
}

.login .captcha-container {
    width: 100%;
    max-width: 160px; /* you can reduce/increase */
}

.captcha-container canvas {
    width: 100%;
    height: auto;
    display: block;
}

/*PWA container*/
.pwa-update-container {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.pwa-update-message {
    width: 100%;
    max-width: 600px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.pwa-update-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pwa-update-content strong {
    font-size: 16px;
}

.pwa-update-content span {
    font-size: 14px;
    color: #666;
}

.pwa-update-button {
    padding: 8px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
}

/* PullToRefresh.js */
.ptr--ptr {
    position: relative !important;
    top:60px !important;
    z-index: 996;
}

.ptr--box {
    margin-top: 0;
}


/*--------------------------------------------------------------
# Network
--------------------------------------------------------------*/
.network-status {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    direction: rtl;
    background-color: #dc3545;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
}

/* Move header down when offline */
body:has(.network-status) .header {
    top: 20px;
}
body:has(.network-status) #main{
    margin-top:90px;
}
body:has(.network-status) .sidebar {
    margin-top: 20px;
}