/* =============================
   写メ日記投稿システム CSS
   ============================= */

.shamemail-wrap {
    max-width: 700px;
    margin: 0 auto;
    font-family: sans-serif;
}

/* フィールド */
.shamemail-field {
    margin-bottom: 20px;
}
.shamemail-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
}
.shamemail-field .required {
    color: #e00;
    margin-left: 4px;
}
.shamemail-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}
.shamemail-textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    resize: vertical;
}
.shamemail-char-count {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}
.shamemail-char-count.over {
    color: #e00;
    font-weight: bold;
}

/* ボタン */
.shamemail-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    color: #333;
    margin-right: 8px;
}
.shamemail-btn-primary {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}
.shamemail-btn-primary:hover {
    background: #005f8a;
}
.shamemail-btn-danger {
    background: #dc3232;
    color: #fff;
    border-color: #dc3232;
}
.shamemail-btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

/* エラー */
.shamemail-errors {
    background: #fff3f3;
    border: 1px solid #e00;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 20px;
}
.shamemail-error {
    color: #e00;
    margin: 4px 0;
}
.shamemail-success {
    color: #007a00;
    font-weight: bold;
}

/* 確認画面 */
.shamemail-confirm-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
.shamemail-confirm-table th,
.shamemail-confirm-table td {
    padding: 10px 14px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: top;
}
.shamemail-confirm-table th {
    background: #f5f5f5;
    width: 100px;
}

/* 送信完了 */
.shamemail-complete {
    text-align: center;
    padding: 40px;
    background: #f0f9f0;
    border-radius: 8px;
}

/* 履歴テーブル */
.shamemail-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.shamemail-history-table th,
.shamemail-history-table td {
    padding: 8px 10px;
    border: 1px solid #ddd;
    text-align: left;
}
.shamemail-history-table th {
    background: #f5f5f5;
}
.shamemail-row-failed {
    background: #fff3f3;
}

/* 予約一覧 */
.shamemail-scheduled-item {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 14px 16px;
    margin-bottom: 16px;
}
.shamemail-scheduled-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.shamemail-scheduled-time {
    color: #0073aa;
    font-weight: bold;
}
.shamemail-scheduled-title {
    flex: 1;
}
.shamemail-scheduled-actions {
    margin-top: 10px;
}

/* 送信失敗通知 */
.shamemail-fail-notice {
    background: #fff3f3;
    border: 1px solid #dc3232;
    border-radius: 4px;
    padding: 10px 14px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.shamemail-fail-notice .close-btn {
    cursor: pointer;
    font-size: 18px;
    color: #999;
    background: none;
    border: none;
    padding: 0 4px;
}
.shamemail-fail-notice .close-btn:hover {
    color: #333;
}

/* プレビュー */
#shamemail-preview img {
    max-width: 200px;
    margin-top: 10px;
    border-radius: 4px;
}
