/**
 * 設備不備報告 - スタイル
 */

/* セクション全体 */
#section-facility-reports {
    background-color: #f5f5f5;
    min-height: calc(100vh - 60px);
    padding: 20px;
}

/* d-noneが外れた時のみ表示 */
#section-facility-reports:not(.d-none) {
    display: block !important;
}

.facility-reports-container {
    padding: 20px;
    background-color: transparent;
    max-width: 1600px;
    margin: 0 auto;
}

#section-facility-reports .section-header {
    margin-bottom: 1.5rem;
}

#section-facility-reports .section-header h2 {
    color: #19006F;
    font-weight: bold;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

#section-facility-reports .btn-primary {
    background-color: #19006F;
    border-color: #19006F;
    padding: 0.5rem 1.5rem;
}

#section-facility-reports .btn-primary:hover {
    background-color: #140054;
    border-color: #140054;
}

/* テーブルスタイル */
#reports-table th {
    font-weight: 600;
    background-color: #f8f9fa;
}

#reports-table tbody tr {
    transition: background-color 0.2s;
}

#reports-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* ステータスバッジ */
.badge {
    padding: 0.4em 0.8em;
    font-size: 0.85em;
}

/* フィルタカード */
#section-facility-reports .card {
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: white;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

#section-facility-reports .card-body {
    padding: 1.5rem;
}

/* フォームラベル */
#section-facility-reports .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

/* フォームセレクト */
#section-facility-reports .form-select {
    border-color: #ced4da;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

#section-facility-reports .form-select:focus {
    border-color: #19006F;
    box-shadow: 0 0 0 0.2rem rgba(25, 0, 111, 0.15);
}

/* テーブルカード */
#section-facility-reports .table-responsive {
    margin-top: 1rem;
}

/* モーダルスタイル */
.modal-header {
    background-color: #19006F;
    color: white;
}

.modal-header .btn-close {
    filter: invert(1);
}

/* 写真プレビュー */
#photo-preview {
    min-height: 50px;
}

#photo-preview .position-relative {
    border: 2px dashed #dee2e6;
    border-radius: 4px;
    overflow: hidden;
}

#photo-preview .btn-danger {
    opacity: 0.9;
}

#photo-preview .btn-danger:hover {
    opacity: 1;
}

/* プログレスバー */
.progress {
    border-radius: 15px;
    overflow: hidden;
}

.progress-bar {
    font-weight: bold;
    font-size: 14px;
}

/* 詳細モーダル内のテーブル */
.table-sm th {
    background-color: #f8f9fa;
    font-weight: 600;
    width: 120px;
}

/* 画像サムネイル */
.img-thumbnail {
    transition: transform 0.2s;
}

.img-thumbnail:hover {
    transform: scale(1.05);
}

/* ページネーション */
.pagination .page-link {
    color: #19006F;
}

.pagination .page-item.active .page-link {
    background-color: #19006F;
    border-color: #19006F;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .facility-reports-container {
        padding: 10px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .section-header button {
        margin-top: 10px;
        width: 100%;
    }

    .table-responsive {
        font-size: 0.9em;
    }

    #photo-preview .position-relative {
        width: 80px !important;
        height: 80px !important;
    }
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.3s ease-in-out;
}

/* 履歴タイムライン */
.border-start.border-3 {
    border-color: #19006F !important;
}

/* フォームラベル */
.form-label {
    font-weight: 600;
    color: #333;
}

.form-label .text-danger {
    font-size: 1.1em;
}

/* 文字数カウンター */
#char-count {
    font-weight: bold;
    color: #19006F;
}
