/**
 * 管理画面スタイル
 */

.gsheet-tables-wrap {
    margin: 20px 0;
}

.gsheet-tables-wrap .form-table th {
    width: 200px;
}

/* セクションスタイル */
.gsheet-section {
    background: #f9f9f9;
    border-left: 4px solid #2271b1;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.gsheet-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 15px;
    color: #1d2327;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

.gsheet-section .form-table {
    margin-top: 10px;
}

/* 必須項目マーク */
.required {
    color: #d63638;
    font-weight: bold;
}

/* 警告ボックス */
.gsheet-warning {
    background: #fff8e5;
    border-left: 3px solid #f0b849;
    padding: 10px 12px;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.6;
}

.gsheet-warning strong {
    color: #8b6914;
}

/* ショートコードボックス */
.gsheet-shortcode-box {
    background: #f0f0f1;
    border: 1px solid #c3c4c7;
    padding: 12px 15px;
    font-family: 'Courier New', monospace;
    margin: 10px 0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gsheet-shortcode-box code {
    background: transparent;
    padding: 0;
    font-size: 14px;
    flex: 1;
}

.copy-shortcode {
    margin-left: auto;
}

/* データソース設定（既存） */
.data-source-config {
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.data-source-config h2 {
    margin-top: 0;
}

/* テーブルリスト */
.wp-list-table .column-id {
    width: 60px;
}

.wp-list-table .column-shortcode {
    width: 300px;
}

.wp-list-table .column-actions {
    width: 150px;
}

/* フィルター条件テーブル */
#filters-table {
    margin-top: 15px;
}

#filters-table th {
    background: #f0f0f1;
    font-weight: 600;
}

.filter-value-numeric-range,
.filter-value-date-range {
    display: flex;
    align-items: center;
    gap: 5px;
}

.filter-value-numeric-range input,
.filter-value-date-range input {
    flex: 1;
}

/* バリデーションエラー */
.gsheet-field-error {
    border-color: #d63638 !important;
    box-shadow: 0 0 0 1px #d63638 !important;
}

.gsheet-error-message {
    display: block;
    color: #d63638;
    font-size: 13px;
    margin-top: 5px;
    font-weight: 500;
}

/* カラーピッカーのスタイル調整 */
.gsheet-color-picker {
    width: 100px;
}

/* トースト通知 */
.gsheet-toast {
    position: fixed;
    top: 32px;
    right: 20px;
    background: #2271b1;
    color: #fff;
    padding: 12px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 100000;
    animation: gsheet-toast-slide-in 0.3s ease-out;
    max-width: 300px;
}

.gsheet-toast.gsheet-toast-success {
    background: #00a32a;
}

.gsheet-toast.gsheet-toast-error {
    background: #d63638;
}

@keyframes gsheet-toast-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes gsheet-toast-slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.gsheet-toast.gsheet-toast-hide {
    animation: gsheet-toast-slide-out 0.3s ease-out forwards;
}

/* テーブル検索フォーム */
.gsheet-table-search-form {
    margin-bottom: 20px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.gsheet-table-search-form input[type="search"],
.gsheet-table-search-form select {
    margin-right: 10px;
}

/* プレビューセクション */
.gsheet-preview-section {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.gsheet-preview-section h3 {
    margin-top: 0;
}

.gsheet-preview-container {
    max-height: 600px;
    overflow: auto;
    border: 1px solid #ddd;
    padding: 15px;
    background: #f9f9f9;
}

.gsheet-preview-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.gsheet-preview-error {
    padding: 20px;
    background: #fff8e5;
    border-left: 3px solid #f0b849;
    color: #8b6914;
}

