/* Gutenberg Block Editor Styles for Study Abroad Cost Simulator */

.sacs-block-editor {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 20px;
    background: #f9f9f9;
    margin: 10px 0;
}

.sacs-block-editor-preview {
    max-width: 100%;
}

.sacs-block-editor-preview h3 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

/* プレビュー進捗バー */
.sacs-preview-progress {
    margin-bottom: 20px;
}

.sacs-preview-progress-bar {
    width: 100%;
    height: 6px;
    background-color: #e1e5e9;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 15px;
}

.sacs-preview-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007cba 0%, #00a0d2 100%);
    border-radius: 3px;
    width: 33.33%;
}

.sacs-preview-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sacs-preview-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.sacs-preview-step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #e1e5e9;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 6px;
}

.sacs-preview-step-label {
    font-size: 10px;
    color: #6c757d;
    text-align: center;
    font-weight: 500;
}

.sacs-preview-step.sacs-preview-step-active .sacs-preview-step-number {
    background-color: #007cba;
    color: white;
}

.sacs-preview-step.sacs-preview-step-active .sacs-preview-step-label {
    color: #007cba;
    font-weight: 600;
}

.sacs-preview-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.sacs-preview-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sacs-preview-field label {
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.sacs-preview-field select {
    padding: 10px;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.sacs-preview-note {
    text-align: center;
    padding: 15px;
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 4px;
    color: #0066cc;
}

.sacs-preview-note small {
    font-style: italic;
    font-size: 12px;
}

/* エディター内でのレスポンシブ対応 */
@media (max-width: 600px) {
    .sacs-block-editor {
        padding: 15px;
    }
    
    .sacs-block-editor-preview h3 {
        font-size: 18px;
    }
    
    .sacs-preview-field select {
        padding: 8px;
    }
}

/* ダークモード対応 */
.is-dark-theme .sacs-block-editor {
    background: #2d3748;
    border-color: #4a5568;
}

.is-dark-theme .sacs-block-editor-preview h3 {
    color: #e2e8f0;
    border-bottom-color: #63b3ed;
}

.is-dark-theme .sacs-preview-field label {
    color: #cbd5e0;
}

.is-dark-theme .sacs-preview-field select {
    background-color: #4a5568;
    border-color: #718096;
    color: #a0aec0;
}

.is-dark-theme .sacs-preview-note {
    background: #1a365d;
    border-color: #2c5282;
    color: #90cdf4;
}
