/* ================================================
   File: /myclub/assets/style.css  (v2)
   ================================================ */
:root{--bg:#f6f7fb;--card:#fff;--txt:#202124;--muted:#5f6368;--pri:#2563eb;--red:#dc2626;--ok:#16a34a; --highlight:orangered;}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--txt);font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans KR",sans-serif}
a{color:var(--pri);text-decoration:none}
ul, ol, dl { margin: 0px; padding: 0px; }

header{position:sticky;top:0;background:var(--card);border-bottom:1px solid #e5e7eb;display:flex;align-items:center;gap:16px;padding:12px 16px;z-index:10}
header .brand{display:flex;align-items:center;gap:10px}
header .logo{width:28px;height:28px;border-radius:6px;background:linear-gradient(135deg,#60a5fa,#a78bfa)}
header .title{font-weight:700}
.wrap{display:grid;grid-template-columns:240px 1fr;gap:16px;padding:16px;max-width:1200px;margin:0 auto}
nav{background:var(--card);border:1px solid #e5e7eb;border-radius:14px;padding:12px}
nav h3{margin:6px 8px 12px;font-size:14px;color:var(--muted)}
.navbtn{width:100%;display:block;padding:10px 12px; color: gray; border:1px solid #e5e7eb;border-radius:10px;background:#fff;text-align:left;margin-bottom:8px;cursor:pointer}
.navbtn[aria-current="page"]{ color: gray; border-color:var(--pri);outline:2px solid rgba(37,99,235,.15)}
main.index-main {display:flex; flex-direction: column; align-items:center;justify-content:center;min-height:90vh;padding:20px;}
.card{background:var(--card);border:1px solid #e5e7eb;border-radius:14px}
.card .hd{padding:14px 16px;border-bottom:1px solid #eef0f4;font-weight:600}
.card .bd{padding:16px; }
.card .bd p {margin: 0px; padding: 0px;}

input,select,textarea,button{font:inherit}

.field{
  display:flex; flex-direction: row;
  align-items:center; justify-content: center;
  gap:5px;
  margin-bottom:14px;
  flex-wrap:nowrap;
}
.field label{
  display: flex;
  min-width:150px;
  font-weight:500;
  color:var(--muted);
}
@media (max-width: 720px){ /* 모바일화면에서는 가리기 */
  .field label { display:none; }
}
.field .row{
  display:flex;
  width: 100%;
  align-items:center;
  gap:10px;
  flex:1;
}
.field .input[data-view="value"]{
  flex:1;
  padding:10px;
  border:1px solid #dfe3ea;
  border-radius:10px;
  overflow: hidden;
  min-width:0; /* 긴 텍스트 줄바꿈 방지 */
}


/* 신규 클럽 등록 team_new.php */
form.team_new ul { display: flex; flex-direction: column; grid-gap: 15px; }
form.team_new ul li {
  display: flex; width: 100%; align-items: center; flex-direction: row; flex-wrap: wrap; grid-gap: 10px;
}
form.team_new ul li label {
  display: inline-flex; width: 150px; justify-content: center;
}
form.team_new ul li input {
  width: 40%;
}



/* 사이드 메뉴 모바일화면에서만 보기 */
@media (min-width: 720px){
  #navToggle { display:none; }
}

.row{display:flex;gap:10px;flex-wrap:wrap}
/*.row>*{flex:1 1 200px}*/
.align-center{align-items:center}
textarea.input, input.input{width:100%;padding:10px;border:1px solid #dfe3ea;border-radius:10px}
input.required { border:1px solid var(--pri); }
.help{ margin-bottom: 10px; padding: 0px; font-size:12px;color:var(--highlight); }
.actions{display:flex;gap:8px;justify-content:flex-end;margin-top:16px}
.btn{padding:10px 14px;border-radius:10px;border:1px solid #dfe3ea;background:#fff;cursor:pointer}
.btn.pri{background:var(--pri);border-color:var(--pri);color:#fff}
.pill{display:inline-block;padding:4px 8px;border-radius:999px;background:#eef2ff;color:#3730a3;font-size:12px}
.preview{width:112px;height:112px;border-radius:12px;border:1px dashed #d1d5db;display:grid;place-items:center;overflow:hidden;background:#fafafa}
.preview img{max-width:100%;max-height:100%;display:block}
.alert{padding:12px;border-radius:10px;margin-bottom:14px}
.alert.ok{border:1px solid #c7f0cf;background:#ecfdf5}
.alert.err{border:1px solid #fecaca;background:#fef2f2}
@media (max-width: 720px){
  .wrap{grid-template-columns:1fr}
  .field{grid-template-columns:3fr}
}

/* 로그인 전용 전체화면 레이아웃 */
#loginCard { width:90%; max-width:450px; }
.login-full {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90vh;
  padding: 20px;
}
.login-full .card {
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

/* ===== MyPage (마이페이지 전용) ===== */
.mypage .profile-head{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
}

.mypage .team-logo-wrap{
  padding: 2px;
  border-radius:7px;
  overflow:hidden;
  border:1px solid #e5e7eb;
}

.mypage .team-logo{
  width:100%; max-width: 100px;
  height:100%; max-height: 40px;
  object-fit:cover;
  display:block;
}

.mypage ul.detail {
  display: flex; flex-direction: column; grid-gap: 15px;
}
.mypage ul.detail li {
  display: flex; flex-direction: row; grid-gap: 10px;
}

.mypage .user-meta{ line-height:1.25; }
.mypage .user-id{ font-weight:700; font-size:16px; }
.mypage .team-name{ font-size:12px; color:#6b7280; margin-top:2px; }

.mypage .last-login{ margin-bottom:10px; }

/* 마이페이지 내부 카드에서 테두리 제거용(옵션) */
.mypage .card.flat{ border:none; }

/* 읽기 전용 입력영역 배경 통일 */
.mypage .input.view-only{ background:#fff; }


/* 팀원 상세 모달 */
.row.member-details { justify-content:space-between; }
.card.member-detail { width:500px; }
.card.radar-map { width:396px; }
.member-details div.collapse { padding:10px; }
.member-details div.collapse table { font-size:0.8rem; }
.member-detail .bd li { display: flex; width: 100%; min-height:35px; padding: 5px 0px; }
.member-detail .bd li strong { display: inline-flex; align-items: center; width: 25%; }
.member-detail .bd li>span { display: inline-flex; width: 75%; gap:6px; align-items: center; }
.member-detail .bd li:not(:first-child)>span { justify-content: space-between; }
.member-detail .bd li span input { height: 40px; }
.member-detail .bd li button { display: inline-flex; min-width: 50px; height: 40px; justify-content: center; align-items: center; }

/* ===== MyPage: 로고 변경 오버레이 ===== */
.mypage .team-logo-wrap{
  position:relative;
  cursor:pointer;
}
.mypage .team-logo-wrap .logo-overlay{
  position:absolute; inset:0;
  display:grid; place-items:center;
  border-radius:7px;
  background:rgba(0,0,0,.45);
  color:#fff; font-weight:700; font-size:12px;
  opacity:0; transition:opacity .18s ease-in-out;
}
.mypage .team-logo-wrap:hover .logo-overlay{ opacity:1; }


/* /myclub/assets/style.css — 파일 맨 아래에 추가 */
#overlay-backdrop{
  position:fixed; inset:0; background:rgba(0,0,0,.35);
  z-index:9998; display:none;
}
#overlay-modal{
  position:fixed; inset:0; display:none;
  align-items:center; justify-content:center;
  z-index:9999; pointer-events:none; /* 자체 클릭 방지 */
}
#overlay-modal .box{
  background:#fff; padding:16px 20px; border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,.15);
  min-width:240px; text-align:center; font-weight:600;
  pointer-events:auto; /* 텍스트 선택 가능 */
}
#overlay-modal.loading .box{ font-weight:600 }
#overlay-modal .spinner{
  width:22px; height:22px; border:3px solid #e5e7eb; border-top-color:currentColor;
  border-radius:50%; display:inline-block; margin-right:8px; vertical-align:-5px;
  animation:spin 1s linear infinite;
}
@keyframes spin { to { transform:rotate(360deg); } }
/* body 스크롤 잠금 토글용 */
.body-lock{ overflow:hidden; }

.alpha-bar{
  position:sticky; top:0; background:#fff; padding:8px; z-index:10;
  display:flex; flex-wrap:wrap; gap:6px; border-bottom:1px solid #eee;
}
.alpha-btn{
  border:1px solid #e5e7eb; border-radius:8px; padding:6px 10px; background:#f9fafb;
  font-weight:600; cursor:pointer;
}
.alpha-btn:hover{ background:#fff; }
.alpha-title{
  margin:18px 0 8px; padding-top:8px; border-top:1px dashed #e5e7eb;
}
.member-list{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(70px,1fr));
  gap:10px 10px;
  margin:0;
  padding-left:0;
  list-style:none;
}
.member-list li{
  padding:6px 10px;
  background:#f9fafb;
  border:1px solid #e5e7eb;
  border-radius:8px;
  text-align:center;
  font-size: 0.8rem;
}
@media (min-width: 768px){
  .member-list{ grid-template-columns:repeat(5,1fr); }
}


.modal-backdrop{
  position:fixed; inset:0; background:rgba(0,0,0,.45); z-index:9997; display:none;
}
.modal{
  position:fixed; inset:0; display:none; align-items:center; justify-content:center; z-index:9998;
}
.modal-card{
  background:#fff; border:1px solid #e5e7eb; border-radius:14px; width:min(960px,92vw);
  max-height:86vh; overflow:auto; box-shadow:0 16px 40px rgba(0,0,0,.18);
}
.modal-hd{ display:flex; align-items:center; justify-content:space-between; padding:12px 16px; border-bottom:1px solid #eef0f4 }
.modal-title{ font-weight:700 }
.modal-close{ border:1px solid #e5e7eb; background:#fff; border-radius:10px; padding:6px 10px; cursor:pointer }
.modal-bd{ padding:16px }
.table{ width:100%; border-collapse:collapse }
.table th,.table td{ border:1px solid #eef0f4; padding:8px 10px; text-align:left }

.estimate th, .estimate td { text-align: center;}
.estimate td { font-size:0.8rem;}

/* === 연도별현황 === */
.mc-yearly .mc-header{display:flex;align-items:baseline;gap:12px;margin-bottom:8px}
.mc-yearly .mc-sub{opacity:.75}
.mc-toolbar{display:flex;gap:8px;margin-bottom:12px}
.mc-input{flex:1;min-width:0;padding:.6rem .8rem;border:1px solid #e5e7eb;border-radius:10px}
.mc-btn{padding:.6rem .9rem;border:1px solid #e5e7eb;background:#fff;border-radius:10px;cursor:pointer}
.mc-btn:hover{background:#f8fafc}
.mc-yearly-summary{margin:.25rem 0 1rem}
.mc-yearly-chip{display:inline-flex;gap:10px;align-items:center;padding:.5rem .75rem;border:1px solid #e5e7eb;border-radius:999px;background:#fff}
.mc-skeleton,.mc-empty,.mc-error{padding:1rem;border:1px dashed #e5e7eb;border-radius:12px;background:#fff}

.mc-yearblock{border:1px solid #e5e7eb;border-radius:12px;margin:10px 0;background:#fff}
.mc-ytoggle{width:100%;text-align:left;padding:12px 14px;border:0;background:transparent;display:flex;justify-content:space-between;gap:8px;cursor:pointer;font-size:16px}
.mc-ytoggle:hover{background:#f8fafc}
.mc-ypanel{padding:8px 14px 12px}
.mc-complist{list-style:none;margin:0;padding:0;display:grid;gap:35px}
.mc-comp{display:grid;grid-template-columns:110px 1fr 120px 70px;gap:8px;align-items:center;}
.mc-comp>span:first-child{border-bottom:1px solid #DDD;}
.mc-comp>span:not(:first-child){padding-left: 10px;}
.mc-date{opacity:.7}
.mc-meta{opacity:.7}
.mc-rank{font-weight:600;text-align:right}
@media (max-width:640px){
  .mc-comp{grid-template-columns:1fr}
  .mc-rank{text-align:left;opacity:.85}
}


/* === 모달 === */
.mc-modal-open{overflow:hidden}
.mc-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.4);
  display:none; /* ← 기본은 안 보이게 */
  align-items:center;
  justify-content:center;
  padding:16px;
  z-index:1000;
}
.mc-modal[hidden] { display:none !important; } /* ← hidden 속성 확실히 숨기기 */
.mc-modal.show { display:flex; } /* JS로 openModal()에서 이 클래스 추가 */

.mc-modal-box{width:min(720px, 96vw);max-height:90vh;overflow:auto;background:#fff;border-radius:14px;box-shadow:0 10px 30px rgba(0,0,0,.2)}
.mc-modal-head{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;border-bottom:1px solid #eee}
.mc-modal-head h3{margin:0;font-size:18px}
.mc-modal-close{border:0;background:transparent;font-size:22px;line-height:1;cursor:pointer;padding:4px 8px}
.mc-modal-body{padding:12px 16px 16px}
.mc-modal-meta{display:flex;gap:12px;opacity:.8;margin-bottom:10px;flex-wrap:wrap}
.mc-participant-list .mc-subgroup{margin:10px 0 16px}
.mc-subtitle{font-size:15px;margin:0 0 6px}
.mc-table{width:100%;border-collapse:collapse}
.mc-table th, .mc-table td { border:1px solid #eee; padding:8px; vertical-align:middle; }
.mc-table td:first-child { text-align:center; }
.mc-table td > div { font-size:0.8rem; }
.ta-c{text-align:center}


/* /myclub/assets/style.css — 하단에 추가 */
.modal-backdrop{ z-index:10000; }
.modal{ z-index:10001; }
.link-btn{ background:none;border:none;padding:0;margin:0;color:#2563eb;cursor:pointer;font:inherit;text-decoration:underline }
.pw-step .row{ display:flex; align-items:center; gap:8px }


/* /myclub/pages/simulate_teamgame.php  */
.page h2 { margin: 0 0 8px; }
.panel { background:#fff; border:1px solid #ddd; border-radius:8px; padding:12px; }
#relay-form .grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; margin-bottom:10px; margin-top:30px; }
#relay-form .table { width:100%; border-collapse:collapse; }
#relay-form .table th, #relay-form .table td { border-top:1px solid #eee; padding:5px 0px; text-align:center; }
#relay-form .table thead th { border-top:none; background:#fafafa; font-size:0.9rem; padding: }
#relay-form .table .st { width:60px; }
#relay-form .table td.td-input { min-width: 80px; }
#relay-form .table input.name-input { width:100%; border:1px solid white; text-align:center; padding:3px; }
#relay-form .table tbody td, #relay-form .table tfoot td { font-size:0.8rem; }

#relay-form .row{ display:flex; padding-top:15px; align-items:center; justify-content: space-between;}
#relay-form .row button { display: inline-block; width:115px; background: white; text-align: center;}
#relay-form .ta-c{ width:40px; text-align:center;}
#relay-form .ta-r{text-align:right}

#relay-form .gap{gap:8px}
#relay-form .grow{flex:1}

#relay-form .muted { color:#6b7280; font-size:12px; border-bottom: 1px solid #6b7280;}
.btn { padding:6px 10px; border-radius:6px; border:1px solid #ccc; background:#f6f6f6; color:var(--muted); cursor:pointer; }
.btn:hover{background:#eee}
.btn.sm{padding:4px 8px; font-size:12px}
.btn.ghost{background:transparent}

.mt{margin-top:12px}
input[name^="record"]{width:120px}


/* flash */
.alert{padding:10px 12px;border-radius:8px;margin:0 0 12px;background:#f5f5f5}
.alert.ok{background:#e6f4ea;color:#1e6b2d;border:1px solid #c6e9d1}
.alert.sub{background:#eef3ff;color:#2b4fbf;border:1px solid #dbe5ff}


/* =========================================================
   Team Simulator (simulate_teamgame.php)
   Scope: #relay-form 내부만 적용 → 타 페이지와 충돌 방지
   ========================================================= */

/* 라벨 & 레이아웃 보정 */
#relay-form .grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: #555;
}
#relay-form .grid label > span {
  font-weight: 600;
  color: #333;
  display: none;
}

/* 공통 select 스타일 */
#relay-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  background-color: #fff;
  /* ▼ 드롭다운 아이콘 (SVG data URI) */
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 6px;
  padding: 6px 30px 6px 10px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}
#relay-form select:hover {
  border-color: #9a9a9a;
}
#relay-form select:focus {
  border-color: #1e88e5;
  box-shadow: 0 0 0 2px rgba(30,136,229,0.18);
}

/* 표(기록 칸) 가독성 */
#relay-form .table .st {
  white-space: nowrap;
}
#relay-form .table td[class^="record-"] {
  font-variant-numeric: tabular-nums;
}

/* 반응형 */
@media (max-width: 720px) {
  #relay-form select {
    font-size: 13px;
    padding: 5px 28px 5px 8px;
  }
  #relay-form .grid {
    gap: 6px;
  }
}



/* 데스크탑 기본은 그대로 유지 */

/* 모바일: 720px 이하에서 nav를 화면 밖으로 숨겼다가 슬라이드 인 */
@media (max-width: 720px){
  .wrap{ grid-template-columns: 1fr; }

  /* 오버레이 배경 (#overlay-backdrop는 페이지에 이미 있음) */
  #overlay-backdrop{
    display:none;
    position:fixed; inset:0;
    background: rgba(0,0,0,.4);
    z-index: 900;
  }
  body.nav-open #overlay-backdrop{ display:block; }

  /* 사이드내비를 고정 패널로 전환 */
  nav#sidenav{
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    width: 80%;
    max-width: 320px;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform .25s ease;
    border-radius: 0;              /* 카드 라운드 제거 */
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
  }
  body.nav-open nav#sidenav{
    transform: translateX(0);
  }

  /* 헤더의 메뉴 버튼 아이콘-only 스타일(선택) */
  .btn.icon-only{
    display:flex; align-items:center; justify-content:center;
    width:40px; height:40px; padding:0;
    border-radius:10px;
    background:#fff; border:1px solid #e5e7eb;
    margin-right:8px;
  }
}

.linklike{background:none;border:none;padding:0;color:gray;cursor:pointer;font:inherit;}




/* 팀원 현황에서 팀명을 클릭하면 나오는 모달 */
#member-modal table#md-comps th, #member-modal table#md-comps td { text-align: center; font-size:0.8rem; }
#member-modal table#md-comps tbody td { font-size:0.8rem; }




/* === 사이드메뉴 하단 검색박스 === */
#sidenav {
  position: relative;
  padding-bottom: 76px; /* 검색박스 높이만큼 여유 */
}
#sidenav .searchbox {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 6px;
  padding: 10px;
  background: #fff;
  border-top: 1px solid #eee;
}
#sidenav .searchbox input[type="text"]{
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
}
#sidenav .searchbox .btn{
  flex: 0 0 auto;
  padding: 8px 12px;
}



/* === 선수 기록 테이블 === */
#player-search-form {
  display: flex; justify-content: space-between;
  width: 100%; margin-bottom: 15px;
}
#player-search-form input.input-name {
  width: 84%; border: 1px solid lightgray; border-radius: 7px; padding: 10px;
}
#player-search-form button.btn {
  width: 14%;
}
.table-wrap{overflow:auto}
.records-table{
  width:100%;
  border-collapse: collapse;
  font-size:14px;
}
.records-table thead th{
  position: sticky; top: 0;
  background:#fafafa; border-bottom:1px solid #e5e5e5;
  text-align:left; padding:10px 8px; white-space:nowrap;
}
.records-table td{
  border-bottom:1px solid #f0f0f0; padding:8px;
}
.records-table td.num{ text-align:right; white-space:nowrap; }
.summary-row{ margin:10px 0 14px; color:#666; }
.sr-only{
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* 선수 기록 카드형 출력 */
.record-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.record-item {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.record-head {
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  color: #222;
}
.record-head .date {
  font-size: 0.9em;
  color: #666;
}
.record-body {
  font-size: 0.95em;
  color: #333;
  line-height: 1.5;
}
.record-body .line {
  
}
/* 필터 바 */
.filterbar {
  margin: 6px 0 12px;
  background:#fff;
  border:1px solid #eee;
  border-radius:10px;
  padding:10px 12px;
}
.filterbar .row {
  display:flex;
  gap:0px;
  align-items:center; justify-content: space-between;
  flex-wrap:wrap;
}
.filterbar label {
  display:flex;
  width: 49%;
  gap:0px;
  align-items:center;
  font-size:14px;
  color:#333;
}
.filterbar select {
  padding:6px 8px;
  border:1px solid #ddd;
  border-radius:6px;
  width: 100%;  min-width:160px;
  background:#fff;
}
.filterbar .btn {
  padding:8px 12px;
}


.icon-btn{
  border: 0; background: transparent; cursor: pointer; line-height: 1;
  padding: 2px 4px; border-radius: 6px; font-size: 14px;
}
.icon-btn:hover{ background: #f3f4f6; }
.input-sm{ height: 28px; padding: 0 8px; font-size: 14px; }
.btn-sm{ height: 28px; padding: 0 10px; font-size: 13px; }



/* 팀원현황 -> 연도별 대회 종합순위 업데이트 아이콘 버튼 */
.mc-upd{border:0;background:transparent;cursor:pointer;font-size:16px;opacity:.8}
.mc-upd:hover{opacity:1}


/* ===============================
   사이드바 하위메뉴 (팀원현황 전용)
   =============================== */

.menu-sec {
  width:100%;display:block;padding:10px 12px; color: gray; border:1px solid #e5e7eb;border-radius:10px;background:#fff;text-align:left;margin-bottom:8px;cursor:pointer;
}
.menu-sec[aria-current="page"]{ color: gray; border-color:var(--pri);outline:2px solid rgba(37,99,235,.15)}

.menu-sec .menu-hd {
  color: #555;
  margin-bottom: 4px;
  padding-left: 0px;
}

.menu-sec .menu-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 8px;
}

.menu-sec .menu-list li {
  margin: 0;
}

.menu-sec .menu-list a {
  display: block;
  padding: 4px 8px 4px 14px;
  font-size: 0.9rem;
  color: #444;
  text-decoration: none;
  border-radius: var(--radius, 8px);
  transition: background 0.2s, color 0.2s;
}

.menu-sec .menu-list a:hover {
  background: #f3f4f6;
  color: var(--accent, #2563eb);
}

/* 활성 상태 표시 (현재 페이지 or view) */
.menu-sec .menu-list a[aria-current="page"] {
  background: var(--accent, #2563eb);
  color: #fff;
  font-weight: 600;
}

/* favorite 강조 */
.menu-sec .menu-list a[href*="favorite"]::before {
  content: "★ ";
  color: #fbbf24;
}

/* 그룹 번호/아이콘 약간 정렬 보정 */
.menu-sec .menu-list a[href*="view=group"] {
  padding-left: 16px;
}

/* 그룹생성 버튼 스타일 */
.menu-sec .menu-list a[href*="team_groups"] {
  color: #2563eb;
  font-weight: 500;
}
.menu-sec .menu-list a[href*="team_groups"]:hover {
  text-decoration: underline;
}



/* 그룹생성 */
.group-form .input { min-width: 260px; }
.help.ok { color: var(--pri, #2563eb); }
.help.err { color: #d92d20; }



/* 즐겨찾기 별 기본 스타일 */
#md-favorite {
  cursor: pointer;
  font-size: 1.4em; /* 약간 키움 */
  line-height: 1;
  display: inline-block; /* transform 적용을 위해 inline-block */
  transition: color 0.2s ease, transform 0.1s ease;
  user-select: none; /* 텍스트 선택 방지 */
  color: #ccc; /* 기본 회색 (is-notfav) */
}

/* 활성화 상태 (노란 별) */
#md-favorite.is-fav {
  color: #FFD700; /* 밝은 금색 */
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.5); /* 약간의 빛나는 효과 */
}

/* 비활성화 상태 (회색 별) */
#md-favorite.is-notfav {
  color: #e5e7eb; /* 연한 회색 */
  text-shadow: none;
}

/* ✨ 애니메이션 클래스 (자바스크립트로 토글) */
.fav-pop-effect {
  animation: popStar 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 펑! 하고 커졌다 작아지는 키프레임 */
@keyframes popStar {
  0% { transform: scale(1); }
  50% { transform: scale(1.5); } /* 1.5배 커짐 */
  100% { transform: scale(1); }
}