﻿:root {
    --color-sw-blue: #189eff;
    --color-sw-blue-dark: #007eda;
    --color-sw-blue-disabled: #e5f4ff;
    --color-page-bg: #395467;
    --color-text-default: white;
    --color-nav-menu: #1f262d;
    --color-success-light: #37d046;
    --color-warning-light: #ff9800;
    --color-error-light: #de294c;
}

.pointer {
    cursor: pointer;
}

.grow1-1 {
    transition: all 0.3s ease-in-out !important;
}

.grow1-1:hover {
    transform: scale(1.1);
}

.spinner-box {
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-page-bg);
}

.circle-border {
    width: 150px;
    height: 150px;
    padding: 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: var(--color-sw-blue);
    background: linear-gradient(0deg, var(--color-page-bg) 33%, var(--color-sw-blue) 100%);
    animation: spin .8s linear 0s infinite;
}

.circle-core {
    width: 100%;
    height: 100%;
    background-color: var(--color-page-bg);
    border-radius: 50%;
}

@keyframes spin {
    from {
        transform: rotate(0);
    }

    to {
        transform: rotate(359deg);
    }
}

.force-border-radius-2em {
    border-radius: 2em !important;
}

.form-check-input:checked {
    background-color: var(--color-sw-blue);
    border-color: var(--color-sw-blue);
}

.button-container {
    max-width: 100%;
    border-top: 2px dotted grey;
    margin-top: 10px;
}

.icon-button {
    width: 14%;
    float: left;
}

.icon-link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 7%;
    color: #f8f9fa;
}

.icontooltip {
    position: relative;
    display: inline-block;
    font-size: large;
}

.icontooltip .icontooltiptext {
    visibility: hidden;
    width: 10em;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    /* Position the tooltip */
    position: absolute;
    z-index: 1;
    bottom: 100%;
    left: 50%;
    margin-left: -60px;
}

.icontooltip:hover .icontooltiptext {
    visibility: visible;
}

n8n-chat {
    position: fixed !important;
    z-index: 99999 !important;
}

.template-item.selected {
    background-color: #3a3f47 !important;
    border-color: #4a5159 !important;
}

.template-item.selected:hover {
    background-color: #424850 !important;
}

.quick-actions-bar {
    position: relative;
    z-index: 1020;
    min-height: 50px;
    overflow: visible;
}

.notifications-panel-overlay {
    position: fixed;
    top: 50px;
    right: 20px;
    z-index: 2000;
    pointer-events: none;
}

.notifications-panel-overlay .notifications-dropdown {
    pointer-events: all;
    border-radius: 0.375rem;
}

.notifications-dropdown {
    min-width: 400px;
    max-width: 500px;
    max-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.5);
}

.notifications-dropdown .card-header {
    flex-shrink: 0;
    background-color: #212529;
    border-bottom: 1px solid #495057;
}

.notifications-list {
    flex: 1;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

@keyframes blink-border {
    0% { border-left-color: #8a1823; box-shadow: inset 6px 0 4px -6px #8a1823; }
    50% { border-left-color: #ff6b6b; box-shadow: inset 6px 0 12px -6px #ff6b6b; }
    100% { border-left-color: #8a1823; box-shadow: inset 6px 0 4px -6px #8a1823; }
}

.legend-bar {
    display: inline-block;
    height: 10px;
    border-left: 8px solid transparent;
}

/* Template Selection */
.template-list {
    max-height: 50vh;
    overflow-y: auto;
}

/* Gauge Component */
.gauge-progress-circle {
    transition: stroke-dashoffset 0.3s ease, stroke 0.3s ease;
}

.monitoring-card {
    background-color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.75rem;
}

.monitoring-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.25rem;
    min-height: 3.25rem;
}
