:root {
    --cor-roxo: #8a2be2;
    --cor-cinza-fundo: #F4F4F5;
    --cor-texto: #27272A;
    
    --status-online: #22c55e;
    --status-offline: #ef4444;
    --status-verificando: #d4d4d8;

    --modal-background: rgba(0, 0, 0, 0.7);
    --modal-content-bg: #FFFFFF;
    --modal-border-radius: 15px;
    --modal-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--cor-cinza-fundo);
    color: var(--cor-texto);
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex-grow: 1;
    padding: 4rem 5rem;
    background-color: #FFFFFF;
    
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding-bottom: 100px;
}

.main-content::before {
    content: '';
    position: absolute;
    z-index: -1; 
    top: 50%;
    left: 50%;
    width: 600px;
    height: 500px;
    background: 
        linear-gradient(to top left, 
            transparent 29.25%, 
            var(--cor-roxo) 29.25%, 
            var(--cor-roxo) 30.75%, 
            transparent 30.75%
        ),
        linear-gradient(to top left, 
            transparent 38.75%, 
            var(--cor-roxo) 38.75%, 
            var(--cor-roxo) 41.25%, 
            transparent 41.25%
        ),
        linear-gradient(to top left, 
            transparent 48%, 
            var(--cor-roxo) 48%, 
            var(--cor-roxo) 52%, 
            transparent 52%
        ),
        linear-gradient(to top left, 
            transparent 58.75%, 
            var(--cor-roxo) 58.75%, 
            var(--cor-roxo) 61.25%, 
            transparent 61.25%
        ),
        linear-gradient(to top left, 
            transparent 69.25%, 
            var(--cor-roxo) 69.25%, 
            var(--cor-roxo) 70.75%, 
            transparent 70.75%
        );
    opacity: 0.05; 
    transform: translate(-50%, -50%) rotate(-30deg);
}

.main-title::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 100px;
    background: 
        linear-gradient(to top left, transparent 29.25%, var(--cor-roxo) 29.25%, var(--cor-roxo) 30.75%, transparent 30.75%),
        linear-gradient(to top left, transparent 38.75%, var(--cor-roxo) 38.75%, var(--cor-roxo) 41.25%, transparent 41.25%),
        linear-gradient(to top left, transparent 48%, var(--cor-roxo) 48%, var(--cor-roxo) 52%, transparent 52%),
        linear-gradient(to top left, transparent 58.75%, var(--cor-roxo) 58.75%, var(--cor-roxo) 61.25%, transparent 61.25%),
        linear-gradient(to top left, transparent 69.25%, var(--cor-roxo) 69.25%, var(--cor-roxo) 70.75%, transparent 70.75%);
    opacity: 0.1; 
    transform: translate(-50%, -50%) rotate(-30deg);
}

.main-title {
    position: relative; 
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    animation: slideInUp 0.8s ease-out;
    margin-bottom: 0;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
    position: relative;
}

.main-title {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    animation: slideInUp 0.8s ease-out;
    margin-bottom: 0;
}

.highlight-text {
    color: var(--cor-roxo);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.social-link-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--cor-texto);
    font-weight: 500;
    font-size: 0.9rem;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.social-link-item:hover {
    opacity: 0.7;
    color: var(--cor-roxo);
}

.social-icon {
    width: 22px;
    height: 22px;
}

.apps-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 4px solid var(--cor-roxo);
}

.apps-list {
    list-style: none;
}

.app-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    background-color: #FAFAFA;
    border-radius: 12px;
    margin-bottom: 1rem;
    cursor: pointer; 
    border: 2px solid transparent; 
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; 
}

.app-item:hover {
    transform: translateY(-4px);
    border-color: var(--cor-roxo);
    box-shadow: 0 0 15px rgba(248, 153, 30, 0.5); 
}

.app-item a {
    color: var(--cor-texto);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.app-item a:hover {
    color: var(--cor-roxo);
}

.app-info {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.app-info a {
    font-weight: 600;
}

.app-description {
    font-size: 0.9rem;
    color: #71717A;
    font-weight: 400;
}

.app-description::before {
    content: '—'; 
    color: #d4d4d8;
    margin-right: 0.5rem; 
}

.app-details {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.app-preview-image {
    width: 100px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background-color: #f0f0f0;
    border: 1px solid #e5e5e5;
}

.status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--status-verificando);
    transition: background-color 0.3s ease;
}

.status-indicator.online {
    background-color: var(--status-online);
    animation: pulse 2s infinite;
}

.status-indicator.offline {
    background-color: var(--status-offline);
}

.status-text {
    font-weight: 500;
    font-size: 0.9rem;
    min-width: 70px;
    text-align: left;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(2px); 

    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.loading-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px solid #FFFFFF;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: scale(0.5) rotate(0deg);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.loading-logo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
}

.loading-circle.appear {
    opacity: 1;
    transform: scale(1.1);
}

.loading-circle.rotate {
    transition-duration: 1.0s;
    transform: scale(1) rotate(360deg);
}

.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 900;
    
    background-color: #FFFFFF;
    border-top: 1px solid #e5e5e5;
    
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Permite quebrar a linha em telas pequenas */
    
    padding: 1.25rem 5rem; /* Alinha com o padding lateral do .main-content */
}

.footer-social-links {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* Espaço entre os ícones */
}

.copyright-text {
    font-size: 0.9rem;
    color: #71717A;
    text-align: right;
}

.copyright-text p {
    margin: 0;
    line-height: 1.5;
}

.copyright-text a {
    color: #71717A;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.copyright-text a:hover {
    color: var(--cor-roxo);
}

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

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* --- Responsividade --- */
@media (max-width: 768px) {
    .main-content {
        padding: 2rem;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .profile-pic {
        width: 50px;
        height: 50px;
    }

    .profile-modal-content {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        max-width: 90%;
    }

    .profile-modal-image {
        width: 120px;
        height: 120px;
        margin: 0 auto 20px auto;
        border-radius: 10px;
    }

    .social-links {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }

    .main-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    
    .profile-pic {
        margin-top: 1rem;
    }

    .apps-section h2 {
        font-size: 1.3rem;
        padding-left: 0.8rem;
    }

    .app-item {
        padding: 1rem;
    }
}