/* Reset y base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
    color: #1a202c;
    min-height: 100vh;
    line-height: 1.6;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.logo i {
    font-size: 2rem;
    color: #1e3a8a;
}
.nav-menu {
    display: flex;
    gap: 2.5rem;
}
.nav-menu a {
    text-decoration: none;
    color: #4a5568;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
}
.nav-menu a:hover {
    color: #1e3a8a;
    background: rgba(30, 58, 138, 0.1);
    transform: translateY(-2px);
}
.auth-actions {
    display: flex;
    gap: 1rem;
}
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-secondary { background: #64748b; color: #fff; }
.btn-secondary:hover { background: #334155; }

.section {
    margin: 3rem 0;
    padding: 2rem 0;
}
.section h1 {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: #1e293b;
}
.section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: #1e293b;
}
.lead {
    font-size: 1.3rem;
    color: #334155;
    margin-bottom: 3rem;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.metric-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2.5rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}
.metric-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}
.metric-card i {
    font-size: 3rem;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}
.metric-card h3 {
    color: #1e293b;
    margin: 0.5rem 0;
    font-size: 2.5rem;
    font-weight: 700;
}
.metric-card p {
    color: #334155;
    font-size: 1.1rem;
    font-weight: 500;
}

.endpoints-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.endpoint-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
.endpoint-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}
.endpoint-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}
.endpoint-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.endpoint-header h4 {
    color: #1e293b;
    font-size: 1.3rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}
.status {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.status.active {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}
.endpoint-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.endpoint-stats p {
    color: #334155;
    font-size: 1rem;
    font-weight: 500;
}
.endpoint-stats i {
    color: #1e3a8a;
    font-size: 1.1rem;
}

.logs-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-height: 500px;
    overflow-y: auto;
}
.log-entry {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.log-entry:hover {
    background: rgba(30, 58, 138, 0.05);
}
.log-time {
    color: #718096;
    font-weight: 600;
    min-width: 80px;
}
.log-level {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 60px;
    text-align: center;
}
.log-level.info {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}
.log-level.warn {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}
.log-level.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}
.log-message {
    color: #1e293b;
    font-weight: 500;
    flex: 1;
}

.footer {
    background: rgba(26, 32, 44, 0.95);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 2.5rem 0 1.5rem;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.footer p {
    font-size: 1.1rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .metrics-grid, .endpoints-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .section h1 {
        font-size: 2.5rem;
    }
    .section h2 {
        font-size: 2rem;
    }
    .metric-card {
        padding: 2rem 1.5rem;
    }
    .endpoint-card {
        padding: 1.5rem;
    }
    .logs-container {
        padding: 1.5rem;
    }
}
@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .logo { font-size: 1.4rem; }
    .header { padding: 0.8rem 0; }
    .section h1 {
        font-size: 2rem;
    }
    .metric-card h3 {
        font-size: 2rem;
    }
    .log-entry {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.metric-card, .endpoint-card {
    animation: fadeInUp 0.6s ease-out;
}

.metric-card:nth-child(1) { animation-delay: 0.1s; }
.metric-card:nth-child(2) { animation-delay: 0.2s; }
.metric-card:nth-child(3) { animation-delay: 0.3s; }
.metric-card:nth-child(4) { animation-delay: 0.4s; }

.logs-container::-webkit-scrollbar {
    width: 8px;
}

.logs-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

.logs-container::-webkit-scrollbar-thumb {
    background: rgba(30, 58, 138, 0.3);
    border-radius: 4px;
}

.logs-container::-webkit-scrollbar-thumb:hover {
    background: rgba(30, 58, 138, 0.5);
} 