/* NJLCG2501 AMI+LAZ CRF - カスタムスタイル */

:root {
    --primary-color: #198754;
    --secondary-color: #6c757d;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fa;
}

main {
    flex: 1;
}

.card {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    font-weight: 600;
}

.navbar-brand {
    font-weight: bold;
}

.table th {
    white-space: nowrap;
}

.table-responsive {
    max-height: 70vh;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.25);
}

.badge {
    font-weight: 500;
}

.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
}

@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    .table-responsive {
        font-size: 0.875rem;
    }
    h2 {
        font-size: 1.5rem;
    }
}

.patient-form .card {
    margin-bottom: 1.5rem;
}

.patient-form .card-header {
    padding: 0.75rem 1rem;
}

.ae-grid .form-label {
    font-size: 0.8rem;
}

.lab-table input {
    text-align: right;
}

.lab-table td:first-child {
    white-space: nowrap;
    font-weight: 500;
}

.assessment-card {
    transition: all 0.3s ease;
}

.assessment-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.sum-field {
    background-color: #e9ecef;
    font-weight: bold;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media print {
    .navbar,
    .btn,
    footer {
        display: none !important;
    }
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}

.dashboard-stats .card {
    transition: transform 0.2s;
}

.dashboard-stats .card:hover {
    transform: translateY(-5px);
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

.form-control::placeholder {
    color: #adb5bd;
    font-style: italic;
}

.required::after {
    content: " *";
    color: #dc3545;
}

.table-hover tbody tr:hover {
    background-color: rgba(25, 135, 84, 0.05);
}

.modal-header.bg-danger {
    color: white;
}

.form-select option:disabled {
    color: #adb5bd;
}

/* 適格性テーブル */
.eligibility-table {
    width: 100%;
    border-collapse: collapse;
}

.eligibility-table td {
    padding: 0.6rem 0.75rem;
    border: 1px solid #dee2e6;
    vertical-align: middle;
}

.eligibility-table .criterion-cell {
    width: 65%;
    background-color: #fff;
}

.eligibility-table .answer-cell {
    width: 35%;
    text-align: center;
    background-color: #f8f9fa;
}

.eligibility-table .criterion-num {
    font-weight: 600;
    display: block;
    margin-bottom: 0.15rem;
}

.eligibility-table .required-tag {
    color: #dc3545;
    font-weight: 700;
    font-size: 0.85rem;
}

.eligibility-table .form-check-inline {
    margin-right: 1.2rem;
}

.eligibility-table .form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.15em;
}

.eligibility-table .form-check-label {
    font-size: 0.95rem;
    font-weight: 500;
}

.eligibility-table .btn-reset {
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    border: 1px solid #adb5bd;
    background: #fff;
    color: #6c757d;
    border-radius: 3px;
    cursor: pointer;
}

.eligibility-table .btn-reset:hover {
    background: #e9ecef;
}

/* はい/いいえ選択時のハイライト */
.eligibility-table .answer-cell.answered-yes {
    background-color: #d1e7dd;
}

.eligibility-table .answer-cell.answered-no {
    background-color: #f8d7da;
}

.eligibility-table .section-header td {
    background-color: #e2e3e5;
    font-weight: 700;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
}

.treatment-card {
    transition: all 0.3s ease;
}

.treatment-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}
