/* public/assets/css/style.css */

/* 1. 브랜드 컬러 정의 (Invest2 + SSG 블루 감성) */
:root {
  --primary: #3b82f6;       /* 산뜻한 밝은 블루 */
  --primary-dark: #1d4ed8;  /* 진한 블루 (호버용) */
  --header-bg: #1f2937;     /* Invest2 스타일의 짙은 네이비/그레이 */
  --header-text: #f9fafb;   /* 헤더 글자색 (흰색에 가까운) */
  --bg-color: #f3f4f6;      /* 배경은 아주 연한 회색 (카드가 돋보이게) */
  --card-bg: #ffffff;       /* 카드 배경 */
  --text-main: #111827;     /* 본문 검은색 */
  --text-muted: #6b7280;    /* 회색 글자 */
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 2. 네비게이션바 (Invest2 스타일: 어둡고 묵직하게) */
nav.custom-nav {
  background-color: var(--header-bg);
  color: var(--header-text);
  padding: 0.8rem 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

nav.custom-nav a {
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

nav.custom-nav a:hover {
  color: #fff;
}

nav.custom-nav strong {
  color: #fff;
  font-size: 1.3rem;
  letter-spacing: -0.5px;
}

nav.custom-nav ul li {
  padding: 0;
  margin-left: 1rem;
}

/* 3. 대시보드 레이아웃 */
main.container {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
  max-width: 1500px; /* 너무 퍼지지 않게 중앙 정렬 */
}

/* 4. 카드 디자인 (Invest2의 핵심: 그림자와 둥근 모서리) */
.dashboard-card {
  background: var(--card-bg);
  border-radius: 16px; /* 둥글게 */
  padding: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); /* 부드러운 그림자 */
  border: 1px solid rgba(229, 231, 235, 0.5);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, box-shadow 0.2s;
}

/* 클릭 가능한 카드는 호버 효과 추가 */
.dashboard-card.clickable {
  cursor: pointer;
}
.dashboard-card.clickable:hover {
  transform: translateY(-3px); /* 살짝 떠오름 */
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: var(--primary);
}

/* 카드 내부 요소 */
.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.card-title-sm {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-icon-bg {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
/* 아이콘 배경색 (Invest2 처럼 알록달록하게) */
.bg-blue { background-color: #dbeafe; color: #1d4ed8; }
.bg-yellow { background-color: #fef9c3; color: #a16207; }
.bg-green { background-color: #dcfce7; color: #15803d; }
.bg-purple { background-color: #f3e8ff; color: #7e22ce; }

.big-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.card-footer-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  margin-top: 1rem;
}
.card-footer-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* 섹션 제목 */
h3.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-left: 0.5rem;
  border-left: 4px solid var(--primary);
  line-height: 1.2;
}

/* --- Breadcrumb (네비게이션 바) --- */
.breadcrumb-bar {
  background-color: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.8rem 0;
  margin-bottom: 2rem; /* 본문과의 간격 */
  font-size: 0.9rem;
}

.breadcrumb {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  color: var(--text-muted);
}

.breadcrumb a {
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.breadcrumb .divider {
  margin: 0 10px;
  color: #d1d5db;
  font-size: 0.8em;
}

.breadcrumb .current {
  color: var(--text-main);
  font-weight: 600;
}

/* 상단바에 클럽 이름 뱃지 스타일 */
.club-badge {
    background: rgba(255,255,255,0.15);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    margin-right: 15px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* 1. 파란색 "수정 완료" 버튼 (Submit) - 이 친구가 빠져 있었습니다! */
button[type="submit"],
input[type="submit"] {
  width: 100%;        /* 너비 100% 꽉 채우기 */
  display: block;     /* 블록 요소로 변경 */
  margin-bottom: 0;   /* 하단 여백 제거 */
}

/* 2. 회색 "취소" 버튼 (Secondary) - 색상 + 크기 */
[role="button"].secondary, 
button.secondary {
  /* 색상: 회색 */
  background-color: #6b7280; 
  border-color: #6b7280;
  color: #fff;
  opacity: 1;
  
  /* 크기: 꽉 채우기 */
  width: 100%; 
  display: block; 
  text-align: center;
}

/* 3. 회색 버튼 호버 효과 */
[role="button"].secondary:hover, 
button.secondary:hover {
  background-color: #4b5563;
  border-color: #4b5563;
}
.action-buttons a, .action-buttons button, .action-buttons form {
        margin-bottom: 0 !important; /* Pico.css 기본 하단 여백 제거 */
        white-space: nowrap;      /* 글자가 줄바꿈되지 않게 고정 */
}
.action-buttons {
	display: flex;
	gap: 10px;
	align-items: center;
}