/**
 * ログ参照機能のスタイル
 * 
 * システムの各種ログファイルを参照する画面のスタイル定義
 * データ取得、処理、提供などのカテゴリ別にログを表示
 */

/* ========================================
   メインコンテナ
   ======================================== */

.log-viewer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 20px 20px;
}

/* ========================================
   ツールバー
   ログファイル数の表示と操作ボタン
   ======================================== */

.log-viewer-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 15px 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ツールバーのステータス表示 */
.log-viewer-status {
    font-size: 0.9rem;
    font-weight: 500;
    color: #495057;
}

/* ツールバーのボタングループ */
.log-viewer-buttons {
    display: flex;
    gap: 10px;
}

/* ボタンのスタイル */
.log-viewer-buttons .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    min-width: 80px;
}

/* ========================================
   ログカテゴリコンテナ
   データ取得、処理、提供などのカテゴリ別にログを分類
   ======================================== */

.log-category-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* カテゴリセクションのカード */
.log-category-section {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* カテゴリセクションのタイトル */
.log-category-section h3 {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #007bff;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

/* ========================================
   ログカテゴリリスト
   各カテゴリ内のログファイル一覧
   ======================================== */

.log-category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ログファイル選択ボタン */
.log-category-btn {
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    color: #495057;
}

/* ホバー時のアニメーション効果 */
.log-category-btn:hover {
    background: #e9ecef;
    border-color: #007bff;
    color: #007bff;
    transform: translateX(5px);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

/* クリック時の背景色変更 */
.log-category-btn:active {
    background: #dee2e6;
}

/* ========================================
   ログ表示エリア
   選択されたログファイルの内容を表示
   ======================================== */

.log-display-container {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ログ表示エリアのヘッダー */
.log-display-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #007bff;
}

/* ログファイル名の表示 */
.log-display-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

/* ログ表示コントロールボタン */
.log-display-controls {
    display: flex;
    gap: 10px;
}

/* コントロールボタンのスタイル */
.log-display-controls .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    min-width: 80px;
}

/* スクロール可能なログ内容表示エリア */
.log-display-content {
    max-height: 600px;
    overflow-y: auto;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
}

/* ログ内容のテキスト（等幅フォント） */
.log-content {
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ========================================
   レスポンシブ対応
   タブレット・スマートフォン向けのレイアウト調整
   ======================================== */

/* タブレット・スマートフォン向け（768px以下） */
@media (max-width: 768px) {
    .log-viewer-container {
        padding: 10px;
    }

    /* ツールバーを縦並びに */
    .log-viewer-toolbar {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    /* ボタンを横幅いっぱいに */
    .log-viewer-buttons {
        justify-content: stretch;
    }

    /* 各ボタンを均等に配置 */
    .log-viewer-buttons button {
        flex: 1;
    }

    /* カテゴリを1カラムに */
    .log-category-container {
        grid-template-columns: 1fr;
    }

    /* カテゴリセクションのパディング調整 */
    .log-category-section {
        padding: 15px;
    }

    /* ログボタンのサイズ調整 */
    .log-category-btn {
        padding: 10px 12px;
        font-size: 13px;
    }

    /* スマートフォンでの表示高さを調整 */
    .log-display-content {
        max-height: 400px;
    }

    /* フォントサイズを小さく */
    .log-content {
        font-size: 12px;
    }
}
