/* Settings Page - Cute INS Style */
.settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 182, 193, 0.2);
    flex-shrink: 0;
}

.settings-back-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #FF8FAB;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.settings-back-btn:hover {
    background: rgba(255, 182, 193, 0.15);
}

.settings-back-btn:active {
    transform: scale(0.95);
}

.settings-title {
    font-size: 18px;
    font-weight: 700;
    color: #FF6B8A;
    text-shadow: 0 2px 4px rgba(255, 182, 193, 0.2);
}

.settings-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px;
    height: 100%;
}

/* Settings Card - Claymorphism Style */
.settings-card {
    background: linear-gradient(145deg, #FFFFFF 0%, #FFF8FA 100%);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    border: 2px solid rgba(255, 182, 193, 0.3);
    box-shadow: 
        0 4px 20px rgba(255, 182, 193, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 182, 193, 0.2);
}

.card-icon {
    font-size: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FFE4E9 0%, #FFD1DC 100%);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(255, 182, 193, 0.3);
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: #FF6B8A;
}

/* Input Groups */
.settings-input-group {
    margin-bottom: 16px;
}

.settings-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #8B5A6B;
    margin-bottom: 8px;
}

.settings-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-size: 15px;
    color: #5A3D4A;
    background: #FFFFFF;
    border: 2px solid #FFD1DC;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

.settings-input::placeholder {
    color: #FFB6C1;
}

.settings-input:focus {
    border-color: #FF8FAB;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.03),
        0 0 0 4px rgba(255, 182, 193, 0.2);
    transform: translateY(-1px);
}

.settings-select {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-size: 15px;
    color: #5A3D4A;
    background: #FFFFFF;
    border: 2px solid #FFD1DC;
    border-radius: 12px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23FF8FAB' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.settings-select:focus {
    border-color: #FF8FAB;
    box-shadow: 0 0 0 4px rgba(255, 182, 193, 0.2);
}

/* Settings Row */
.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.settings-value {
    font-size: 15px;
    font-weight: 600;
    color: #FF8FAB;
    background: rgba(255, 182, 193, 0.15);
    padding: 4px 12px;
    border-radius: 20px;
    min-width: 40px;
    text-align: center;
}

/* Slider */
.slider-container {
    padding: 8px 0 16px;
}

.cute-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, #FFE4E9 0%, #FFD1DC 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.cute-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF8FAB 0%, #FF6B8A 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 107, 138, 0.4);
    border: 2px solid #FFFFFF;
    transition: transform 0.2s ease;
}

.cute-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.cute-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF8FAB 0%, #FF6B8A 100%);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(255, 107, 138, 0.4);
    border: 2px solid #FFFFFF;
}

/* Toggle Switch */
.cute-toggle {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 30px;
}

.cute-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #E8E8E8;
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 3px;
    bottom: 3px;
    background: #FFFFFF;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.cute-toggle input:checked + .toggle-slider {
    background: linear-gradient(135deg, #FF8FAB 0%, #FF6B8A 100%);
}

.cute-toggle input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* Menu Items */
.settings-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 182, 193, 0.15);
    transition: all 0.2s ease;
}

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

.settings-menu-item:hover {
    background: rgba(255, 182, 193, 0.05);
    margin: 0 -12px;
    padding: 14px 12px;
    border-radius: 10px;
}

.menu-label {
    font-size: 15px;
    color: #5A3D4A;
    font-weight: 500;
}

.settings-menu-item.danger .menu-label {
    color: #FF6B8A;
}

.menu-arrow {
    transition: transform 0.2s ease;
}

.settings-menu-item:hover .menu-arrow {
    transform: translateX(4px);
}

/* Actions & Buttons */
.settings-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 182, 193, 0.2);
}

.test-status {
    font-size: 14px;
    color: #8B5A6B;
    font-weight: 500;
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    flex: 1 1 100%;
    max-height: 4.2em;
    overflow-y: auto;
    padding-right: 2px;
}

.btn-group {
    display: flex;
    gap: 10px;
    margin-left: auto;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.settings-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    outline: none;
}

.settings-btn.primary {
    background: linear-gradient(135deg, #FF8FAB 0%, #FF6B8A 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(255, 107, 138, 0.3);
}

.settings-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 138, 0.4);
}

.settings-btn.primary:active {
    transform: translateY(0);
}

.settings-btn.secondary {
    background: #FFFFFF;
    color: #FF8FAB;
    border: 2px solid #FFD1DC;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.settings-btn.secondary:hover {
    background: #FFF5F7;
    border-color: #FF8FAB;
    transform: translateY(-2px);
}

/* Footer */
.settings-footer {
    text-align: center;
    font-size: 13px;
    color: #FFB6C1;
    margin-top: 24px;
    font-weight: 500;
}

/* Add Voice API Setting Input Styles in Settings View */
.voice-setting-group {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
