@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;700&display=swap');

:root {
    --color-ayuda: #40C4FF;
    --color-pausa: #CCFF00;
    --color-maslento: #9D46FF;
    --color-dolor: #FF3D00;
    --color-text: #ffffff;
    --font-main: 'Roboto Condensed', sans-serif;
    --bg-dark: #121212;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    color: var(--color-text);
    font-family: var(--font-main);
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

.mobile-container {
    width: 100%;
    max-width: 720px;
    height: 100vh;
    height: 100dvh;
    position: relative;
    background: #000;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
}

/* Video Background */
.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.8;
    /* Slight dim for text readiness */
}

.ui-layer {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    padding: 24px;
    pointer-events: none;
    /* Let clicks pass to buttons */
}

/* Typography Utilities */
.text-center {
    text-align: center;
}

.font-bold {
    font-weight: 700;
}

.uppercase {
    text-transform: uppercase;
}

/* Buttons */
.btn-circle {
    width: 140px;
    /* Doubled */
    height: 140px;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1.5rem;
    /* Increased text */
    color: #000;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    text-decoration: none;
    transition: transform 0.1s;
    backdrop-filter: blur(5px);
}

.btn-circle:active {
    transform: scale(0.95);
}

/* Button Variants (Alpha 50%) */
.btn-ayuda {
    background-color: rgba(64, 196, 255, 0.5);
    color: #fff;
}

.btn-pausa {
    background-color: rgba(204, 255, 0, 0.5);
    color: #fff;
}

.btn-maslento {
    background-color: rgba(157, 70, 255, 0.5);
    color: #fff;
}

.btn-dolor {
    background-color: rgba(255, 61, 0, 0.5);
    color: #fff;
}

/* Positioning System for Corners (Adjusted for larger size) */
.corner-tl {
    position: absolute;
    top: 40px;
    left: 40px;
}

.corner-tr {
    position: absolute;
    top: 40px;
    right: 40px;
}

.corner-bl {
    position: absolute;
    bottom: 40px;
    left: 40px;
}

.corner-br {
    position: absolute;
    bottom: 40px;
    right: 40px;
}

/* Middle Positioning for Page 3 - Adjusted UP */
.pos-mid-left {
    position: absolute;
    top: 280px;
    /* Moved up from 380px */
    left: 20px;
    transform: translateY(-50%);
}

.pos-mid-right {
    position: absolute;
    top: 280px;
    /* Moved up from 380px */
    right: 20px;
    transform: translateY(-50%);
}

/* Inhala Overlay */
.overlay-inhala {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5rem;
    /* Larger */
    color: rgba(200, 255, 100, 0.8);
    font-weight: 700;
    pointer-events: none;
    letter-spacing: 2px;
}

/* Header Elements (Page 1/2) */
.header-info {
    text-align: center;
    margin-top: 80px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.title-large {
    font-size: 4rem;
    /* Larger */
    line-height: 1;
    margin-top: 8px;
}

.sub-info {
    font-size: 2rem;
    /* Half of large */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

/* Progress Bars (Page 2) */
.status-bar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.progress-track {
    display: flex;
    gap: 4px;
    margin-top: 8px;
    height: 6px;
    width: 100%;
}

.progress-segment {
    flex: 1;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.progress-segment.active-pink {
    background: #FF4081;
}

.progress-segment.active-purple {
    background: #9D46FF;
}

/* Page 3 Specifics */
.page3-bg {
    background: #000;
    color: #fff;
}

.report-header {
    background: #000;
    padding: 24px;
    padding-top: 40px;
    border-bottom: 1px solid #333;
}

.report-list {
    padding: 24px;
    padding-top: 150px;
    /* Reduced to pull list up */
    padding-bottom: 200px;
    /* Added Safe Area for Bottom Right Button */
    overflow-y: auto;
}

.report-item {
    margin-bottom: 24px;
}

.bar-dual {
    display: flex;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.icon-metric {
    width: 150px;
    /* Tripled from 50px */
    height: 150px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4.5rem;
    /* Tripled from 1.5rem */
    margin: 0 auto 16px auto;
    /* Increased margin for balance */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}