@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color:  #4bf7ee; /* Azul Bebê/Ciano */
    --secondary-color: #1A3E5C; /* Azul Escuro */
    --transition-speed: 0.3s;
}

/* Base e Layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #2a2a72 0%, #009ffd 74%);
    min-height: 100vh;
    display: flex;
    align-items: center; 
    justify-content: center;
    color: #fff;
    overflow-y: auto; 
}

/* ESTILO PADRÃO DO CONTAINER GLASS (PARA TODAS AS TELAS) */
.container {
    display: flex; 
    flex-direction: column;
    width: 90%;
    max-width: 1200px; 
    min-height: 85vh;
    /* Efeito Glassmorphism de Fundo (mantido) */
    background: rgba(255, 255, 255, 0.05); 
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 24px; /* Mantido */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); /* Mantido */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Navbar Glass --- */
.navbar {
    width: 100%;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-nav {
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    
}

.logo { 
    display: flex;
    align-items: center;
}
.logo i { 
    font-size: 24px; 
    color: var(--primary-color); 
    opacity: 0.9; 
    margin-right: 10px;
}
.logo h3 { 
    font-size: 20px; 
    font-weight: 600; 
    color: #fff; 
}

.nav-menu ul { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    display: flex;
}
.nav-menu li {
    margin-left: 15px;
}
.nav-menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 8px;
    transition: background 0.3s ease;
}
.nav-menu li a:hover, .nav-menu li.active a {
    background: rgba(255, 255, 255, 0.15);
    color: var(--primary-color);
}
/* FIM NAVBAR */

/* Content e Header */
.content { 
    padding: 40px; 
    flex-grow: 1; 
}
header { 
    margin-bottom: 30px; 
    text-align: center; 
}
header h1 { font-size: 32px; font-weight: 600; margin-bottom: 8px; }
header p { font-size: 16px; opacity: 0.8; }

/* Gerenciamento de Páginas */
.page { 
    display: none; 
    animation: fadeIn 0.5s ease-out;
} 
.active-page { 
    display: block; 
    height: 100%; 
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Estilos da Home Estática --- */

#home {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.home-profile-card {
    display: flex;
    background: rgba(255, 255, 255, 0.1); 
    border-radius: 20px;
    overflow: hidden;
    max-width: 800px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-image {
    flex: 1;
    min-width: 300px; 
    overflow: hidden;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px; 
    background-size: cover;
    background-position: center;
    filter: brightness(0.9); 
}

.profile-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    text-align: center;
}

.icon-large {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.profile-details h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.profile-status {
    font-size: 20px;
    font-weight: 300;
    opacity: 0.8;
    margin-bottom: 30px;
}

.call-to-action .btn-primary {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(75, 247, 238, 0.4);
}

.call-to-action .btn-primary:hover {
    background-color: #63fce9;
    transform: translateY(-2px);
}

.call-to-action .btn-primary i {
    margin-right: 8px;
}

/* --- Estilos do Dashboard (Cards) --- */
.card-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 30px; }
.card { background: rgba(255, 255, 255, 0.07); backdrop-filter: blur(10px); border-radius: 16px; padding: 24px; border: 1px solid rgba(255, 255, 255, 0.05); }
.card.main-metric { 
    grid-column: span 2; 
    padding: 30px; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
}
.main-metric .metric-value { font-size: 72px; font-weight: 700; color: var(--primary-color); line-height: 0.9; }
.main-metric .metric-label { font-size: 20px; font-weight: 500; margin-top: 5px; opacity: 0.9; }
.card-icon { width: 50px; height: 50px; background: rgba(0, 123, 255, 0.5); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 15px; }
.card-content { display: flex; align-items: center; }
.card-content i { font-size: 24px; margin-right: 15px; }
.card-info h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.card-info p { font-size: 14px; opacity: 0.8; color: #ccc; }
.progress-bar { width: 100%; height: 10px; background: rgba(255, 255, 255, 0.1); border-radius: 5px; margin-top: 15px; overflow: hidden; }
.progress-bar-fill { height: 100%; background-color: var(--primary-color); transition: width 0.5s ease; }

/* --- Estilo Específico para o Áudio e Marcos --- */
/* ------------------------------------------------------------------- */
/* CSS da Card (Contêiner com o efeito Glassmorphism) */
/* ------------------------------------------------------------------- */
.card-audio {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    padding: 50px; 
    
    /* --- EFEITO GLASSMOPHISM APLICADO NA CARD --- */
    background-color: rgba(255, 255, 255, 0.2); 
    backdrop-filter: blur(10px);              
    border-radius: 15px;                      
    border: 1px solid rgba(255, 255, 255, 0.4); 
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37); 
    
    /* OPCIONAL: Adicione margem para separar do resto da página */
    margin: 20px auto; 
    max-width: 100%; /* Para a card ter um tamanho definido */
}

/* ------------------------------------------------------------------- */
/* CSS do Player Escondido e Botão Customizado */
/* ------------------------------------------------------------------- */
/* O .card-audio HERDA O ESTILO BASE DO .card */
.card-audio {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    
    /* Padding ajustado para o tamanho padrão de 24px do .card */
    padding: 24px; 
    
    /* Removendo margens e largura máxima conflitantes com o grid */
    max-width: none; 
    margin: 0;
}

/* 1. Esconde o reprodutor de áudio nativo (tag <audio>) */
.baby-audio-player {
    display: none; 
}

/* 2. Estilo base do botão customizado */
.custom-play-button {
    background-color: #ff5b5b; /* Cor do seu ícone de coração */
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: 15px; /* Espaço após a descrição */
}

.custom-play-button:hover {
    background-color: #ff5b5b;
}
/* Responsividade */
@media (max-width: 1024px) {
    .container { 
        width: 100%; 
        min-height: 100vh; 
        /* Mantém o border-radius e box-shadow originais do container */
    }
    .content { padding: 20px; }
    .card-container { grid-template-columns: 1fr 1fr; }
    .card.main-metric { grid-column: span 2; }
    
    /* Home responsiva */
    .home-profile-card {
        flex-direction: column;
        max-width: 600px;
    }
    .profile-image { min-width: 100%; }
    .photo-placeholder { min-height: 300px; }

    /* Navbar responsiva */
    .navbar { padding: 15px 20px; }
    .nav-menu ul { 
        flex-wrap: wrap; 
        justify-content: flex-end;
    }
    .nav-menu li {
        margin-left: 10px;
        margin-top: 5px;
    }
    .glass-nav {
        border-radius: 0%;
    }
}

@media (max-width: 768px) {
    /* Layout principal */
    .content { padding: 15px; } 
    .card-container { grid-template-columns: 1fr; } 
    .card.main-metric { grid-column: span 1; } 
    
    /* Home Card Lado a Lado (Ajuste Final) */
    .home-profile-card { 
        flex-direction: row; 
        /* Mantém o border-radius original de 20px */
    }
    .profile-image { 
        min-width: 40%;
    }
    .photo-placeholder { 
        min-height: 250px; 
    }
    .profile-details {
        padding: 20px; 
    }
    .profile-details h1 {
        font-size: 32px; 
    }
    .profile-status {
        font-size: 16px;
    }
    .icon-large {
        font-size: 40px; 
    }
    
    /* Navbar: Logo na Esquerda e Menu na Direita, Compacto */
    .navbar {
        flex-direction: row; 
        align-items: center;
        padding: 10px 10px;

    }
    
    .logo { flex-shrink: 0; }
    .logo i { font-size: 20px; margin-right: 5px; }
    .logo h3 { font-size: 16px; }

    .nav-menu {
        flex-grow: 1; 
        display: flex;
        justify-content: flex-end;
    }
    
    .nav-menu ul {
        display: flex;
        flex-wrap: nowrap;
        width: auto; 
        justify-content: flex-end; 
    }
    
    .nav-menu li {
        margin: 0 0 0 5px; 
        flex-grow: 0; 
        text-align: center;
    }
    
    .nav-menu li a {
        padding: 4px 6px; 
        font-size: 12px; 
    }

}
