/**
 * Tema de la aplicación - Colores del logo (logo.png)
 * Logo: fondo negro, texto blanco, barras azul institucional
 * Fuente: Titillium Web (Google Fonts)
 */
@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:wght@300;400;600;700&display=swap');

:root {
    --font-family: 'Titillium Web', sans-serif;
    --logo-bg: #000000;
    --logo-bg-soft: #0f0f0f;
    --logo-text: #ffffff;
    --logo-blue: #1e40af;
    --logo-blue-hover: #2563eb;
    --logo-blue-light: #3b82f6;
    --logo-blue-muted: rgba(30, 64, 175, 0.15);
}

/* Fuente principal */
html,
body {
    font-family: var(--font-family);
}

/* Bootstrap overrides con colores del logo */
.btn-primary,
.bg-primary {
    background-color: var(--logo-blue) !important;
    border-color: var(--logo-blue) !important;
}
.btn-primary:hover {
    background-color: var(--logo-blue-hover) !important;
    border-color: var(--logo-blue-hover) !important;
}
.btn-outline-primary {
    color: var(--logo-blue);
    border-color: var(--logo-blue);
}
.btn-outline-primary:hover {
    background-color: var(--logo-blue-muted);
    color: var(--logo-blue-hover);
    border-color: var(--logo-blue-hover);
}
.form-control:focus,
.form-select:focus {
    border-color: var(--logo-blue);
    box-shadow: 0 0 0 0.2rem var(--logo-blue-muted);
}
.text-primary { color: var(--logo-blue) !important; }
.border-primary { border-color: var(--logo-blue) !important; }

/* Navbar superior: ayuda, notificaciones, usuario y logout */
.app-navbar {
    background: var(--logo-bg);
    min-height: 3.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.app-navbar .container-fluid {
    max-width: 100%;
}
.app-navbar-logo {
    text-decoration: none;
}
.app-navbar-logo-img {
    height: 2rem;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}
.app-navbar-btn {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}
.app-navbar-btn:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.08);
}
.app-navbar-dropdown {
    min-width: 220px;
    margin-top: 0.25rem;
}
.app-navbar-dropdown .navbar-notifications-list .navbar-alert-item:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
}
.app-navbar-dropdown .navbar-alert-item .btn-sm {
    font-size: 0.75rem;
}

/* Sidebar: estrecha, icono arriba y nombre abajo (solo cuando es columna de nav dentro de .row) */
.sidebar {
    min-height: 100vh;
    background: var(--logo-bg);
    color: var(--logo-text);
    padding: 12px 0;
    display: flex;
    flex-direction: column;
}
.row > .sidebar {
    flex: 0 0 auto;
    width: max-content;
    min-width: max-content;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    box-sizing: content-box;
}
.row > .sidebar > nav {
    flex: 1;
    width: 100%;
}
/* Columna principal toma el espacio restante cuando está junto al sidebar de nav */
.row > .sidebar + [class*="col-"] {
    flex: 1 1 0%;
    min-width: 0;
    max-width: none;
}
.sidebar > nav {
    flex: 1;
    width: 100%;
}
/* Item: icono arriba, nombre abajo */
.sidebar .nav-link.sidebar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    padding: 10px 6px;
    margin: 4px 0;
    border-radius: 0;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
}
.sidebar .nav-link.sidebar-item .bi {
    font-size: 1.755rem;
    margin-bottom: 4px;
    display: block;
}
.sidebar .nav-link.sidebar-item .sidebar-item-label {
    font-size: 0.845rem;
    line-height: 1.2;
    word-break: break-word;
}
.sidebar .nav-link.sidebar-item:hover {
    background: var(--logo-blue);
    color: var(--logo-text);
}
.sidebar .nav-link.sidebar-item.active {
    background: var(--logo-blue);
    color: var(--logo-text);
    border-radius: 0;
}
.sidebar .btn-outline-light:hover {
    background: var(--logo-blue);
    border-color: var(--logo-blue);
    color: var(--logo-text);
}

/* Sidebar: grupo Configuración colapsable */
.sidebar-config-group {
    margin: 6px 0;
    width: 100%;
}
.sidebar-config-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.845rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.6) !important;
    cursor: pointer;
    padding: 10px 6px !important;
    margin: 4px 0 !important;
    border: none;
    background: transparent;
    border-radius: 0;
    transition: color 0.2s, background 0.2s;
    min-height: auto;
    line-height: 1.2;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}
.sidebar-config-toggle .bi:first-of-type {
    font-size: 1.755rem;
    margin-bottom: 4px;
}
.sidebar-config-toggle .sidebar-item-label {
    font-size: 0.845rem;
    margin-bottom: 2px;
}
.sidebar-config-chevron {
    font-size: 13px !important;
    width: 13px !important;
    height: 13px !important;
    min-width: 13px;
    min-height: 13px;
    display: block;
    flex-shrink: 0;
    transition: transform 0.2s ease;
    line-height: 1;
}
.sidebar-config-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9) !important;
}
.sidebar-config-group:not(.collapsed) .sidebar-config-toggle {
    color: var(--logo-blue-light) !important;
}
.sidebar-config-group:not(.collapsed) .sidebar-config-chevron {
    transform: rotate(-180deg);
}
.sidebar-config-items {
    padding-left: 0;
    overflow: hidden;
    max-height: 400px;
    transition: max-height 0.25s ease, opacity 0.2s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.sidebar-config-group.collapsed .sidebar-config-items {
    max-height: 0 !important;
    opacity: 0;
    margin: 0;
    padding: 0;
    visibility: hidden;
}
.sidebar .nav-link-sub.sidebar-item {
    padding: 8px 6px;
    margin: 2px 0;
    border-radius: 0;
    width: 100%;
    box-sizing: border-box;
}
.sidebar .nav-link-sub.sidebar-item .sidebar-item-label {
    font-size: 0.78rem;
}
.sidebar .nav-link-sub.sidebar-item.active {
    border-radius: 0;
}

/* Cards y stat-cards con acento azul */
.stat-card.primary {
    background: linear-gradient(135deg, var(--logo-blue) 0%, var(--logo-blue-hover) 100%);
    color: var(--logo-text);
}
.card-header.bg-primary {
    background-color: var(--logo-blue) !important;
    color: var(--logo-text);
}
.alert-primary {
    background-color: var(--logo-blue-muted);
    border-color: var(--logo-blue);
    color: var(--logo-blue);
}

/* Login: fondo negro, card blanca, acento azul */
.body-login {
    background: var(--logo-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-card {
    background: var(--logo-text);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    padding: 2.5rem;
    max-width: 400px;
    width: 100%;
}
.login-header .logo-img {
    max-width: 180px;
    margin-bottom: 1rem;
}
.login-header h2 {
    color: var(--logo-bg);
    font-weight: 700;
}
.login-header .text-muted {
    color: #64748b !important;
}

/* Dispositivos: lista estilo moderno (divide-y, hover, flex) */
.devices-list-modern {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}
.devices-list-modern li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.15s ease;
}
.devices-list-modern li:last-child {
    border-bottom: none;
}
.devices-list-modern li:hover {
    background: #f9fafb;
}
.devices-list-modern .device-list-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    flex: 1;
}
.devices-list-modern .device-list-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 1.25rem;
}
.devices-list-modern .device-list-icon.online {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}
.devices-list-modern .device-list-icon.offline {
    background: rgba(107, 114, 128, 0.15);
    color: #6b7280;
}
.devices-list-modern .device-list-body {
    min-width: 0;
    flex: 1;
}
.devices-list-modern .device-list-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    display: block;
    line-height: 1.35;
}
.devices-list-modern .device-list-name:hover {
    color: var(--logo-blue);
}
.devices-list-modern .device-list-imei {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #6b7280;
    font-family: ui-monospace, monospace;
}
.devices-list-modern .device-list-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}
.devices-list-modern .device-list-meta {
    text-align: right;
}
@media (max-width: 575.98px) {
    .devices-list-modern .device-list-meta { display: none; }
}
.devices-list-modern .device-list-meta .device-list-role {
    font-size: 0.875rem;
    color: #111827;
}
.devices-list-modern .device-list-meta .device-list-seen {
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #6b7280;
}
.devices-list-modern .device-list-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}
.devices-list-modern .device-list-btn-config,
.devices-list-modern .device-list-btn-stream {
    white-space: nowrap;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}
.devices-list-modern .device-list-chevron {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #9ca3af;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.devices-list-modern .device-list-chevron:hover {
    color: var(--logo-blue);
}
.devices-list-modern .device-list-chevron .bi {
    font-size: 1.25rem;
}
/* Vista grid: misma lista en 2 columnas, cada li como tarjeta */
.devices-view-grid.devices-list-wrapper .devices-list-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1rem;
    border: none;
    background: transparent;
}
.devices-view-grid.devices-list-wrapper .devices-list-modern li {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
}
.devices-view-grid.devices-list-wrapper .devices-list-modern li:hover {
    background: #f9fafb;
}
.devices-view-list.devices-list-wrapper .devices-list-modern {
    max-width: 100%;
}
.view-toggle .btn { padding: 0.4rem 0.6rem; }
.view-toggle .btn.active {
    background: var(--logo-blue);
    color: white;
    border-color: var(--logo-blue);
}

/* Gestión de cámaras: tabla estilo "Latest activity" */
.cameras-activity-section {
    background: #fff;
    padding: 2.5rem 0;
}
.cameras-activity-section .cameras-activity-title {
    padding-left: 1rem;
    padding-right: 1rem;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 600;
    color: #111827;
}
@media (min-width: 640px) {
    .cameras-activity-section .cameras-activity-title { padding-left: 1.5rem; }
}
@media (min-width: 1024px) {
    .cameras-activity-section .cameras-activity-title { padding-left: 2rem; }
}
.cameras-activity-table {
    margin-top: 1.5rem;
    width: 100%;
    text-align: left;
    white-space: nowrap;
    border-collapse: collapse;
}
.cameras-activity-table thead {
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #111827;
}
.cameras-activity-table thead th {
    padding: 0.5rem 2rem 0.5rem 1rem;
    font-weight: 600;
}
.cameras-activity-table thead th:first-child {
    padding-left: 1rem;
}
@media (min-width: 640px) {
    .cameras-activity-table thead th:first-child { padding-left: 1.5rem; }
}
@media (min-width: 1024px) {
    .cameras-activity-table thead th:first-child { padding-left: 2rem; }
}
.cameras-activity-table thead th.cameras-th-commit { padding-right: 2rem; }
@media (min-width: 1024px) {
    .cameras-activity-table thead th.cameras-th-status { padding-right: 5rem; }
    .cameras-activity-table thead th.cameras-th-meta { padding-right: 2rem; }
    .cameras-activity-table thead th.cameras-th-date { padding-right: 2rem; }
}
.cameras-activity-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
}
.cameras-activity-table tbody tr:last-child {
    border-bottom: none;
}
.cameras-activity-table tbody td {
    padding: 1rem 2rem 1rem 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    vertical-align: middle;
}
.cameras-activity-table tbody td:first-child {
    padding-left: 1rem;
}
@media (min-width: 640px) {
    .cameras-activity-table tbody td:first-child { padding-left: 1.5rem; }
}
@media (min-width: 1024px) {
    .cameras-activity-table tbody td:first-child { padding-left: 2rem; }
}
.cameras-activity-table .cameras-cell-camera {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.cameras-activity-table .cameras-cell-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 1rem;
}
.cameras-activity-table .cameras-cell-icon.online,
.cameras-activity-table .cameras-cell-icon-status.online {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}
.cameras-activity-table .cameras-cell-icon.offline,
.cameras-activity-table .cameras-cell-icon-status.offline {
    background: rgba(107, 114, 128, 0.15);
    color: #6b7280;
}
.cameras-activity-table .cameras-cell-name {
    font-weight: 500;
    color: #111827;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
    display: inline-block;
}
.cameras-activity-table .cameras-cell-name:hover {
    color: var(--logo-blue);
}
.cameras-activity-table .cameras-cell-commit {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.cameras-activity-table .cameras-cell-commit .cameras-imei {
    font-family: ui-monospace, monospace;
    font-size: 0.875rem;
    color: #6b7280;
}
.cameras-activity-table .cameras-cell-commit .cameras-badge {
    border-radius: 0.375rem;
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: #4b5563;
}
.cameras-activity-table .cameras-cell-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-end;
}
@media (min-width: 640px) {
    .cameras-activity-table .cameras-cell-status { justify-content: flex-start; }
}
.cameras-activity-table .cameras-cell-meta {
    font-size: 0.875rem;
    color: #6b7280;
}
.cameras-activity-table .cameras-cell-date {
    text-align: right;
    font-size: 0.875rem;
    color: #6b7280;
}
.cameras-activity-table .cameras-cell-date time {
    font-size: inherit;
    color: inherit;
}
@media (max-width: 639.98px) {
    .cameras-activity-table .cameras-cell-status .cameras-status-text { display: none; }
    .cameras-activity-table .cameras-cell-date .cameras-date-full { display: none; }
}
@media (max-width: 767.98px) {
    .cameras-activity-table .cameras-th-commit,
    .cameras-activity-table .cameras-cell-commit,
    .cameras-activity-table .cameras-th-meta,
    .cameras-activity-table .cameras-cell-meta { display: none; }
}
@media (min-width: 768px) {
    .cameras-activity-table .cameras-cell-date .cameras-date-mobile { display: none; }
}

/* Dashboard: widgets compactos */
.dashboard .stat-card {
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.dashboard .stat-card .stat-label { font-size: 0.7rem; opacity: 0.95; font-weight: 600; }
.dashboard .stat-card .stat-value { font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.dashboard .stat-card.primary { background: linear-gradient(135deg, var(--logo-blue) 0%, var(--logo-blue-hover) 100%); color: white; }
.dashboard .stat-card.success { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); color: white; }
.dashboard .stat-card.warning { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); color: white; }
.dashboard .stat-card.info { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); color: white; }
.dashboard .device-card {
    border-radius: 6px;
    padding: 6px 10px;
    margin-bottom: 6px;
}
.dashboard .device-card h6 { font-size: 0.85rem; margin-bottom: 2px; }
.dashboard .device-card small { font-size: 0.7rem; }
.dashboard .device-card .status-badge { padding: 2px 8px; font-size: 0.7rem; border-radius: 10px; }
.dashboard .card { margin-bottom: 0.75rem; }
.dashboard .card-header { padding: 6px 12px; font-size: 0.8rem; font-weight: 600; }
.dashboard .card-body { padding: 10px 12px; }
.dashboard .storage-mini-card { padding: 8px; text-align: center; }
.dashboard .storage-mini-card .bi { font-size: 1.1rem; }
.dashboard .storage-mini-card h6 { font-size: 0.75rem; margin: 4px 0 2px; }
.dashboard .storage-mini-card .storage-value { font-size: 0.95rem; font-weight: 700; }
.dashboard .storage-mini-card small { font-size: 0.65rem; }
.dashboard .chart-mini { max-width: 100px; max-height: 100px; }

/* Videos: grid de tarjetas (agrupación por dispositivo y día) */
.videos-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px) {
    .videos-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .videos-grid { grid-template-columns: repeat(3, 1fr); }
}
.videos-card {
    border-top: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
.videos-card-header {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
}
.videos-card-header-left {
    flex: 1;
    min-width: 0;
}
.videos-card-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.videos-card-title h3 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.videos-card-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    background: rgba(22, 163, 74, 0.1);
    color: #15803d;
    padding: 0.125rem 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    flex-shrink: 0;
}
.videos-card-subtitle {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.videos-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    outline: 1px solid rgba(0, 0, 0, 0.05);
    outline-offset: -1px;
}
.videos-card-icon .bi { font-size: 1.25rem; }
.videos-card-actions {
    display: flex;
    border-top: 1px solid #e5e7eb;
}
.videos-card-actions a,
.videos-card-actions button.videos-card-action {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    background: transparent;
    border: none;
    border-right: 1px solid #e5e7eb;
    cursor: pointer;
    transition: background 0.15s;
}
.videos-card-actions a:first-child,
.videos-card-actions button.videos-card-action:first-child {
    border-radius: 0 0 0 0.5rem;
}
.videos-card-actions a:last-child,
.videos-card-actions button.videos-card-action:last-child {
    border-right: none;
    border-radius: 0 0 0.5rem 0;
}
.videos-card-actions a:hover,
.videos-card-actions button.videos-card-action:hover {
    background: #f9fafb;
}
.videos-card-actions .bi { font-size: 1.25rem; color: #9ca3af; }
.videos-card-collapse {
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}
.videos-card-collapse .channel-section {
    margin: 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}
.videos-card-collapse .channel-section:last-child { border-bottom: none; }
.videos-card-collapse .video-item {
    margin: 0 0.5rem 0.5rem;
    border-radius: 0.375rem;
}
.videos-card-collapse .video-item:last-child { margin-bottom: 0.5rem; }

/* Panel de ayuda lateral derecho: ~30% de la pantalla */
.help-offcanvas.offcanvas {
    width: 30%;
    max-width: 30vw;
}
@media (max-width: 992px) {
    .help-offcanvas.offcanvas {
        width: 85%;
        max-width: 85vw;
    }
}
.help-offcanvas .offcanvas-body {
    overflow-y: auto;
}
.help-offcanvas .help-section h3 {
    font-weight: 600;
}

/* ========== SOS: notificación y página de streaming (alineado con tema app) ========== */
.sirena-notification {
    font-family: var(--font-family) !important;
    background: var(--logo-bg) !important;
    color: var(--logo-text) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.sirena-notification__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.sirena-notification__title {
    font-weight: 600;
    font-size: 1rem;
}
.sirena-notification__subtitle {
    font-size: 0.8125rem;
    opacity: 0.9;
}
.sirena-notification__close {
    background: none;
    border: none;
    color: var(--logo-text);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
}
.sirena-notification__close:hover {
    opacity: 1;
}
.sirena-notification__content {
    background: var(--logo-bg-soft);
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.8125rem;
}
.sirena-notification__content-title {
    margin-bottom: 4px;
}
.sirena-notification__content-desc {
    opacity: 0.85;
}
.sirena-notification__actions-label {
    font-size: 0.6875rem;
    opacity: 0.85;
    margin-bottom: 10px;
}
.sirena-notification__actions {
    display: flex;
    gap: 8px;
}
.sirena-notification__actions button {
    font-family: var(--font-family);
    border: none;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}
.sirena-notification .btn-sirena-live {
    flex: 1;
    background: #16a34a;
    color: white;
}
.sirena-notification .btn-sirena-live:hover {
    background: #15803d;
    color: white;
}
.sirena-notification .btn-sirena-videos {
    flex: 1;
    background: var(--logo-blue);
    color: white;
}
.sirena-notification .btn-sirena-videos:hover {
    background: var(--logo-blue-hover);
    color: white;
}
.sirena-notification .btn-sirena-ok {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}
.sirena-notification .btn-sirena-ok:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* SOS streaming: página full-screen alineada con tema */
body.sos-streaming-page {
    font-family: var(--font-family);
    background: var(--logo-bg);
    color: var(--logo-text);
    min-height: 100vh;
}
.sos-streaming-page .sos-header {
    background: var(--logo-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.sos-streaming-page .sos-header .btn-action {
    font-family: var(--font-family);
    border-radius: 8px;
    font-weight: 600;
    padding: 8px 16px;
}
.sos-streaming-page .sos-header .btn-acknowledge.btn-success {
    background: #16a34a;
    color: white;
}
.sos-streaming-page .sos-header .btn-acknowledge.btn-success:hover {
    background: #15803d;
    color: white;
}
.sos-streaming-page .sos-header .btn-acknowledge.btn-danger {
    background: #dc2626;
    color: white;
}
.sos-streaming-page .sos-header .btn-acknowledge.btn-danger:hover {
    background: #b91c1c;
    color: white;
}
.sos-streaming-page .sos-header .btn-acknowledge.btn-secondary {
    background: #64748b;
    color: white;
}
.sos-streaming-page .sos-header .btn-acknowledge.btn-secondary:hover {
    background: #475569;
    color: white;
}
.sos-streaming-page .info-badge {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.875rem;
}
.sos-streaming-page .video-panel {
    border-radius: 8px;
    overflow: hidden;
}
.sos-streaming-page .video-header,
.sos-streaming-page .video-footer {
    background: rgba(0, 0, 0, 0.85);
}
.sos-streaming-page .live-badge {
    border-radius: 6px;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.95);
}
.sos-streaming-page .video-status {
    background: rgba(0, 0, 0, 0.75);
    color: rgba(255, 255, 255, 0.9);
}
.sos-streaming-page .btn-fullscreen {
    border-radius: 6px;
}
.sos-streaming-page .btn-stop {
    border-radius: 8px;
}
.sos-streaming-page .location-info {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
