/* ファイル名: kentei/css/style.css */
/* 改善版スタイルシート */

/* 全体設定 */
:root {
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: #C8E6C9;
    --hover-color: #e3f2fd;
    --active-color: #bbdefb;
    --header-bg: #f8fafc;
    --level-bg: #f0f0f0;
    --border-color: #e2e8f0;
    --star-color: #FFD700;
    --selected-color: #90EE90;
    --danger-color: #f44336;
    --warning-color: #ff9800;
    --info-color: #2196F3;
    --success-color: #4CAF50;
    --text-dark: #1a1a1a;
    --text-gray: #6c757d;
    --text-light: #f8f9fa;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'メイリオ', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    flex: 1;
}

/* ナビゲーションバー */
.navbar {
    background: linear-gradient(to right, #4CAF50, #3d9140);
    box-shadow: var(--shadow-lg);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.navbar-brand:hover {
    color: var(--text-light);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.navbar-menu a, .navbar-menu span {
    font-weight: 500;
    text-decoration: none;
    color: white;
    transition: var(--transition);
}

.link-green {
    color: var(--text-light);
    opacity: 0.9;
}

.link-green:hover {
    color: white;
    opacity: 1;
}

.link-red {
    color: var(--text-light);
    opacity: 0.9;
}

.link-red:hover {
    color: white;
    opacity: 1;
}

.link-blue {
    color: var(--info-color);
}

.link-blue:hover {
    color: #1976D2;
}

/* カード・パネル */
.card {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    animation: fadeIn 0.8s;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

/* テーブル */
.table-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    margin: 30px 0;
    padding: 25px;
    transition: var(--transition);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    table-layout: auto;
}

th, td {
    border: 1px solid var(--border-color);
    padding: 12px 10px; /* パディングを明確に指定 */
    text-align: center;
    vertical-align: middle;
    font-size: 14px;
    transition: background-color 0.2s ease;
    width: auto; /* 固定幅を削除 */
    min-width: 60px; /* 最小幅を少し小さく */
    height: auto;
    background-color: white;
}



td[rowspan] {
    vertical-align: middle;
}

.level {
    background-color: var(--level-bg);
    font-weight: 600;
    position: sticky;
    left: 0;
    z-index: 5;
}

.exam-cell {
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.exam-cell:hover {
    background-color: var(--hover-color);
    transform: scale(1.03);
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    z-index: 2;
}

.certified {
    background-color: var(--selected-color);
}

.certified:before {
    content: "★";
    color: var(--star-color);
    position: absolute;
    top: 2px;
    left: 2px;
    font-size: 10px;
}

[data-empty="-"] {
    color: #9ca3af;
    font-weight: lighter;
    cursor: default;
}

/* フォーム要素 */
.form-group {
    margin-bottom: 1.2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.date-input-container {
    position: relative;
}

.date-input-container .form-control {
    padding-right: 40px;
}

.date-input-container:after {
    content: '📅';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.form-select {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background-color: white;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    transition: var(--transition);
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

/* ボタン */
.btn {
    display: inline-block;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(to right, #4CAF50, #3d9140);
    color: white;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(to right, #43a047, #338a36);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.4);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #d32f2f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-info {
    background-color: var(--info-color);
    color: white;
}

.btn-info:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* アラート・通知 */
.alert {
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    position: relative;
}

.alert .close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 1.3rem;
    opacity: 0.7;
    transition: var(--transition);
}

.alert .close:hover {
    opacity: 1;
}

.alert-danger {
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
}

.alert-success {
    background-color: #d1e7dd;
    border: 1px solid #badbcc;
    color: #0f5132;
}

.alert-info {
    background-color: #cff4fc;
    border: 1px solid #b6effb;
    color: #055160;
}

.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffecb5;
    color: #664d03;
}

/* バッジ */
.badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
    transition: var(--transition);
}

.badge:hover {
    transform: scale(1.05);
}

.badge-green {
    background-color: #10b981;
    color: white;
}

.badge-blue {
    background-color: #3b82f6;
    color: white;
}

.badge-yellow {
    background-color: #f59e0b;
    color: white;
}

.badge-purple {
    background-color: #8b5cf6;
    color: white;
}

.badge-red {
    background-color: #ef4444;
    color: white;
}

.badge-gray {
    background-color: #6b7280;
    color: white;
}

/* ユーティリティ */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

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

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mr-1 {
    margin-right: 0.25rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.ml-1 {
    margin-left: 0.25rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

.p-3 {
    padding: 1rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.px-3 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.align-center {
    align-items: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.hidden {
    display: none;
}

/* モーダルダイアログ - 改善版 */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    padding: 20px;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 25px;
    border: 1px solid #ddd;
    max-width: 500px;
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideIn 0.3s;
}

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

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
    transition: var(--transition);
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

/* 学生情報表示領域 */
.user-info {
    background: linear-gradient(to right, white, #f8f9fa);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    border-left: 5px solid var(--primary-color);
}

.user-info:hover {
    box-shadow: var(--shadow-lg);
}

.user-info h2 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* グリッドレイアウト */
.grid {
    display: grid;
    gap: 1rem;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ページヘッダー */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
}

.page-header h1:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

.page-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* スター表示の改善 */
.star-mark {
    display: inline-block;
    color: var(--star-color);
    margin-right: 4px;
    text-shadow: 0 0 3px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* テーブルサイズ調整 */
.table-responsive {
    overflow-x: auto;
}

/* フッター */
footer {
    margin-top: 30px;
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.7);
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-gray);
    border-top: 1px solid #eee;
}

/* スクロールバー */
.table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* レスポンシブ対応 - 強化版 */
@media (max-width: 991px) {
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 15px;
    }
    
    .table-wrapper {
        padding: 15px;
        margin: 15px 0;
    }
    
    .card {
	    padding: 2rem; /* パディングを増やす */
	    margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 12px;
    }
    
    .table-wrapper {
        padding: 10px;
        margin: 10px 0;
        border-radius: var(--radius);
    }
    
    th, td {
        padding: 8px 5px;
        font-size: 13px;
        min-width: 60px;
    }
    
    /* CEFRの列幅を狭くする */
    table tr td:first-child {
        width: 50px !important;
        min-width: 50px !important;
    }
    
    /* スマホでCEFR列が固定されないように修正 */
    .level {
        position: relative; /* stickyではなく通常の配置に */
        left: auto;
        z-index: 1;
    }
    
    .page-header h1 {
        font-size: 1.6rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .navbar .container {
        flex-direction: column;
        padding: 10px;
    }
    
    .navbar-menu {
        margin-top: 10px;
        justify-content: center;
    }
    
    .modal-content {
        padding: 20px;
        margin: 10% auto;
    }
    
    .user-info {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.6rem 1rem;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 13px;
    }
    
    .container {
        padding: 10px;
    }
    
    th, td {
        padding: 6px 4px;
        font-size: 12px;
        min-width: 50px;
    }
    
    .page-header h1 {
        font-size: 1.4rem;
    }
    
    .modal-content {
        padding: 15px;
        margin: 15% auto;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-menu {
        gap: 0.8rem;
    }
    
    .navbar-menu a, .navbar-menu span {
        font-size: 0.9rem;
    }
}

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

.card, .user-info, .table-wrapper {
    animation: fadeInUp 0.5s ease-out;
}


/* ページネーション */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.pagination-item {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-dark);
    background-color: white;
    transition: var(--transition);
}

.pagination-item:hover {
    background-color: var(--hover-color);
}

.pagination-item.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 成功メッセージ */
.success-message {
    background-color: #d1e7dd;
    color: #0f5132;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    animation: fadeIn 0.5s;
}

.success-message::before {
    content: "✓";
    margin-right: 10px;
    font-size: 1.1rem;
}


/* CSSにパスワード強度表示用スタイルを追加 */
.password-strength {
    height: 5px;
    margin-top: 8px;
    border-radius: 5px;
    transition: all 0.3s;
    background-color: #f1f1f1;
}

.strength-weak {
    width: 33%;
    background-color: #ef4444;
}

.strength-medium {
    width: 66%;
    background-color: #f59e0b;
}

.strength-strong {
    width: 100%;
    background-color: #10b981;
}

.strength-text {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 4px;
}

/* 言語背景セクション用の追加スタイル */
.language-background-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

@media (min-width: 768px) {
    .language-background-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .language-background-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.language-panel {
    padding: 1.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.language-panel:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.language-panel h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 0.5rem;
}

.language-panel .language-years {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.75rem;
    font-style: italic;
}

.language-items-container {
    flex-grow: 1;
}

.language-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.language-item:hover {
    transform: translateX(3px);
}

.language-marker {
    display: inline-block;
    min-width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.language-text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
}

.language-tags-container {
    margin-top: 0.75rem;
}

.language-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    line-height: 1.4;
    border-radius: 9999px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* カテゴリ別のカラースキーム */
.native-panel {
    background-color: #f8fafc;
    border-left: 4px solid #64748b;
}

.family-panel {
    background-color: #eff6ff;
    border-left: 4px solid #3b82f6;
}

.education-panel {
    background-color: #eef2ff;
    border-left: 4px solid #6366f1;
}

.self-study-panel {
    background-color: #f5f3ff;
    border-left: 4px solid #8b5cf6;
}

.overseas-panel {
    background-color: #fff7ed;
    border-left: 4px solid #f59e0b;
}

.cert-panel {
    background-color: #fff1f2;
    border-left: 4px solid #e11d48;
}

.current-panel {
    background-color: #ecfdf5;
    border-left: 4px solid #10b981;
}

.other-panel {
    background-color: #f8fafc;
    border-left: 4px solid #64748b;
}

.native-marker { background-color: #64748b; }
.family-marker { background-color: #3b82f6; }
.education-marker { background-color: #6366f1; }
.self-study-marker { background-color: #8b5cf6; }
.overseas-marker { background-color: #f59e0b; }
.cert-marker { background-color: #e11d48; }
.current-marker { background-color: #10b981; }
.other-marker { background-color: #64748b; }

.native-tag { background-color: #e2e8f0; color: #334155; }
.family-tag { background-color: #dbeafe; color: #1e40af; }
.education-tag { background-color: #e0e7ff; color: #4338ca; }
.self-study-tag { background-color: #ede9fe; color: #6d28d9; }
.overseas-tag { background-color: #ffedd5; color: #c2410c; }
.cert-tag { background-color: #ffe4e6; color: #be123c; }
.current-tag { background-color: #d1fae5; color: #047857; }
.other-tag { background-color: #e2e8f0; color: #334155; }

/* 全幅セクション */
.full-width-panel {
    grid-column: 1 / -1;
}


/* 推奨試験表示用スタイル */
.recommendation-card {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.recommendation-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.recommendation-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.recommendation-priority {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.priority-high {
    background-color: #fee2e2;
    color: #b91c1c;
}

.priority-medium {
    background-color: #fef3c7;
    color: #b45309;
}

.priority-low {
    background-color: #e0f2fe;
    color: #0369a1;
}

.recommendation-body {
    margin-bottom: 0.75rem;
}

.recommendation-exam {
    margin-bottom: 0.5rem;
}

.recommendation-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.recommendation-reason {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 0.75rem;
    font-style: italic;
}

/* 推奨試験カード用のスタイル */
.recommendation-card {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.recommendation-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.recommendation-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.recommendation-priority {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.priority-high {
    background-color: #fee2e2;
    color: #b91c1c;
}

.priority-medium {
    background-color: #fef3c7;
    color: #b45309;
}

.priority-low {
    background-color: #e0f2fe;
    color: #0369a1;
}

.recommendation-body {
    margin-bottom: 0.75rem;
}

.recommendation-exam {
    margin-bottom: 0.5rem;
}

.recommendation-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.recommendation-reason {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 0.75rem;
    font-style: italic;
}