/* ============================================================
   UPTIME MONITOR - MODERN BLACK THEME
   ============================================================ */

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #050507;
    background-image: radial-gradient(circle at 50% 0%, #111115 0%, #050507 70%);
    color: #e5e7eb;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Layout principal */
main {
    flex: 1;
    padding: 30px 20px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* Títulos */
h1, h2, h3, h4 {
    color: #ffffff;
    font-weight: 600;
}

/* ====================== HEADER ====================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(8, 8, 10, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid #1c1c22;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 28px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: opacity 0.2s ease;
}

.logo a:hover {
    opacity: 0.85;
}

.logo-icon-pulse {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 12px #10b981;
    position: relative;
}

.logo-icon-pulse::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 50%;
    background: #10b981;
    animation: logoPulse 2.5s infinite;
}

@keyframes logoPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(2.8); opacity: 0; }
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link-active {
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 8px;
    background: #111116;
    border: 1px solid #222228;
    transition: color 0.2s;
}

.nav-link-active:hover {
    color: #ffffff;
    border-color: #33333e;
}

/* ====================== FOOTER ====================== */
.site-footer {
    background: #08080a;
    border-top: 1px solid #1a1a20;
    padding: 24px 20px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #6b7280;
    font-size: 13px;
}

/* ====================== ALERTAS (Flash) ====================== */
.alert {
    padding: 14px 18px;
    margin: 15px auto;
    max-width: 900px;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.alert-info {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

/* ====================== BOTONES ====================== */
.btn-primary {
    background: #ffffff;
    color: #000000 !important;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-primary:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #111116;
    color: #e5e7eb !important;
    border: 1px solid #282832;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background: #1a1a22;
    border-color: #3f3f4e;
    color: #ffffff !important;
}