/* ForzaSport Medidas Frontend Styles */

.forzasport-container {
    width: 100%;
    min-height: 100vh;
    background-color: #000000;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    position: relative;
    display: flex;
    flex-direction: column;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Header */
.forzasport-header {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 20px;
    padding-top: 20px;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: transparent;
    background: none;
}

.forzasport-logo {
    text-align: center;
    margin-bottom: 5px;
    z-index: 101;
    background: transparent;
    background-color: transparent;
    margin-bottom:-7px;
}

.forzasport-logo img {
    max-height: var(--forzasport-logo-size, 60px);
    height: var(--forzasport-logo-size, 60px);
}

/* Progress Bar - Largura Total */
.forzasport-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0;
    z-index: 51;
    margin-top: 0;
}

.forzasport-progress-bar {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 0;
}

.forzasport-progress-fill {
    height: 100%;
    background-color: var(--forzasport-progress-color, #ff0000);
    transition: width 0.3s ease;
    width: 0%;
}

.forzasport-progress-text {
    color: #ffffff;
    font-size: 12px;
    font-weight: 300;
    text-align: center;
    background: transparent;
    padding: 8px 15px;
    border-radius: 0;
    margin-top: 0;
    border: none;
}

/* Classes específicas para páginas Parabéns e Compartilhada */
.forzasport-progress-text.progress-text-parabens {
    font-size: 25px;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: -40px;
}

.forzasport-progress-text.progress-text-compartilhada {
    font-size: 25px;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: -40px;
}

/* Classe específica para a tela final (Parabéns) */
.forzasport-progress-text.progress-text-final {
    font-size: 25px;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: -40px;
}

/* Classe específica para o texto "Parabéns" no header */
.forzasport-progress-text.header-parabens-text {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 15px;
    margin-bottom: -30px;
}

/* Classe específica para o texto inicial do progresso */
.forzasport-progress-text.progress-text-initial {
    font-size: 14px;
    font-weight: normal;
    color: #ffffff;
    margin-top: 10px;
    margin-bottom: -20px;
}

/* Classes específicas para cada tela de medida */
.forzasport-progress-text.progress-text-screen-1,
.forzasport-progress-text.progress-text-screen-2,
.forzasport-progress-text.progress-text-screen-3,
.forzasport-progress-text.progress-text-screen-4,
.forzasport-progress-text.progress-text-screen-5,
.forzasport-progress-text.progress-text-screen-6,
.forzasport-progress-text.progress-text-screen-7,
.forzasport-progress-text.progress-text-screen-8,
.forzasport-progress-text.progress-text-screen-9,
.forzasport-progress-text.progress-text-screen-10,
.forzasport-progress-text.progress-text-screen-11,
.forzasport-progress-text.progress-text-screen-12,
.forzasport-progress-text.progress-text-screen-13,
.forzasport-progress-text.progress-text-screen-14,
.forzasport-progress-text.progress-text-screen-15,
.forzasport-progress-text.progress-text-screen-16,
.forzasport-progress-text.progress-text-screen-17,
.forzasport-progress-text.progress-text-screen-18,
.forzasport-progress-text.progress-text-screen-19 {
    font-size: 14px;
    font-weight: normal;
    color: #ffffff;
    margin-top: 10px;
    margin-bottom: -20px;
}

/* Content Area */
.forzasport-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.forzasport-screen {
    display: none;
    width: 100%;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    background-attachment: fixed;
}

.forzasport-screen.active {
    display: flex;
    align-items: normal;
    justify-content: center;
}

/* Tela de Informações - Layout especial inspirado na Marina */
.forzasport-screen[data-screen="0"] {
    background: none;
}

/* Container com imagem de fundo na primeira tela */
.forzasport-container.first-screen {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7)), 
                var(--forzasport-bg-image, url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1920 1080"><rect width="1920" height="1080" fill="%23111"/></svg>'));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.screen-content {
    background-color: rgba(0, 0, 0, 0.85);
    padding: 40px;
    border-radius: 15px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 90%;
}

.screen-title {
    font-size: 2em;
    margin-bottom: 30px;
    text-align: center;
    color: #ffffff;
    font-weight: bold;
    display: none; /* Removemos o título na tela de informações para layout limpo */
}

/* Classes específicas para títulos de cada tela de medida */
.screen-title.title-screen-1 {
    font-size: 2.2em;
    font-weight: bold;
    color: #ffffff;
}

.screen-title.title-screen-2 {
    font-size: 2.2em;
    font-weight: bold;
    color: #ffffff;
}

.screen-title.title-screen-3 {
    font-size: 2.2em;
    font-weight: bold;
    color: #ffffff;
}

.screen-title.title-screen-4 {
    font-size: 2.2em;
    font-weight: bold;
    color: #ffffff;
}

.screen-title.title-screen-5 {
    font-size: 2.2em;
    font-weight: bold;
    color: #ffffff;
}

.screen-title.title-screen-6 {
    font-size: 2.2em;
    font-weight: bold;
    color: #ffffff;
}

.screen-title.title-screen-7 {
    font-size: 2.2em;
    font-weight: bold;
    color: #ffffff;
}

.screen-title.title-screen-8 {
    font-size: 2.2em;
    font-weight: bold;
    color: #ffffff;
}

.screen-title.title-screen-9 {
    font-size: 2.2em;
    font-weight: bold;
    color: #ffffff;
}

.screen-title.title-screen-10 {
    font-size: 2.2em;
    font-weight: bold;
    color: #ffffff;
}

.screen-title.title-screen-11 {
    font-size: 2.2em;
    font-weight: bold;
    color: #ffffff;
}

.screen-title.title-screen-12 {
    font-size: 2.2em;
    font-weight: bold;
    color: #ffffff;
}

.screen-title.title-screen-13 {
    font-size: 2.2em;
    font-weight: bold;
    color: #ffffff;
}

.screen-title.title-screen-14 {
    font-size: 2.2em;
    font-weight: bold;
    color: #ffffff;
}

.screen-title.title-screen-15 {
    font-size: 2.2em;
    font-weight: bold;
    color: #ffffff;
}

.screen-title.title-screen-16 {
    font-size: 2.2em;
    font-weight: bold;
    color: #ffffff;
}

.screen-title.title-screen-17 {
    font-size: 2.2em;
    font-weight: bold;
    color: #ffffff;
}

.screen-title.title-screen-18 {
    font-size: 2.2em;
    font-weight: bold;
    color: #ffffff;
}

.screen-title.title-screen-19 {
    font-size: 2.2em;
    font-weight: bold;
    color: #ffffff;
}

.screen-title.title-screen-20 {
    font-size: 2.2em;
    font-weight: bold;
    color: #ffffff;
}

.screen-title.title-screen-21 {
    font-size: 2.2em;
    font-weight: bold;
    color: #ffffff;
}

/* Form Styles */
.forzasport-form {
    width: 100%;
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    position: relative;
    width: 100%;
}

.form-group.half-width {
    display: flex;
    gap: 10px;
}

.form-group.half-width input {
    flex: 1;
}

.forzasport-form input,
.forzasport-form select {
    width: 100%;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Default state - white border */
.forzasport-form input,
.forzasport-form select {
    border-color: rgba(255, 255, 255, 0.2);
}

.forzasport-form input:focus,
.forzasport-form select:focus {
    outline: none;
    border-color: var(--forzasport-button-color, #ff0000);
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.1);
}

.forzasport-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.forzasport-form select option {
    background-color: #333;
    color: #ffffff;
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.4;
    margin-top: 10px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    margin-top: 2px;
    accent-color: var(--forzasport-button-color, #ff0000);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background-color: transparent;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"]:checked {
    background-color: var(--forzasport-button-color, #ff0000);
    border-color: var(--forzasport-button-color, #ff0000);
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label input[type="checkbox"].invalid {
    border-color: #ff0000 !important;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
    background-color: rgba(255, 0, 0, 0.1);
}

.checkbox-label input[type="checkbox"].invalid:checked {
    background-color: #ff0000 !important;
    border-color: #ff0000 !important;
}

.checkbox-label a {
    color: var(--forzasport-button-color, #ff0000);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Video Player - Marina Style */
.measurement-screen-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px;
    min-height: calc(100vh - 150px);
    display: flex;
    flex-direction: column;
    justify-content: normal;
    position: relative;
    z-index: 1;
}

.video-container {
    margin: 0 auto;
    text-align: center;
    position: relative;
    max-width: 800px;
    width: 100%;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    border: none;
    padding: 0;
}

.video-player {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 0;
    border: none;
    object-fit: contain;
    margin: 0;
    padding: 0;
}

.video-description {
    margin: 0px auto;
    max-width: 800px;
    width: 100%;
    font-size: 13px;
    line-height: 1.6;
    color: #ffffff;
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    max-height: 15vh;
    overflow-y: auto;
}

/* Measurement Section - With Arrows */
.measurement-section {
    display: flex;
    justify-content: center;
    margin: 0px 0;
    flex-shrink: 0;
    margin-top: -20px;
}

.measurement-input-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.measurement-arrow {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--forzasport-button-color, #ff0000);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.measurement-arrow:hover {
    background: color-mix(in srgb, var(--forzasport-button-color, #ff0000) 80%, white);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.measurement-arrow:active {
    transform: scale(0.95);
}

.measurement-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    border-radius: 25px;
    border: none;
}

.measurement-input {
    width: 80px;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    outline: none;
}

.measurement-input:focus {
    background: rgba(255, 255, 255, 0.1);
}

.measurement-unit {
    font-size: 18px;
    color: #ffffff;
    font-weight: bold;
    min-width: 25px;
}

/* Navigation */
.forzasport-navigation {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 9999;
}

.forzasport-btn {
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    background-color: var(--forzasport-button-color, #ff0000);
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
    min-width: 120px;
}

.forzasport-btn:hover {
    background-color: var(--forzasport-button-color, #ff0000);
    opacity: 0.8;
    transform: translateY(-2px);
}

.forzasport-btn:disabled {
    background-color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    transform: none;
}

.forzasport-btn-back {
    background-color: rgba(255, 255, 255, 0.2);
}

.forzasport-btn-back:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Final Screen - Marina Style */
.final-screen {
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0px 20px;
    position: relative;
    z-index: 1;
}

.final-screen h2 {
    color: #ffffff;
    font-size: 32px;
    margin-bottom: 10px;
}

/* Classes específicas para títulos das páginas Parabéns e Compartilhada */
.final-screen h2.title-parabens {
    font-size: 36px;
    font-weight: bold;
    color: #ffffff;
}

.final-screen h2.title-compartilhada {
    font-size: 36px;
    font-weight: bold;
    color: #ffffff;
}

.congratulations-text {
    font-size: 18px;
    margin-bottom: 30px;
    text-align: center;
    color: #ffffff !important;
    line-height: 1.6;
    max-width: 800px;
    margin: 20px auto 30px auto;
    padding: 0 20px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.final-screen .congratulations-text {
    color: #ffffff !important;
    display: block;
    font-size: 14px !important;
}

.final-content {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    margin: 40px auto;
    max-width: 1200px;
    text-align: left;
    align-items: start;
}

.info-column {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-column h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
}

.personal-info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.measurements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.measurement-item {
    background: rgba(80, 80, 80, 0.8);
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    font-size: 14px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.measurement-item .measurement-label {
    color: #ffffff;
    font-weight: normal;
    flex: 1;
}

.measurement-item .measurement-value {
    color: #ffffff;
    font-weight: bold;
    font-size: 16px;
    margin-right: 10px;
}

.edit-measurement-btn {
    background: var(--forzasport-button-color, #ff0000);
    border: none;
    color: #ffffff;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.edit-measurement-btn i {
    color: #ffffff;
    font-size: 14px;
}

/* Disable edit buttons in shared view */
.forzasport-container.shared-view .edit-measurement-btn {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.forzasport-container.shared-view .edit-measurement-btn:hover {
    background: var(--forzasport-button-color, #ff0000);
    transform: none;
}

.edit-measurement-btn:hover {
    background: #ff3333;
    transform: scale(1.1);
}

.final-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    margin: 30px 0 0 0;
    flex-wrap: wrap;
}

.final-actions .forzasport-btn {
    min-width: 120px;
    padding: 12px 20px;
    font-size: 14px;
}

.final-actions .forzasport-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.final-actions .forzasport-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

 /* Botão Cadastrar Medidas - Apenas na página compartilhada */
.forzasport-btn.cadastrar-medidas {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    text-decoration: none;
    display: inline-block;
}

.forzasport-btn.cadastrar-medidas:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Ícones nos botões */
.forzasport-btn i {
    margin-right: 8px;
    font-size: 14px;
}

.forzasport-btn.cadastrar-medidas i {
    margin-right: 8px;
    font-size: 14px;
}

/* Success State - Same layout as final screen */
.success-state {
    text-align: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.measurement-code {
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid var(--forzasport-button-color, #ff0000);
    padding: 20px;
    border-radius: 15px;
    margin: 30px auto;
    font-family: monospace;
    font-size: 18px;
    font-weight: bold;
    max-width: 500px;
    backdrop-filter: blur(10px);
    color: #ffffff;
    text-align: center;
    box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3);
}

/* Modal Styles */
.forzasport-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--forzasport-bg-color, #000000);
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    color: #ffffff;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #ffffff;
}

.close-modal:hover {
    color: var(--forzasport-button-color, #ff0000);
}

.share-url-container {
    margin: 20px 0;
}

.share-url {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    margin-bottom: 10px;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .forzasport-header {
        padding: 15px;
    }
    
    .forzasport-logo img {
        max-height: calc(var(--forzasport-logo-size, 60px) * 0.8);
        height: calc(var(--forzasport-logo-size, 60px) * 0.8);
    }
    
    .forzasport-progress-text {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .forzasport-progress-text.progress-text-parabens {
        font-size: 16px;
    }
    
    .forzasport-progress-text.progress-text-compartilhada {
        font-size: 16px;
    }
    
    .forzasport-progress-text.progress-text-final {
        font-size: 16px;
    }
    
    .forzasport-progress-text.header-parabens-text {
        font-size: 20px;
        letter-spacing: 1px;
        margin-top: 10px;
        margin-bottom: -20px;
    }
    
    .forzasport-progress-text.progress-text-initial {
        font-size: 12px;
        margin-top: 8px;
        margin-bottom: -15px;
    }
    
    /* Classes responsivas para cada tela de medida */
    .forzasport-progress-text.progress-text-screen-1,
    .forzasport-progress-text.progress-text-screen-2,
    .forzasport-progress-text.progress-text-screen-3,
    .forzasport-progress-text.progress-text-screen-4,
    .forzasport-progress-text.progress-text-screen-5,
    .forzasport-progress-text.progress-text-screen-6,
    .forzasport-progress-text.progress-text-screen-7,
    .forzasport-progress-text.progress-text-screen-8,
    .forzasport-progress-text.progress-text-screen-9,
    .forzasport-progress-text.progress-text-screen-10,
    .forzasport-progress-text.progress-text-screen-11,
    .forzasport-progress-text.progress-text-screen-12,
    .forzasport-progress-text.progress-text-screen-13,
    .forzasport-progress-text.progress-text-screen-14,
    .forzasport-progress-text.progress-text-screen-15,
    .forzasport-progress-text.progress-text-screen-16,
    .forzasport-progress-text.progress-text-screen-17,
    .forzasport-progress-text.progress-text-screen-18,
    .forzasport-progress-text.progress-text-screen-19 {
        font-size: 12px;
        margin-top: 8px;
        margin-bottom: -15px;
    }
    
    .screen-content {
        padding: 30px 20px;
        max-width: 400px;
        margin: 0px 20px 20px 20px;
    }
    
    .measurement-screen-content {
        padding: 15px 10px;
        min-height: calc(100vh - 130px);
    }
    
    .video-container {
        max-width: 100vw;
        margin: 0 auto;
        padding: 0;
    }
    
    .video-player {
        aspect-ratio: 16/9;
        object-fit: contain;
    }
    
    .video-description {
        margin: 15px auto;
        max-width: 95vw;
        padding: 12px;
        font-size: 14px;
        max-height: 20vh;
        line-height: 1.4;
    }
    
    .measurement-input-container {
        gap: 10px;
        padding: 15px;
        border-radius: 40px;
    }
    
    .measurement-arrow {
       
    }
    
    .measurement-input-wrapper {
        padding: 8px 15px;
    }
    
    .measurement-input {
        width: 60px;
        font-size: 20px;
        padding: 8px;
    }
    
    .measurement-unit {
        font-size: 16px;
    }
    
    .form-group.half-width {
        flex-direction: column;
        gap: 15px;
    }
    
    .forzasport-navigation {
        bottom: 20px;
        gap: 15px;
    }
    
    .forzasport-btn {
        padding: 12px 30px;
        font-size: 14px;
        min-width: 100px;
    }
    
    .final-content {
        grid-template-columns: 1fr;
        gap: 30px;
        max-width: 100%;
    }
    
    .info-column {
        padding: 20px;
    }
    
    .measurements-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .measurement-item {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .measurement-item .measurement-value {
        font-size: 14px;
    }
    
    .edit-measurement-btn {
        width: 25px;
        height: 25px;
        font-size: 10px;
    }
    
    .final-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .final-actions .forzasport-btn {
        width: 100%;
        max-width: none;
        min-width: auto;
    }
    
    .measurement-code {
        margin: 20px auto;
        padding: 15px;
        font-size: 16px;
        max-width: 90%;
    }
}

/* Tablet breakpoint */
@media (max-width: 1024px) and (min-width: 769px) {
    .measurement-screen-content {
        padding: 30px 20px;
        min-height: calc(100vh - 140px);
    }
    
    .video-container {
        max-width: 100vw;
        margin: 0 auto;
        padding: 0;
    }
    
    .video-player {
        aspect-ratio: 16/9;
        object-fit: contain;
    }
    
    .video-description {
        max-width: min(900px, 85vw);
        max-height: 18vh;
    }
}

/* Medium screens */
@media (max-width: 1200px) and (min-width: 1025px) {
    .video-player {
        aspect-ratio: 16/9;
        object-fit: contain;
    }
    
    .video-description {
        max-height: 16vh;
    }
}

@media (max-width: 480px) {

    .measurement-input-container {
      
        padding: 0px;
       
    }

    .video-description {
   
        min-height: 160px!important;
    }

    .measurement-code {
        margin: 0px auto;
        padding: 10px;
        font-size: 14px !important;
    }

    .congratulations-text {
      
        margin: 0px auto 0px auto;
        padding: 0 0px;
      
    }

    .personal-info-item {
      
        margin-bottom: 0px;
        padding: 5px 0;
        font-size: 14px;
    font-weight: 300;
    }

    .measurement-item {
        padding: 3px 7px;
        font-size: 13px;
    }

    .screen-content {
        padding: 15px;
        margin: 10px 10px 20px 10px;
    }
    

    
    .measurement-screen-content {
        padding: 10px 5px;
        min-height: calc(100vh - 120px);
    }
    
    .video-container {
        max-width: 100vw;
        margin: 0 auto;
        padding: 0;
    }
    
    .video-player {
        aspect-ratio: 16/9;
        object-fit: contain;
    }
    
    .video-description {
        margin: 10px auto;
        max-width: 98vw;
        padding: 10px;
        font-size: 16px;
        max-height: 25vh;
        line-height: 1.3;
    }
    
    .measurement-input-container {
        gap: 8px;
        padding: 12px;
    }
    
    .measurement-arrow {
        width: 45px;
        height: 45px;
    }
    
    .measurement-input {
        width: 60px;
        font-size: 18px;
        padding: 8px;
    }
    
    .measurement-unit {
        font-size: 14px;
    }
    
    .congratulations-text {
        font-size: 1.5em;
    }
    
    .final-screen h2.title-parabens {
        font-size: 28px;
    }
    
    .final-screen h2.title-compartilhada {
        font-size: 28px;
    }
    
    /* Classes responsivas para títulos das telas de medida */
    .screen-title.title-screen-1,
    .screen-title.title-screen-2,
    .screen-title.title-screen-3,
    .screen-title.title-screen-4,
    .screen-title.title-screen-5,
    .screen-title.title-screen-6,
    .screen-title.title-screen-7,
    .screen-title.title-screen-8,
    .screen-title.title-screen-9,
    .screen-title.title-screen-10,
    .screen-title.title-screen-11,
    .screen-title.title-screen-12,
    .screen-title.title-screen-13,
    .screen-title.title-screen-14,
    .screen-title.title-screen-15,
    .screen-title.title-screen-16,
    .screen-title.title-screen-17,
    .screen-title.title-screen-18,
    .screen-title.title-screen-19,
    .screen-title.title-screen-20,
    .screen-title.title-screen-21 {
        font-size: 1.8em;
    }
}

/* Field Validation - Only Red Border */
.forzasport-form input.invalid,
.forzasport-form select.invalid {
    border-color: #ff0000 !important;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
}

/* Checkbox base styles */
.forzasport-form input[type="checkbox"] {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background-color: transparent;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    position: relative;
    cursor: pointer;
    padding: 10px 10px;
    margin-top: -2px;
}

/* Checkbox checked state */
.forzasport-form input[type="checkbox"]:checked {
    background-color: var(--forzasport-button-color, #ff0000);
    border-color: var(--forzasport-button-color, #ff0000);
}

.forzasport-form input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Checkbox invalid state */
.forzasport-form input[type="checkbox"].invalid {
    border-color: #ff0000 !important;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
    background-color: rgba(255, 0, 0, 0.1);
}

.forzasport-form input[type="checkbox"].invalid:checked {
    background-color: #ff0000 !important;
    border-color: #ff0000 !important;
}

/* Hide default browser validation messages */
.forzasport-form input:invalid,
.forzasport-form select:invalid {
    box-shadow: none;
}

.forzasport-form input:invalid:focus,
.forzasport-form select:invalid:focus {
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
}

/* Botão flutuante de reiniciar */
.reset-button {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--button-color, #ff0000);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.reset-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.reset-button:active {
    transform: scale(0.95);
}

.reset-button i {
    transition: transform 0.3s ease;
}

.reset-button:hover i {
    transform: rotate(180deg);
}

/* Ocultar botão em telas muito pequenas */
@media (max-width: 480px) {
    .reset-button {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Ocultar botão de reset na visualização compartilhada */
.shared-view .reset-button {
    display: none !important;
}

/* Mensagens de sucesso e erro */
.message {
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 8px;
    font-weight: 500;
    animation: slideInDown 0.3s ease;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botões de edição desabilitados */
.edit-measurement-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #666 !important;
    border-color: #666 !important;
    color: #999 !important;
}

.edit-measurement-btn.disabled:hover {
    background-color: #666 !important;
    border-color: #666 !important;
    color: #999 !important;
    transform: none !important;
}

.edit-measurement-btn.disabled i {
    color: #999 !important;
}
