
        /* Toggle Switch */
        .toggle-switch {
            position: relative;
            width: 48px;
            height: 26px;
            margin-left: 10px;
        }
        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: 0.3s;
            border-radius: 26px;
        }
        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 20px;
            width: 20px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: 0.3s;
            border-radius: 50%;
        }
        .toggle-switch input:checked + .toggle-slider {
            background-color: #4CAF50;
        }
        .toggle-switch input:checked + .toggle-slider:before {
            transform: translateX(22px);
        }
        
        * { box-sizing: border-box; margin: 0; padding: 0; }
        body { background: #494d5f; color: #e5eaf5; font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; line-height: 1.6; }        .container { width: 100%; max-width: 100%; margin: 0; padding: 20px 40px; }
        h1 { text-align: center; color: #e5eaf5; font-weight: 500; text-shadow: 2px 2px 10px #000000bd; margin-bottom: 10px; }        .subtitle { text-align: center; color: #d0bdf4; margin-bottom: 30px; }        
        .section { background: white; border-radius: 10px; padding: 3.5rem; margin-bottom: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
        .section h2 { color: #8458b3; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #e0e0e0; font-size: 24px; font-weight: 400; }        
        .form-group { margin-bottom: 15px; }
        .form-group label { display: block; margin-bottom: 5px; font-weight: 400; color: #494d5f; font-size: 13px; }
        .form-group label span { color: red; }
        .form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; }
        .form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #1a73e8; }
        
        .form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
        
        .photo-upload { text-align: center; color: #8458b3; }
        .photo-preview { width: 120px; height: 120px; border-radius: 50%; background: #e0e0e0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
        .photo-preview img { width: 100%; height: 100%; object-fit: cover; }
        .photo-row {
            display: flex;
            margin-bottom: 20px;
            flex-wrap: nowrap;
            align-content: center;
            justify-content: center;
        }

        .mbti-badge-type {
            font-size: 11px;
            font-weight: bold;
            letter-spacing: 1px;
        }

        .mbti-badge-name {
            font-size: 20px;
            opacity: 0.9;
        }

        .mbti-badge {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: #fff;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
            flex-shrink: 0;
        }
        .mbti-badge-icon { font-size: 22px; margin-bottom: 2px; }
        .mbti-badge-type { font-size: 16px; font-weight: bold; letter-spacing: 2px; }
        .mbti-badge-name { font-size: 11px; opacity: 0.9; margin-top: 2px; }
        .mbti-badge-date { font-size: 9px; opacity: 0.7; margin-top: 4px; }

        .preview-mbti-card {
            max-width: 200px;
            border-radius: 12px;
            background: linear-gradient(135deg, #97a8f2, #8b58c0);
            color: #fff;
            display: flex;
            flex-direction: column;
            justify-content: center;
            text-align: center;
            padding: 12px 8px;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
            margin: 10px;
            align-items: center;
        }
        .preview-mbti-type { font-size: 12px; font-weight: bold; letter-spacing: 1px; }
        .preview-mbti-name { font-size: 20px; opacity: 0.9; margin-top: 2px; font-weight: 700; }
        .preview-mbti-date { font-size: 9px; opacity: 0.7; margin-top: 4px; }
        
        .card-list { margin-top: 15px; }
        .card-item { background: #f9f9f9; border: 1px solid #e0e0e0; border-radius: 8px; padding: 15px; margin-bottom: 10px; position: relative; }
        .card-item .remove-btn { position: absolute; top: 10px; right: 10px; background: #494d5f; color: white; border: none; border-radius: 50%; width: 28px; height: 28px; padding: 0; cursor: pointer; font-size: 14px; line-height: 28px; text-align: center; }
        .add-btn { border-radius: 50px; background: #8458b3; font-weight: 400; border: solid 1px #d0bdf4; color: white; border: none; padding: 10px 20px; cursor: pointer; font-size: 14px; margin-top: 10px; }
        .add-btn:hover { background: #4e346b; }
        
        .skill-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
        .skill-tag { background: #e8f0fe; color: #1a73e8; padding: 5px 12px; border-radius: 15px; font-size: 13px; display: flex; align-items: center; gap: 5px; }
        .skill-tag .remove { cursor: pointer; font-weight: bold; }
        
        .btn-submit { padding: 10px 20px; background: #8458b3; color: white; border: none; border-radius: 30px; cursor: pointer; font-size: 16px; margin: 0 10px; }        .btn-submit:hover { background: #d0bdf4; color: #494d5f; }
        
        .message { padding: 15px; border-radius: 6px; margin-bottom: 20px; display: none; }
        
        /* Modal Popup */
        .modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 9999; align-items: center; justify-content: center; }
        .modal-overlay.show { display: flex; }
        .modal { background: #494d5f; border-radius: 12px; padding: 24px; max-width: 400px; width: 90%; box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
        .modal-title { font-size: 18px; font-weight: bold; margin-bottom: 12px; color: #fff; }
        .modal-content { margin-bottom: 20px; font-size: 15px; line-height: 1.5; color: #e5eaf5; }
        .modal-error .modal-title { color: #e53935; }
        .modal-success .modal-title { color: #43a047; }
        .modal-btn { padding: 10px 24px; border: none; border-radius: 6px; cursor: pointer; font-size: 14px; }
        .modal-btn-primary { background: #d0bdf4; color: #494d5f; }
        .modal-btn-primary:hover { background: #8458b3; color: #fff; }
        .message.success { background: #d4edda; color: #155724; display: block; }
        .message.error { background: #f8d7da; color: #721c24; display: block; }
        
        @media (max-width: 600px) {
            .form-row { grid-template-columns: 1fr; }
        }
    
        /* Custom Checkbox */
        input[type="checkbox"] {
            accent-color: #8458b3;
        }
        input[type="checkbox"]:checked {
            background-color: #D0BDF4;
            border-color: #8458b3;
        }


        /* Site Header */
        .site-header { background: #000000; padding: 15px 40px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #d0bdf4; }
        .site-logo { color: #d0bdf4; font-size: 20px; font-weight: 500; }
        .site-logo span { color: #e5eaf5; }
        
        /* Main Content Layout */
        .main-content { display: flex; gap: 30px; }
        .form-wrapper { flex: 1; }
        .preview-panel { flex: 1; position: sticky; top: 20px; align-self: flex-start; }
        
        /* Preview Card */
        .preview-card { background: white; border-radius: 10px; padding: 3rem; color: #333; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
        .preview-card h3 { color: #8458b3; margin-bottom: 15px; border-bottom: 2px solid #d0bdf4; padding-bottom: 10px; }
        .preview-field { margin-bottom: 10px; }
        .preview-label { font-weight: 500; color: #8458b3; font-size: 13px; }
        .preview-value { color: #333; font-size: 14px; }
        .preview-section { margin-top: 20px; padding-top: 15px; border-top: 1px dashed #ddd; }
        .preview-section h4 { color: #494d5f; margin-bottom: 10px; font-size: 14px; }


/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 28px;
    display: inline-block;
    vertical-align: middle;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 28px;
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}
.toggle-switch input:checked + .toggle-slider {
    background-color: #8458b3;
}
.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* Preview Two Column Layout */
.preview-columns { display: flex; gap: 0; }
.preview-left { flex: 3; padding-right: 15px; }
.preview-divider { width: 1px; background: #e0e0e0; }
.preview-right { flex: 5; padding-left: 15px; }
.preview-photo { margin-bottom: 15px; text-align: center; }
.preview-photo img { object-fit: cover; }
