/**
 * WebBiz Toolkit - 後台樣式
 */

/* 容器 */
.webbiz-toolkit-wrap {
    max-width: 900px;
}

/* 卡片 */
.webbiz-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.webbiz-card h2 {
    margin-top: 0;
    padding-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
    font-size: 16px;
}

.webbiz-card .form-table th {
    width: 180px;
    padding: 15px 10px 15px 0;
}

.webbiz-card .form-table td {
    padding: 15px 10px;
}

.webbiz-card .form-table td label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.webbiz-card .form-table input[type="checkbox"] {
    margin-top: 3px;
}

/* 版本資訊 */
.webbiz-info-card {
    background: #f8f9fa;
    border-color: #e2e4e7;
}

.webbiz-info-card p {
    margin: 0;
    color: #646970;
    font-size: 13px;
}

.webbiz-info-card a {
    color: #2271b1;
    text-decoration: none;
}

.webbiz-info-card a:hover {
    color: #135e96;
    text-decoration: underline;
}

/* 強調樣式設定 */
#emphasis-settings .description {
    margin-bottom: 20px;
    color: #646970;
}

.webbiz-emphasis-styles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .webbiz-emphasis-styles {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 782px) {
    .webbiz-emphasis-styles {
        grid-template-columns: 1fr;
    }
}

.webbiz-emphasis-style-item {
    background: #f8f9fa;
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    padding: 16px;
}

.webbiz-emphasis-style-item h3 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #1e1e1e;
}

.webbiz-emphasis-preview {
    background: #fff;
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    text-align: center;
    border: 1px solid #e2e4e7;
    font-size: 15px;
    line-height: 1.6;
}

.webbiz-emphasis-preview-span {
    /* 預設樣式，會被 JS inline style 覆蓋 */
    display: inline;
    border-radius: 2px;
    transition: all 0.15s ease;
}

.webbiz-emphasis-table {
    margin: 0;
}

.webbiz-emphasis-table th {
    width: 80px !important;
    padding: 8px 8px 8px 0 !important;
    font-size: 12px;
    font-weight: 500;
    vertical-align: top;
}

.webbiz-emphasis-table td {
    padding: 8px 0 !important;
}

.webbiz-emphasis-table input[type="text"].regular-text {
    width: 100%;
}

.webbiz-emphasis-table .small-text {
    width: 60px;
}

.webbiz-emphasis-table select {
    width: 100%;
}

.webbiz-emphasis-table .description {
    margin-top: 4px;
    font-size: 11px;
}

/* 顏色選擇器調整 */
.webbiz-emphasis-table .wp-picker-container {
    display: block;
}

.webbiz-emphasis-table .wp-picker-container .wp-color-result {
    margin: 0;
}
