/*

	Name	CSS for dialogs.js
	Date	2025.09.19
	Author	Original CSS by Generative AI(Gemini), modified by F.I (Kawara Designs Ltd.)

*/

/* モーダル表示用の背景オーバーレイ */
#cDialogOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998; /* ダイアログ本体より手前に */
}

/* ダイアログウィンドウ本体 */
#cDialogWindow {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 300px;
    max-width: 640px;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    z-index: 9999;
    font-family: sans-serif;
}

/* ヘッダー部分 */
#cDialogHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1px 10px;
    background-color: #f7f7f7;
    border-bottom: 1px solid #aaa;
    border-radius: 6px 6px 0 0;
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
}

/* 閉じるボタン */
#cDialogClose {
    background: none;
    border: none;
    font-size: 1.5em;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    padding: 0 5px;
}
#cDialogClose:hover {
    color: #000;
}

/* ボディ（メッセージ）部分 */
#cDialogBody {
    padding: 10px;
    line-height: 1.4;
    color: #555;
}

#cDialogBody span {
    margin: 0;
}

/*** アイコン ***/
#cDialogIcon {
	height: 1.5em;
	width: 1.5em;
	vertical-align: middle;
	background-color: #666;
	border-radius: 50%;
	font-size: 1.5em;
	text-align: center;
	font-weight: bold;
	color: #fff;
}

/* フッター（ボタン領域） */
#cDialogFooter {
    padding: 3px 15px;
    text-align: right;
    background-color: #f7f7f7;
    border-top: 1px solid #eee;
    border-radius: 0 0 6px 6px;
}

/* ボタンのスタイル */
#cDialogFooter button {
    margin-left: 10px;
    padding: 8px 16px;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

#cDialogFooter button:hover {
    background-color: #f0f0f0;
    border-color: #bbb;
}

#cDialogFooter button:first-child {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

#cDialogFooter button:first-child:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}