/* ===== マイページ: 全体幅の制限 ===== */
/* SWELLのコンテナ幅が広すぎる場合、マイページ部分を制限 */
.um .um-form {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== マイページ: 2カラムを上揃え ===== */
.d-flex.flex-column.justify-content-center {
    justify-content: flex-start !important;
}

/* カラム内の余白を詰める */
.um .um-form .card-padding > div {
    padding: 1.5rem !important;
}

/* ステータスカードと2カラムの間の余白 */
.um .um-form .wp-bootstrap-blocks-row {
    margin-bottom: 0;
}


/* ===== マイページ: ステータスカード ===== */
.mypage-status-wrap {
    background: linear-gradient(135deg, #f0f2fb 0%, #e8ebf7 100%);
    border: 1px solid #dde0f0;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 8px;
}

/* ショートコード版: プロフィール＋自習室の横並び */
.mypage-status-wrap__inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.mypage-status-wrap__profile {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.mypage-status-wrap__info {
    flex: 1;
    min-width: 0;
}

.mypage-status-wrap__name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}

.mypage-status-wrap__studyroom {
    flex: 0 0 280px;
    width: 280px;
}

.mypage-status-wrap__studyroom .study-room-card {
    margin-bottom: 0;
}

/* row/colのレイアウトを上書き: flexで制御（旧HTMLブロック版互換） */
.mypage-status-wrap .row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mypage-status-wrap .col-3 {
    flex: 0 0 90px;
    width: 90px;
    max-width: 90px;
    padding: 0;
}

.mypage-status-wrap .col-8 {
    flex: 1;
    max-width: none;
    width: auto;
    padding: 0;
}

/* アイコンを丸枠に */
.mypage-status-wrap .user-icon-wrap {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--color_main, #4a5ab9);
    overflow: hidden;
    background: #fff;
    margin: 0;
    flex-shrink: 0;
}

.mypage-status-wrap .user-icon-wrap::before {
    display: none;
}

.mypage-status-wrap .user-icon-wrap img {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.mypage-status-wrap .disply-level {
    margin-bottom: 0;
}

/* ===== マイページ: 自習室カード ===== */
.study-room-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    text-decoration: none;
    color: var(--color_text, #333);
    display: block;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.study-room-card:hover {
    border-color: var(--color_main, #4a5ab9);
    box-shadow: 0 2px 12px rgba(74, 90, 185, 0.1);
    color: var(--color_text, #333);
}

.study-room-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.study-room-card__icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--color_main, #4a5ab9), #6b7de0);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.study-room-card__title {
    font-size: 14px;
    font-weight: 700;
}

.study-room-card__status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #888;
    margin-bottom: 10px;
}

.study-room-card__dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: study-room-pulse 2s ease-in-out infinite;
}

@keyframes study-room-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.study-room-card__btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: var(--color_main, #4a5ab9);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    text-align: center;
    transition: opacity 0.2s;
    text-decoration: none;
}

.study-room-card__btn:hover {
    opacity: 0.85;
    color: #fff;
}

/* ===== マイページ: クイックリンク ===== */
.mypage-quick-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mypage-quick-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 12px 14px;
    text-decoration: none;
    color: var(--color_text, #333);
    transition: border-color 0.2s;
}

.mypage-quick-link:hover {
    border-color: var(--color_main, #4a5ab9);
    color: var(--color_text, #333);
}

.mypage-quick-link__icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.mypage-quick-link__text {
    font-size: 13px;
    font-weight: 600;
}

.mypage-quick-link__arrow {
    margin-left: auto;
    font-size: 14px;
    color: #ccc;
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
    .mypage-status-wrap {
        padding: 20px;
    }

    .mypage-status-wrap__inner {
        flex-direction: column;
        gap: 16px;
    }

    .mypage-status-wrap__profile {
        width: 100%;
    }

    .mypage-status-wrap__studyroom {
        flex: none;
        width: 100%;
    }

    .mypage-status-wrap .user-icon-wrap {
        width: 80px;
        height: 80px;
    }

    .mypage-status-wrap .col-3 {
        flex: 0 0 70px;
        width: 70px;
        max-width: 70px;
    }
}
