/* Módulo de Prontidão - Apple Design System v1.1 */

:root {
    --ios-blue: #007AFF;
    --ios-green: #34C759;
    --ios-red: #FF3B30;
    --ios-orange: #FF9500;
    --ios-yellow: #FFCC00;
    --ios-gray: #8E8E93;
    --ios-gray-light: #F2F2F7;
    --ios-card-bg: #FFFFFF;
    --card-radius: 20px;
    --font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

.spt-ios-wrapper {
    font-family: var(--font-stack);
    background-color: var(--ios-gray-light);
    color: #1C1C1E;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px 20px 120px 20px;
    box-sizing: border-box;
    min-height: 100vh;
}

/* HEADER MODIFICADO */
.spt-ios-header { margin-bottom: 25px; padding-top: 10px; }
.spt-ios-header .subtitle { font-size: 13px; font-weight: 600; text-transform: uppercase; color: var(--ios-gray); display: block; margin-bottom: 5px; }
.spt-ios-header h1 { font-size: 28px; font-weight: 800; margin: 0; color: #000; }
.header-desc { font-size: 15px; color: #636366; margin-top: 8px; line-height: 1.4; font-weight: 400; }

/* CARDS */
.question-card {
    background: #fff;
    border-radius: var(--card-radius);
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.spt-ios-card.highlight-card { background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }

.q-header { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.q-icon { font-size: 22px; }
.q-header label { font-size: 17px; font-weight: 600; color: #000; }

/* SELETORES */
.q-selector { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 10px; }

.q-selector button {
    width: 48px; height: 48px; border-radius: 50%; border: 2px solid #E5E5EA;
    background: #fff; color: var(--ios-gray); font-size: 16px; font-weight: 600;
    cursor: pointer; transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex; align-items: center; justify-content: center;
    -webkit-tap-highlight-color: transparent; padding: 0;
}

/* CORES DINÂMICAS */
/* Positivo (Sono/Motivação): 1=Red -> 5=Green */
.q-selector[data-type="positive"] button.selected[data-val="1"] { background: var(--ios-red); border-color: var(--ios-red); color: #fff; }
.q-selector[data-type="positive"] button.selected[data-val="2"] { background: var(--ios-orange); border-color: var(--ios-orange); color: #fff; }
.q-selector[data-type="positive"] button.selected[data-val="3"] { background: var(--ios-yellow); border-color: var(--ios-yellow); color: #fff; }
.q-selector[data-type="positive"] button.selected[data-val="4"] { background: #A4E062; border-color: #A4E062; color: #fff; }
.q-selector[data-type="positive"] button.selected[data-val="5"] { background: var(--ios-green); border-color: var(--ios-green); color: #fff; }

/* Negativo (Stress/Fadiga): 1=Green -> 5=Red */
.q-selector[data-type="negative"] button.selected[data-val="1"] { background: var(--ios-green); border-color: var(--ios-green); color: #fff; }
.q-selector[data-type="negative"] button.selected[data-val="2"] { background: #A4E062; border-color: #A4E062; color: #fff; }
.q-selector[data-type="negative"] button.selected[data-val="3"] { background: var(--ios-yellow); border-color: var(--ios-yellow); color: #fff; }
.q-selector[data-type="negative"] button.selected[data-val="4"] { background: var(--ios-orange); border-color: var(--ios-orange); color: #fff; }
.q-selector[data-type="negative"] button.selected[data-val="5"] { background: var(--ios-red); border-color: var(--ios-red); color: #fff; }

.q-selector button:active { transform: scale(0.9); }

.q-labels { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; color: var(--ios-gray); text-transform: uppercase; padding: 0 5px; }

/* TEXTAREA */
textarea {
    width: 100%; background: #E5E5EA; border: none; border-radius: 12px;
    padding: 14px; font-size: 16px; font-family: inherit; color: #000;
    min-height: 80px; resize: none; outline: none; box-sizing: border-box;
}
textarea:focus { background: #eaeaef; }

/* BOTÕES */
.spt-fab-container { margin-top: 30px; position: sticky; bottom: 90px; z-index: 10; }
.spt-ios-btn-primary {
    background-color: var(--ios-blue) !important; color: #fff !important;
    border: none !important; padding: 16px; border-radius: 14px;
    font-size: 17px; font-weight: 600; width: 100%; cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.3); transition: transform 0.1s;
    text-align: center; display: block;
}
.spt-ios-btn-primary:active { transform: scale(0.98); opacity: 0.9; }
.spt-ios-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

/* TOAST */
.spt-ios-toast {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-100px);
    background: rgba(0,0,0,0.8); color: #fff; padding: 12px 24px; border-radius: 50px;
    font-size: 14px; font-weight: 600; z-index: 3000; opacity: 0; transition: all 0.4s;
}
.spt-ios-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.spt-ios-toast.success { background: var(--ios-green); }
.spt-ios-toast.error { background: var(--ios-red); }