/* === Status Dots === */
.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.status-dot-ok       { background: #2da44e; box-shadow: 0 0 6px #2da44e88; }
.status-dot-warning  { background: #d29922; box-shadow: 0 0 6px #d2992288; }
.status-dot-critical { background: #da3633; box-shadow: 0 0 6px #da363388; }
.status-dot-online   { background: #2da44e; box-shadow: 0 0 6px #2da44e88; }
.status-dot-offline  { background: #6e7681; }
.status-dot-unknown  { background: #6e7681; }

/* === Client Section === */
.client-section {
    margin-bottom: 2rem;
}

.client-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #1e2733;
}

.client-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: #e6edf3;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.client-meta {
    font-size: 0.72rem;
    color: #5a6a7e;
    font-family: 'Cascadia Code', 'Consolas', monospace;
}

.client-lastseen {
    font-size: 0.68rem;
    color: #5a6a7e;
    margin-left: auto;
}

/* === Watch Grid === */
.watch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 0.6rem;
}

.no-watches {
    color: #5a6a7e;
    font-size: 0.8rem;
    font-style: italic;
    padding: 0.5rem 0;
}

/* === Watch Card === */
.watch-card {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    background: #131922;
    border: 1px solid #1e2733;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
    min-height: 88px;
}

.watch-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.watch-status-bar {
    width: 5px;
    flex-shrink: 0;
}

.watch-ok .watch-status-bar      { background: #2da44e; }
.watch-warning .watch-status-bar  { background: #d29922; }
.watch-critical .watch-status-bar { background: #da3633; }
.watch-unknown .watch-status-bar  { background: #30363d; }

.watch-ok      { border-color: #1a3a26; }
.watch-warning  { border-color: #3a2a00; }
.watch-critical { border-color: #3a0a08; }
.watch-unknown  { border-color: #21262d; }

.watch-body {
    flex: 1;
    padding: 0.6rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.watch-name {
    font-weight: 600;
    font-size: 0.82rem;
    color: #e6edf3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.watch-app {
    font-size: 0.72rem;
    color: #5a6a7e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.watch-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.4rem;
}

.watch-status-text {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.watch-ok .watch-status-text      { color: #2da44e; }
.watch-warning .watch-status-text  { color: #d29922; }
.watch-critical .watch-status-text { color: #da3633; }
.watch-unknown .watch-status-text  { color: #5a6a7e; }

.watch-time {
    font-size: 0.63rem;
    color: #5a6a7e;
    margin-left: auto;
}

/* === Todos Section === */
.todos-section {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #1e2733;
}

.section-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5a6a7e;
    margin-bottom: 0.75rem;
}

.todos-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: #131922;
    border: 1px solid #1e2733;
    border-radius: 6px;
    font-size: 0.8rem;
}

.todo-done    { opacity: 0.4; border-color: #1a3a2688; }
.todo-overdue { border-color: #3a0a08; background: #1a0806; }

.todo-icon              { font-size: 0.85rem; flex-shrink: 0; }
.todo-done .todo-icon   { color: #2da44e; }
.todo-overdue .todo-icon { color: #da3633; }

.todo-title    { color: #d4dce7; font-weight: 500; }
.todo-interval { font-size: 0.63rem; color: #5a6a7e; background: #1e2733; padding: 0.1rem 0.4rem; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.todo-deadline { font-size: 0.68rem; color: #d29922; }

/* === Blazor Error UI === */
#blazor-error-ui {
    background: #3a0a08;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.8rem 1rem;
    position: fixed;
    z-index: 1000;
    display: none;
    color: #ffa0a0;
    font-size: 0.82rem;
}

#blazor-error-ui .reload  { color: #da3633; text-decoration: underline; }
#blazor-error-ui .dismiss { position: absolute; right: 1rem; cursor: pointer; }

.blazor-error-boundary {
    background: #3a0a08;
    padding: 1rem 1rem 1rem 3.7rem;
    color: #ffa0a0;
}

.blazor-error-boundary::after { content: "An error has occurred." }
