.uptimerobot-dashboard-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.uptimerobot-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #038C4C;
}

.dashboard-title {
    font-size: 28px;
    font-weight: 700;
    color: #038C4C;
    margin: 0;
}

.dashboard-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.last-update {
    font-size: 14px;
    color: #666;
}

/* Resumen de estadísticas */
.dashboard-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: linear-gradient(135deg, #025939CC 0%, #04BF68CC 90%);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(130, 1, 1, 0.1);
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(130, 1, 1, 0.2);
}

.summary-label {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
}

.summary-value.error {
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    padding: 25px;
    border-radius: 12px;
}

/* Grid de monitores */
.monitors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.monitor-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #820101;
    position: relative;
    overflow: hidden;
}

.monitor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(130, 1, 1, 0.15);
}

.monitor-card.status-up {
    border-left-color: #28a745;
}

.monitor-card.status-down {
    border-left-color: #820101;
    background: #fff5f5;
}

.monitor-card.status-paused {
    border-left-color: #ffc107;
    opacity: 0.7;
}

.monitor-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.monitor-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.monitor-url {
    font-size: 12px;
    color: #666;
    word-break: break-all;
}

.monitor-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-badge-up {
    background: #05f28336;
    color: #01261c;
}

.status-badge-down {
    background: #f8d7da;
    color: #721c24;
}

.status-badge-paused {
    background: #fff3cd;
    color: #856404;
}

.monitor-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #2F3640;
}

.stat-value.uptime-high {
    color: #04BF68;
}

.stat-value.uptime-medium {
    color: #ffc107;
}

.stat-value.uptime-low {
    color: #820101;
}

.monitor-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #999;
}

.monitor-footer a {
    color: #025939 !important;
    text-decoration: none !important;
}

/* Estados de carga */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: #820101;
    font-size: 18px;
    font-weight: 500;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {

    0%,
    20% {
        content: '.';
    }

    40% {
        content: '..';
    }

    60%,
    100% {
        content: '...';
    }
}

.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
}

/* Indicador de estado en tiempo real */
.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 8px;
    animation: pulse 2s infinite;
}

.status-indicator.up {
    background: #28a745;
    box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
}

.status-indicator.down {
    background: #820101;
    box-shadow: 0 0 0 0 rgba(130, 1, 1, 0.7);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(130, 1, 1, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(130, 1, 1, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(130, 1, 1, 0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .uptimerobot-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .dashboard-meta {
        align-items: flex-start;
    }

    .monitors-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .dashboard-summary {
        grid-template-columns: 1fr;
    }
}