/* 会員マイページ用CSS */

body {
    background-color: #f8f9fa;
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

/* ナビゲーション */
.navbar-brand {
    font-weight: bold;
}

.navbar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* メインコンテンツ */
main {
    min-height: calc(100vh - 200px);
}

/* カード */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ボタン */
.btn {
    border-radius: 6px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #212529;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

/* フォーム */
.form-control {
    border-radius: 6px;
    border: 1px solid #ced4da;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.required {
    color: #dc3545;
}

/* テーブル */
.table {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.table th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #495057;
}

.table td {
    vertical-align: middle;
}

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

.status-applied {
    background-color: #d4edda;
    color: #155724;
}

.status-cancelled {
    background-color: #f8d7da;
    color: #721c24;
}

.status-completed {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* セミナー情報カード */
.seminar-card {
    border-left: 4px solid #007bff;
}

.seminar-date {
    font-size: 1.1rem;
    font-weight: bold;
    color: #007bff;
}

.seminar-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.seminar-organizer {
    color: #6c757d;
    font-size: 0.9rem;
}

/* プロフィール表示 */
.profile-info {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background-color: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    font-weight: bold;
}

.profile-details dt {
    font-weight: 600;
    color: #495057;
}

.profile-details dd {
    color: #6c757d;
    margin-bottom: 1rem;
}

/* ダッシュボード統計 */
.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stats-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .btn {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
}

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

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

/* ローディング */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* エラー・成功メッセージ */
.alert {
    border-radius: 6px;
    border: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}


/* アフィリエイト関連のスタイル */

/* 統計カードの調整 */
.stats-card {
    border-radius: 10px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.stats-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* カード内の表のスタイル */
.card .table-sm {
    margin-bottom: 0;
}

.card .table-sm td {
    padding: 0.5rem;
    border-color: rgba(0,0,0,0.05);
}

/* コピーボタンのアニメーション */
.btn-outline-primary:active {
    transform: scale(0.95);
}

/* アフィリエイト情報のフィールド */
#affiliate-code,
#affiliate-link {
    background-color: #f8f9fa;
    font-family: monospace;
    font-size: 0.9rem;
}

/* 紹介バッジ */
.referral-badge {
    display: inline-block;
    background-color: #e3f2fd;
    color: #0d6efd;
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.8rem;
    margin-left: 5px;
}

/* アニメーション効果 */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* モーダル内のテーブルスタイル */
.modal-body .table {
    font-size: 0.9rem;
}

.modal-body .table th {
    background-color: #f8f9fa;
}

/* アラート内のアイコン間隔 */
.alert i {
    margin-right: 5px;
}

/* 紹介コード表示用 */
.affiliate-code-display {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.5rem;
    font-family: monospace;
    position: relative;
}

.copy-indicator {
    position: absolute;
    top: 0;
    right: 0;
    background: rgba(40, 167, 69, 0.9);
    color: white;
    padding: 3px 8px;
    border-radius: 0 4px 0 4px;
    font-size: 0.8rem;
    display: none;
}

.copy-indicator.show {
    display: block;
    animation: fadeOut 2s forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}