/* ========================================
 * アルダグループ採用管理システム - カスタムスタイル
 * ======================================== */

/* カスタムフォント設定 */
body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ナビゲーション */
.nav-btn.active {
    background-color: rgba(30, 64, 175, 0.9);
    font-weight: 600;
}

/* カスタムアニメーション */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

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

/* セクション切り替えアニメーション */
.section {
    transition: all 0.3s ease-in-out;
}

/* カードのホバーエフェクト */
.bg-white {
    transition: box-shadow 0.2s ease-in-out;
}

.bg-white:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* KPIカードの数値 */
#total-applications,
#offer-acceptance-rate,
#cost-per-application,
#monthly-applications {
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
}

/* テーブルの行ホバー効果 */
tbody tr:hover {
    background-color: #f9fafb;
    transition: background-color 0.2s ease;
}

/* ステータスバッジ */
.status-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

/* チャートコンテナ */
canvas {
    max-height: 400px;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .nav-btn {
        padding: 0.5rem;
        font-size: 0.875rem;
    }
    
    .nav-btn i {
        margin-right: 0.25rem;
    }
    
    .grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .grid-cols-4,
    .grid-cols-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    
    .nav-btn span {
        display: none;
    }
}

/* フォーム要素のスタイル調整 */
select, input {
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

select:focus, input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 読み込み中のスケルトン */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* エラーメッセージ */
.error-message {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

/* 成功メッセージ */
.success-message {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

/* カスタムスクロールバー */
.overflow-x-auto::-webkit-scrollbar {
    height: 8px;
}

.overflow-x-auto::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.overflow-x-auto::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.overflow-x-auto::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* ツールチップ */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.75rem;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* モーダル関連スタイル */
.modal-overlay {
    backdrop-filter: blur(2px);
}

/* フォーム関連スタイル */
.form-section {
    border-left: 4px solid #3b82f6;
    padding-left: 1rem;
}

/* 入力フィールドのフォーカス状態 */
input:focus, select:focus, textarea:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

/* バリデーションエラー状態 */
.border-red-500 {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.bg-red-50 {
    background-color: #fef2f2 !important;
}

/* 成功状態 */
.border-green-500 {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

/* 通知スタイル */
#notification {
    min-width: 320px;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* フォームアニメーション */
.form-group {
    transition: all 0.2s ease;
}

/* ボタンホバーエフェクト */
button {
    transition: all 0.2s ease;
}

button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

button:disabled {
    transform: none;
    cursor: not-allowed;
    opacity: 0.6;
}

/* モーダルアニメーション */
#candidate-modal {
    animation: fadeIn 0.2s ease-out;
}

#candidate-modal > div {
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* プリント対応 */
@media print {
    .nav-btn,
    #nav-dashboard,
    #nav-candidates,
    #nav-reports,
    #candidate-modal,
    #notification {
        display: none !important;
    }
    
    .bg-blue-900 {
        background-color: white !important;
        color: black !important;
    }
    
    .shadow-lg,
    .shadow-md {
        box-shadow: none !important;
    }
}