﻿:root {
    --navy-900: #0F172A;
    --navy-800: #1E293B;
    --blue-600: #0284C7;
    --blue-500: #0EA5E9;
    --gold-500: #F59E0B;
    --slate-50: #F8FAFC;
    --slate-100: #F1F5F9;
    --slate-200: #E2E8F0;
    --slate-500: #64748B;
    --slate-800: #1E293B;
    --green-500: #10B981;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--slate-50);
    color: var(--navy-900);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.topbar {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
    color: #FFFFFF;
    padding: 16px 0;
    border-bottom: 3px solid var(--gold-500);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #FFFFFF;
}

.brand-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: var(--gold-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.brand-divider {
    color: #475569;
    margin: 0 4px;
}

.brand-lpe {
    color: var(--gold-500);
}

.brand-sub {
    font-size: 0.8rem;
    color: #94A3B8;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.14);
    color: #A7F3D0;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
}

.dot-online {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--green-500);
}

.btn-outline-light {
    color: #E2E8F0;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.85rem;
    transition: background-color 0.2s, color 0.2s;
}

    .btn-outline-light:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #FFFFFF;
    }

/* Main */
.main-wrapper {
    flex: 1;
    padding-top: 28px;
    padding-bottom: 40px;
}

.hero-card {
    background: #FFFFFF;
    border: 1px solid var(--slate-200);
    border-radius: 18px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--blue-600);
    margin-bottom: 6px;
}

.hero-card h1 {
    margin: 0 0 8px;
    font-size: 1.65rem;
    color: var(--navy-900);
}

.hero-card p {
    margin: 0 0 20px;
    color: var(--slate-500);
    max-width: 720px;
    line-height: 1.5;
}

.hero-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 250px;
    max-width: 380px;
    padding: 11px 15px;
    border: 1px solid var(--slate-200);
    border-radius: 12px;
    font-size: 0.95rem;
    background-color: var(--slate-50);
}

    .search-input:focus {
        outline: none;
        border-color: var(--blue-600);
        background-color: #FFFFFF;
    }

.filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pill-btn {
    border: 1px solid var(--slate-200);
    background: #FFFFFF;
    color: var(--slate-800);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

    .pill-btn:hover {
        border-color: var(--blue-600);
    }

    .pill-btn.active {
        background-color: var(--navy-900);
        color: #FFFFFF;
        border-color: var(--navy-900);
    }

/* Grid de sistemas */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 20px;
}

.app-card {
    background: #FFFFFF;
    border: 1px solid var(--slate-200);
    border-radius: 18px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

    .app-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
        border-color: var(--blue-500);
    }

    .app-card.featured {
        border-top: 4px solid var(--blue-600);
    }

.app-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.app-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background-color: #E0F2FE;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.app-tags {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.tag-cat {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--blue-600);
    background: #E0F2FE;
    padding: 3px 10px;
    border-radius: 999px;
}

.tag-device {
    font-size: 0.72rem;
    color: var(--slate-500);
}

.app-subtitle {
    font-size: 0.8rem;
    color: var(--slate-500);
    margin-bottom: 4px;
}

.app-title {
    margin: 0 0 8px;
    font-size: 1.25rem;
    color: var(--navy-900);
}

.app-desc {
    margin: 0 0 20px;
    font-size: 0.92rem;
    color: var(--slate-500);
    line-height: 1.5;
}

.app-card-footer {
    padding-top: 14px;
    border-top: 1px solid var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.app-domain {
    font-size: 0.78rem;
    color: var(--slate-500);
}

.btn-launch {
    display: inline-block;
    background-color: var(--blue-600);
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 16px;
    border-radius: 10px;
    transition: background-color 0.2s;
}

    .btn-launch:hover {
        background-color: #0369A1;
    }

.empty-state {
    text-align: center;
    padding: 36px;
    background: #FFFFFF;
    border: 1px dashed var(--slate-200);
    border-radius: 16px;
    color: var(--slate-500);
}

/* Footer */
.footer {
    background: #FFFFFF;
    border-top: 1px solid var(--slate-200);
    padding: 16px 0;
    font-size: 0.82rem;
    color: var(--slate-500);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .hero-card {
        padding: 20px;
    }

        .hero-card h1 {
            font-size: 1.35rem;
        }

    .btn-launch {
        width: 100%;
        text-align: center;
    }
}
