/* 共通スタイル */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card {
    border: none;
    border-radius: 0.5rem;
    overflow: hidden;
}

.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
}

.footer {
    border-top: 1px solid #dee2e6;
}

/* マークダウン表示関連 */
.markdown-body {
    font-size: 1rem;
}

/* 検索フォーム */
.navbar .form-control {
    border-radius: 20px 0 0 20px;
    border-right: none;
}

.navbar .btn-light {
    border-radius: 0 20px 20px 0;
    border-left: none;
    background-color: white;
    border-color: #ced4da;
}

/* EasyMDEカスタマイズ */
.EasyMDEContainer {
    border-radius: 0.375rem;
}

.editor-toolbar {
    border-radius: 0.375rem 0.375rem 0 0;
    border-color: #ced4da;
}

.CodeMirror {
    border-radius: 0 0 0.375rem 0.375rem;
    border-color: #ced4da;
}

/* アニメーション効果 */
.card, .btn {
    transition: all 0.2s ease-in-out;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ページネーション */
.pagination-page-info {
    margin-bottom: 0;
}

.pagination .page-link {
    color: #0d6efd;
    border-radius: 0.25rem;
    margin: 0 2px;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* テーブルカスタマイズ */
.table {
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
}

/* モーダルカスタマイズ */
.modal-header {
    border-bottom: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    background-color: #f8f9fa;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .card-header {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .card-header .btn,
    .card-header .btn-group {
        margin-top: 0.5rem;
        width: 100%;
    }
    
    .navbar .form-control,
    .navbar .btn-light {
        border-radius: 0.375rem;
        border: 1px solid #ced4da;
        margin-top: 0.5rem;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .d-flex.justify-content-between .btn {
        width: 100%;
    }
}