:root {
        --primary: #4361ee;
        --secondary: #3a0ca3;
        --accent: #f72585;
        --success: #4cc9f0;
        --warning: #ffbe0b;
        --danger: #e5383b;
        --light: #f8f9fa;
        --dark: #212529;
        --gray: #6c757d;
        --border-radius: 16px;
        --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        --transition: all 0.3s ease;
    }

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

    body {
        font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
        background: 
            url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><circle cx='30' cy='30' r='5' fill='rgba(255,255,255,0.1)'/><circle cx='80' cy='70' r='8' fill='rgba(255,255,255,0.1)'/><circle cx='150' cy='30' r='10' fill='rgba(255,255,255,0.1)'/><circle cx='30' cy='120' r='7' fill='rgba(255,255,255,0.1)'/><circle cx='170' cy='150' r='5' fill='rgba(255,255,255,0.1)'/><circle cx='100' cy='180' r='8' fill='rgba(255,255,255,0.1)'/></svg>"),
            linear-gradient(135deg, #6e8efb, #a777e3);
        color: var(--dark);
        line-height: 1.6;
        min-height: 100vh;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-attachment: fixed;
    }

    .page-wrapper {
        width: 100%;
        max-width: 500px;
        padding: 20px;
        margin: 0 auto;
    }

    /* Aviso de localização */
    .alerta {
        background: linear-gradient(135deg, #fff9db 0%, #fff3bf 100%);
        border-left: 4px solid #fcc419;
        color: #8a6d04;
        padding: 16px;
        margin-bottom: 24px;
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
        display: flex;
        align-items: flex-start;
        animation: slideIn 0.5s ease;
        cursor: pointer;
    }

    .alerta.perigo {
        background: linear-gradient(135deg, #ffe5e6 0%, #ffccd5 100%);
        border-left: 4px solid var(--danger);
        color: #c9184a;
    }

    .alerta.sucesso {
        background: linear-gradient(135deg, #d3f9d8 0%, #b2f2bb 100%);
        border-left: 4px solid var(--success);
        color: #2b8a3e;
    }

    .alerta i {
        margin-right: 12px;
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    .alerta-conteudo {
        flex: 1;
    }

    /* Container principal */
    .container {
        background: white;
        padding: 30px 24px 24px;
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
        margin-bottom: 24px;
        transition: var(--transition);
        position: relative;
        overflow: hidden;
        text-align: center;
    }

    .container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 6px;
        background: linear-gradient(90deg, var(--primary), var(--secondary));
    }

    .foto-perfil {
        width: 200px;
        height: 200px;
        border-radius: 50%;
        object-fit: cover;
        margin: 0 auto 20px;
        border: 5px solid white;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
        display: block;
    }

    h2 {
        margin-bottom: 20px;
        color: var(--dark);
        font-size: 1.9rem;
        position: relative;
        text-align: center;
        width: 100%;
        padding-bottom: 10px;
    }

    h2::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 50px;
        height: 3px;
        background: var(--accent);
        border-radius: 2px;
    }

    .info-grid {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .info-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 14px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .info-item:last-child {
        border-bottom: none;
    }

    .contactos-container {
        display: flex;
        justify-content: space-between;
        gap: 15px;
        padding: 14px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .contacto-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px;
        background: rgba(67, 97, 238, 0.05);
        border-radius: 12px;
    }

    .contacto-icon {
        width: 40px;
        height: 40px;
        background: rgba(67, 97, 238, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 12px;
        color: var(--primary);
    }

    .contacto-label {
        font-size: 0.85rem;
        color: var(--gray);
        margin-bottom: 5px;
    }

    .contacto-value {
        font-weight: 500;
        color: var(--dark);
        margin-bottom: 10px;
    }

    .info-icon {
        width: 40px;
        height: 40px;
        background: rgba(67, 97, 238, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 10px;
        color: var(--primary);
    }

    .info-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .info-label {
        font-size: 0.85rem;
        color: var(--gray);
        margin-bottom: 4px;
    }

    .info-value {
        font-weight: 500;
        color: var(--dark);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .botao-chamada {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 16px;
        background-color: var(--success);
        color: white;
        text-decoration: none;
        font-size: 0.9rem;
        border-radius: 50px;
        transition: var(--transition);
        box-shadow: 0 3px 6px rgba(76, 201, 240, 0.3);
        margin-top: 8px;
    }

    .botao-chamada:hover {
        background-color: #3ab7db;
        transform: translateY(-2px);
        box-shadow: 0 5px 10px rgba(76, 201, 240, 0.4);
    }

    .botao-chamada i {
        margin-right: 5px;
    }

    .botoes-acao {
        display: flex;
        gap: 10px;
        justify-content: center;
        margin-top: 15px;
        flex-wrap: wrap;
    }

    .botao-gps {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 12px 20px;
        background-color: var(--primary);
        color: white;
        border: none;
        border-radius: 50px;
        cursor: pointer;
        font-size: 1rem;
        transition: var(--transition);
        box-shadow: 0 5px 10px rgba(67, 97, 238, 0.3);
    }

    .botao-gps:hover {
        background-color: var(--secondary);
        transform: translateY(-2px);
        box-shadow: 0 8px 15px rgba(67, 97, 238, 0.4);
    }

    .botao-gps.secundario {
        background-color: var(--warning);
        color: var(--dark);
    }

    .botao-gps.secundario:hover {
        background-color: #f9a826;
    }

    .botao-gps i {
        margin-right: 8px;
    }

    .footer {
        text-align: center;
        margin-top: 20px;
        opacity: 0.7;
        transition: var(--transition);
    }

    .footer:hover {
        opacity: 1;
    }

    .footer img {
        max-width: 90px;
        border-radius: 10px;
    }

    .ocultar {
        display: none;
    }

    /* Novos estilos para o sistema de GPS */
    .gps-status {
        display: flex;
        align-items: center;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px dashed rgba(0, 0, 0, 0.1);
    }

    .gps-status-icon {
        margin-right: 10px;
        font-size: 1.2rem;
    }

    .gps-status-text {
        font-size: 0.9rem;
    }

    .loading {
        display: inline-block;
        width: 16px;
        height: 16px;
        border: 2px solid rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        border-top-color: white;
        animation: spin 1s ease-in-out infinite;
        margin-right: 8px;
    }

    /* Animações */
    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }

    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }

    .container {
        animation: fadeIn 0.7s ease;
    }

    /* Responsividade */
    @media (max-width: 520px) {
        .page-wrapper {
            padding: 15px;
        }
        
        .container {
            padding: 25px 18px 18px;
        }
        
        .foto-perfil {
            width: 180px;
            height: 180px;
        }
        
        h2 {
            font-size: 1.7rem;
        }
        
        .contactos-container {
            flex-direction: column;
            gap: 10px;
        }
        
        .contacto-item {
            width: 100%;
        }
        
        .botoes-acao {
            flex-direction: column;
        }
    }