/* IoT / Kontrola pristupa */
.iot-page {
    padding: 20px;
    font-family: 'Century Gothic', CenturyGothic, AppleGothic, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.iot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 28px;
    border-radius: 28px;
    color: #fff;
    background: linear-gradient(135deg, #0dcaf0 0%, #0d6efd 100%);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .09);
}

.iot-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .15);
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.iot-back-btn {
    background-color: rgba(255, 255, 255, .95);
    color: var(--patient-heading);
    border: 1px solid rgba(255, 255, 255, .3);
    padding: 8px 16px;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.25s ease;
    font-weight: 700;
}

.iot-back-btn:hover {
    background-color: #fff;
    color: #0d6efd;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, .12);
}

.iot-stat-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, .25);
    padding: 16px;
    text-align: center;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
}

.iot-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .12);
}

.iot-stat-card h3 {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

@media (max-width: 768px) {
    .iot-header {
        flex-direction: column;
        gap: 16px;
    }
}

/* Nav tabs */
.admin-page .nav-tabs .nav-link {
    color: #495057;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 8px 8px 0 0;
    transition: all 0.2s ease;
}

.admin-page .nav-tabs .nav-link:hover {
    background-color: rgba(13, 110, 253, 0.08);
    border-color: rgba(13, 110, 253, 0.15);
}

.admin-page .nav-tabs .nav-link.active {
    color: #0d6efd;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}

/* Tab content */
.tab-content .tab-pane {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Duration badge */
.iot-duration {
    font-variant-numeric: tabular-nums;
    font-size: 0.85em;
}

/* Reader status indicator */
.badge .status-dot {
    display: inline-block;
}