/* 전역 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    color: #333;
}

/* 레이아웃 래퍼 */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
}

/* 페이지 전환 애니메이션 */
.page-enter {
    animation: fadeInSlide 0.3s ease-out;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-exit {
    animation: fadeOutSlide 0.3s ease-out;
}

@keyframes fadeOutSlide {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* 로그인 페이지 스타일 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(255, 140, 0, 0.3);
    width: 100%;
    max-width: 400px;
    position: relative;
}

.language-selector-login {
    position: absolute;
    top: 20px;
    right: 20px;
}

.language-selector-login select {
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
}

.language-selector-login select:hover {
    border-color: #667eea;
}

.language-selector-login select:focus {
    outline: none;
    border-color: #667eea;
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.login-logo {
    max-width: 120px;
    height: auto;
}

.login-box h1 {
    text-align: center;
    color: #667eea;
    font-size: 32px;
    margin-bottom: 10px;
}

.subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-login:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: #e0e0e0;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background: white;
    padding: 0 10px;
    color: #999;
    font-size: 14px;
}

.btn-kakao {
    width: 100%;
    padding: 14px;
    background: #FEE500;
    color: #3c1e1e;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-kakao:hover {
    background: #fdd835;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(254, 229, 0, 0.4);
}

.btn-kakao img {
    width: 20px;
    height: 20px;
}

.links,
.login-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.links a,
.login-links a {
    color: #667eea;
    text-decoration: none;
}

.links a:hover,
.login-links a:hover {
    text-decoration: underline;
}

.links span,
.login-links span {
    margin: 0 10px;
    color: #ccc;
}

/* 회원가입 페이지 스타일 */
.signup-box {
    max-width: 500px;
}

.required {
    color: #f56565;
    font-weight: bold;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

.radio-label input[type="radio"] {
    width: auto;
    cursor: pointer;
}

.radio-label span {
    font-size: 14px;
    color: #333;
}

/* 체크박스 스타일 */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
    width: 100%;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    cursor: pointer;
    margin-top: 3px;
    flex-shrink: 0;
}

.checkbox-label span {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

/* 약관 동의 섹션 스타일 */
.terms-agreement-section {
    margin: 24px 0;
}

.terms-agreement-header {
    margin-bottom: 12px;
}

.terms-agreement-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.terms-agreement-box {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
}

.terms-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.terms-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 12px 0;
}

.terms-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex: 1;
    position: relative;
}

.terms-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.terms-checkbox-label:hover .checkmark {
    border-color: #667eea;
}

.terms-checkbox-label input:checked ~ .checkmark {
    background-color: #667eea;
    border-color: #667eea;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.terms-checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.terms-text {
    font-size: 14px;
    color: #2d3748;
    font-weight: 500;
}

.terms-text .required {
    color: #f56565;
    margin-right: 4px;
}

.terms-view-btn {
    background: #fff;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px;
    color: #667eea;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.terms-view-btn:hover {
    background: #edf2f7;
    border-color: #667eea;
}

.terms-view-btn .arrow {
    font-size: 16px;
    font-weight: bold;
}

/* 약관 모달 스타일 */
.terms-modal-content {
    max-width: 700px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.terms-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px;
    border-radius: 12px 12px 0 0;
}

.terms-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.terms-modal-icon {
    font-size: 32px;
}

.terms-modal-title h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.terms-modal-header .modal-close {
    color: white;
    opacity: 0.9;
    font-size: 32px;
    background: transparent;
}

.terms-modal-header .modal-close:hover {
    opacity: 1;
}

.terms-modal-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
    background: #fff;
}

.terms-content {
    line-height: 1.8;
    color: #2d3748;
}

.terms-content h3 {
    color: #667eea;
    font-size: 18px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #edf2f7;
}

.terms-content h3:first-child {
    margin-top: 0;
}

.terms-content p {
    margin: 12px 0;
    font-size: 14px;
    line-height: 1.8;
}

.terms-content ul {
    margin: 12px 0;
    padding-left: 24px;
}

.terms-content li {
    margin: 8px 0;
    font-size: 14px;
    line-height: 1.7;
}

.terms-content strong {
    color: #4a5568;
    font-weight: 600;
}

.terms-modal-actions {
    padding: 20px 32px;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: center;
}

.btn-terms-close {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-terms-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .terms-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .terms-view-btn {
        align-self: flex-end;
    }

    .terms-modal-content {
        max-width: 95%;
        max-height: 90vh;
    }

    .terms-modal-header {
        padding: 20px;
    }

    .terms-modal-title h2 {
        font-size: 20px;
    }

    .terms-modal-icon {
        font-size: 28px;
    }

    .terms-modal-body {
        padding: 24px;
    }

    .terms-content h3 {
        font-size: 16px;
    }
}

.input-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #999;
}

/* 인증 버튼 스타일 */
.btn-verify {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.btn-verify:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
    transform: translateY(-1px);
}

.btn-verify:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.btn-verify:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.links span {
    margin: 0 10px;
    color: #ccc;
}

/* 모바일 헤더 */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    align-items: center;
    padding: 0 20px;
    z-index: 1001;
}

.mobile-header h1 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* 햄버거 메뉴 */
.hamburger-menu {
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 5px 0;
    margin-right: 15px;
}

.hamburger-menu span {
    width: 100%;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* 모바일 오버레이 */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-overlay.active {
    display: block;
}

/* 사이드바 스타일 */
.sidebar {
    width: 170px;
    background: white;
    border-right: 1px solid #e0e0e0;
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.logo {
    padding: 20px;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    max-width: 100%;
    height: auto;
    max-height: 60px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.nav-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0 10px;
}

.nav-item {
    padding: 12px 15px;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 14px;
}

.nav-item:hover {
    background: #f5f5f5;
    color: #333;
}

.nav-item.active {
    background: #f5f5f5;
    color: #333;
    font-weight: 600;
}

.user-section {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.user-section span {
    font-size: 14px;
    color: #666;
}

.language-selector {
    margin-top: 5px;
}

.language-selector select {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-selector select:hover {
    border-color: #667eea;
}

.language-selector select:focus {
    outline: none;
    border-color: #667eea;
}

.btn-logout {
    padding: 8px 15px;
    background: #f5f5f5;
    color: #666;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: #e0e0e0;
}

.btn-language {
    padding: 8px 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.btn-language:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

/* 메인 컨텐츠 */
.main-content {
    margin-left: 170px;
    flex: 1;
    padding: 20px;
    background: #f5f5f5;
}

/* 페이지 헤더 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
}

.btn-add-event {
    padding: 12px 24px;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-add-event:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

/* 광고 영역 - 롤링 배너 */
.ad-section {
    margin-bottom: 30px;
}

.ad-carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ad-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.ad-slide {
    min-width: 100%;
    height: 100%;
    background: white;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-text {
    font-size: 24px;
    color: #ccc;
    font-weight: 300;
}

/* 이전/다음 버튼 */
.ad-prev,
.ad-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 18px;
    border-radius: 4px;
    transition: all 0.3s;
    z-index: 10;
}

.ad-prev:hover,
.ad-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.ad-prev {
    left: 10px;
}

.ad-next {
    right: 10px;
}

/* 인디케이터 도트 */
.ad-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.ad-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.ad-dot.active {
    background: white;
    width: 25px;
    border-radius: 5px;
}

/* 경조사 섹션 */
.event-section {
    background: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    background: #fffbea;
    padding: 15px 20px;
    border-radius: 8px;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.btn-view-all {
    padding: 8px 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.3s;
}

.btn-view-all:hover {
    background: #f5f5f5;
}

/* 경조사 카드 래퍼 (가로 스크롤) */
.event-cards-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0 15px;
    padding-bottom: 10px;
}

.event-cards-wrapper::-webkit-scrollbar {
    height: 8px;
}

.event-cards-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.event-cards-wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.event-cards-wrapper::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* 경조사 카드 */
.event-cards {
    display: flex;
    gap: 20px;
    width: max-content;
}

.event-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    position: relative;
}

.event-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.event-card-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.event-type {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.event-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.event-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.info-label {
    color: #666;
}

.info-value {
    font-weight: 600;
    color: #333;
}

.event-date {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
}

.date-label {
    color: #666;
}

.date-value {
    color: #333;
}

.event-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 40px;
}

.btn-delete-card {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 11px;
    opacity: 0;
    transition: all 0.3s;
}

.event-card:hover .btn-delete-card {
    opacity: 1;
}

.btn-delete-card:hover {
    background: #d32f2f;
}

/* 경조사 페이지 - 요약 섹션 */
.summary-section {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

/* 총 금액 카드 */
.total-amount-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: 16px;
    padding: 20px 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.total-amount-card h2 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin: 0;
    text-align: center;
}

.summary-labels {
    display: flex;
    gap: 10px;
}

.summary-label {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    font-size: 13px;
    color: #666;
}

.summary-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.stat-item strong {
    color: #333;
}

.btn-register {
    padding: 10px 20px;
    background: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    transition: all 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin-top: 5px;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 순위 카드 */
.ranking-card {
    background: white;
    border-radius: 16px;
    padding: 18px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ranking-card h3 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: -3px 0 12px 0;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ranking-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: #f9f9f9;
    border-radius: 8px;
}

.ranking-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ranking-icon {
    font-size: 20px;
    line-height: 1;
    width: 24px;
    display: inline-block;
    text-align: center;
    flex-shrink: 0;
}

.ranking-name {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.ranking-value {
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

/* 경조사 리스트 섹션 */
.event-list-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.event-list-section .section-header {
    background: #fffbea;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-list-section .section-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.event-list-section .event-count-label {
    font-size: 14px;
    color: #666;
}

.event-list-section .event-count-label strong {
    font-size: 16px;
    color: #333;
    font-weight: 700;
}

/* 경조사 카드 클릭 효과 */
.event-card {
    cursor: pointer;
}

.event-card:active {
    transform: scale(0.98);
}

/* 경조사 상세 페이지 */
.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-back-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    cursor: pointer;
    font-size: 20px;
    color: #666;
    transition: all 0.2s ease;
}

.btn-back-icon:hover {
    background: #f5f5f5;
    border-color: #d4af37;
    color: #d4af37;
}

.detail-header h1 {
    font-size: 24px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0;
}

.detail-header-info {
    display: flex;
    gap: 10px;
}

.detail-date-badge {
    padding: 8px 14px;
    background: #f5f5f5;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

/* 요약 정보 카드 */
.detail-summary-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.detail-summary-card {
    background: white;
    border-radius: 12px;
    padding: 14px;
    border: 1px solid #e8e8e8;
    transition: all 0.2s ease;
}

.detail-summary-card:hover {
    border-color: #d4af37;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.summary-card-label {
    font-size: 12px;
    color: #999;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-card-value {
    font-size: 28px;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 6px;
}

.summary-card-sub {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.btn-edit {
    padding: 10px 24px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-edit:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

/* 2단 레이아웃 */
.detail-two-column {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 8px;
}

/* 좌측: 입력 폼 */
.detail-left {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.input-form-card {
    background: white;
    border-radius: 12px;
    padding: 12px;
    border: 1px solid #e8e8e8;
}

.input-form-card h2 {
    font-size: 16px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0 0 12px 0;
}

.attendee-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.attendee-form .form-group {
    margin-bottom: 0;
}

.attendee-form .form-group label {
    margin-bottom: 6px;
    font-size: 13px;
}

.attendee-form .form-group input,
.attendee-form .form-group select {
    padding: 10px;
    font-size: 14px;
}

/* 부조금/참석인원/참석여부 한 줄 배치 */
.attendee-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.btn-submit-attendee {
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, #d4af37 0%, #f4c542 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.btn-submit-attendee:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* 광고 영역 */
.detail-ad-card {
    margin-top: 8px;
    background: white;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e8e8e8;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 좌측 고정 광고 (sticky) */
.detail-ad-card.sticky-ad {
    position: sticky;
    top: 80px; /* 헤더 아래에 고정 */
    z-index: 10;
}

.ad-placeholder {
    font-size: 14px;
    color: #999;
    text-align: center;
}

/* 우측 상단 광고 */
.right-top-ad {
    margin-bottom: 8px;
    background: white;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #e8e8e8;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 우측: 정보 출력 */
.detail-right {
    display: flex;
    flex-direction: column;
}

.attendee-section {
    background: white;
    border-radius: 12px;
    padding: 14px;
    border: 1px solid #e8e8e8;
}

.attendee-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.attendee-section-header h2 {
    font-size: 16px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.attendee-controls {
    display: flex;
    gap: 8px;
}

.attendee-controls input,
.attendee-controls select {
    padding: 8px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-size: 13px;
    background: white;
    transition: all 0.2s ease;
}

.attendee-controls input {
    width: 200px;
}

.attendee-controls input:focus,
.attendee-controls select:focus {
    outline: none;
    border-color: #d4af37;
}

.attendee-controls select {
    min-width: 110px;
    cursor: pointer;
}

.attendee-table-container {
    overflow-x: auto;
}

.attendee-table {
    width: 100%;
    border-collapse: collapse;
}

.attendee-table thead {
    background: #fafafa;
}

.attendee-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #999;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #f0f0f0;
}

.attendee-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f5f5f5;
    color: #333;
    font-size: 13px;
    font-weight: 500;
}

.attendee-table tbody tr {
    transition: all 0.2s;
}

.attendee-table tbody tr:hover {
    background: #fafafa;
}

.attendee-table tbody tr:last-child td {
    border-bottom: none;
}

/* event-detail 페이지 테이블은 항상 모든 컬럼 표시 */
.attendee-section .attendee-table th,
.attendee-section .attendee-table td {
    display: table-cell !important;
}

/* 로딩 상태 */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f0f0f0;
    border-top-color: #d4af76;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-state p {
    margin: 0;
    font-size: 14px;
    color: #999;
    font-weight: 500;
}

.btn-delete-small {
    padding: 6px 12px;
    background: white;
    color: #f44336;
    border: 1px solid #f44336;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-delete-small:hover {
    background: #f44336;
    color: white;
}

/* 참석 상태 점 */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* X 삭제 버튼 */
.btn-delete-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 20px;
    color: #999;
    transition: all 0.2s ease;
    padding: 0;
}

.btn-delete-icon:hover {
    background: #ffebee;
    color: #f44336;
}


/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.close {
    font-size: 28px;
    font-weight: 300;
    color: #999;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
}

.close:hover {
    color: #333;
}

.modal-form {
    padding: 25px 30px;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}


/* 반응형 디자인 */
/* 태블릿 (769px ~ 1024px): 사이드바를 적절한 크기로 유지 */
@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar {
        width: 140px;
        padding: 25px 0;
    }

    .logo {
        padding: 0 12px;
        margin-bottom: 25px;
    }

    .logo h1 {
        font-size: 17px;
    }

    .nav-item {
        font-size: 13px;
        padding: 10px 12px;
        margin: 0 10px;
    }

    .user-section {
        padding: 0 12px;
    }

    .user-section span {
        font-size: 13px;
    }

    .main-content {
        margin-left: 140px;
        padding: 25px;
    }

    /* 대시보드 카드 레이아웃 최적화 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* 요약 카드 2열 */
    .summary-section {
        grid-template-columns: repeat(2, 1fr);
    }

    /* 테이블 폰트 크기 조정 */
    table {
        font-size: 13px;
    }

    /* 버튼 크기 조정 */
    .btn-primary,
    .btn-secondary {
        padding: 10px 18px;
        font-size: 13px;
    }

    /* 카드 패딩 조정 */
    .card {
        padding: 18px;
    }
}

@media (max-width: 768px) {
    /* 모바일 헤더 표시 */
    .mobile-header {
        display: flex;
    }

    /* 사이드바를 좌측 밖으로 숨김 */
    .sidebar {
        width: 250px;
        transform: translateX(-100%);
    }

    /* 사이드바 활성화 시 */
    .sidebar.active {
        transform: translateX(0);
    }

    /* 모바일에서 메뉴 항목 다시 표시 */
    .logo h1,
    .nav-item,
    .user-section span,
    .language-selector {
        display: block;
    }

    .logo::before {
        display: none;
    }

    /* 메인 컨텐츠 여백 조정 */
    .main-content {
        margin-left: 0;
        margin-top: 60px;
        padding: 20px;
    }

    .login-box {
        padding: 30px 20px;
    }

    .modal-content {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .login-box h1 {
        font-size: 24px;
    }

    .main-content {
        padding: 15px;
    }

    .event-section {
        padding: 0;
    }

    .ad-card {
        height: 150px;
    }

    .section-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .summary-section {
        grid-template-columns: 1fr;
    }

    .detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .detail-header h1 {
        font-size: 20px;
    }

    .detail-summary-cards {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }

    .summary-card-value {
        font-size: 24px;
    }

    .detail-two-column {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .detail-left {
        position: static;
        order: 1;
    }

    .detail-right {
        order: 2;
    }

    .attendee-section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .attendee-section-header h2 {
        font-size: 15px;
    }

    .attendee-controls {
        width: 100%;
        flex-direction: row;
        gap: 8px;
    }

    .attendee-controls input {
        flex: 1;
        min-width: 0;
    }

    .attendee-controls select {
        width: 100px;
        flex-shrink: 0;
    }

    /* event-detail 페이지의 테이블 스타일 */
    .attendee-section .attendee-table {
        font-size: 12px;
    }

    .attendee-section .attendee-table th,
    .attendee-section .attendee-table td {
        padding: 10px 6px;
        font-size: 11px;
        display: table-cell; /* 다른 미디어 쿼리의 display: none 오버라이드 */
    }

    /* 참석자 추가 폼 - 모바일에서 세로 배치 */
    .attendee-form-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .input-form-card {
        padding: 14px;
    }

    .input-form-card h2 {
        font-size: 15px;
        margin-bottom: 10px;
    }

    /* 모바일 광고 영역 */
    .detail-ad-card {
        margin-top: 12px;
        padding: 12px;
        min-height: 150px;
    }

    .attendee-section .attendee-table th {
        font-size: 10px;
    }

    .attendee-section .attendee-table th:first-child,
    .attendee-section .attendee-table td:first-child {
        width: 40%;
    }

    .attendee-section .attendee-table th:nth-child(2),
    .attendee-section .attendee-table td:nth-child(2) {
        width: 30%;
    }

    .attendee-section .attendee-table th:nth-child(3),
    .attendee-section .attendee-table td:nth-child(3) {
        width: 20%;
    }

    .attendee-section .attendee-table th:nth-child(4),
    .attendee-section .attendee-table td:nth-child(4) {
        width: 10%;
    }

    .status-dot {
        width: 6px;
        height: 6px;
    }

    .btn-delete-icon {
        width: 24px;
        height: 24px;
        font-size: 18px;
    }

    .detail-summary {
        grid-template-columns: 1fr;
    }
}

/* Toast 알림 스타일 */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.toast.show {
    animation: toastSlideIn 0.3s ease-out forwards, toastSlideOut 0.3s ease-in 2.7s forwards;
}

.toast-icon {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-message {
    color: #333;
    font-size: 15px;
    font-weight: 500;
}

@keyframes toastSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
        pointer-events: all;
    }
}

@keyframes toastSlideOut {
    to {
        opacity: 0;
        transform: translateY(20px);
        pointer-events: none;
    }
}

@media (max-width: 768px) {
    .toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: calc(100% - 40px);
    }
}

/* 캘린더 스타일 */
.calendar-layout {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 4px 8px;
}

.calendar-left {
    width: 100%;
}

.calendar-right {
    width: 100%;
}

.calendar-container {
    padding: 0;
    background: white;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 24px rgba(212, 175, 55, 0.12);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    padding: 0;
    background: transparent;
}

.calendar-header h2 {
    font-size: 26px;
    color: #2c2c2c;
    margin: 0;
    font-weight: 800;
    flex: 1;
    text-align: center;
    letter-spacing: -0.5px;
    transition: color 0.2s;
    user-select: none;
}

.calendar-header h2:hover {
    color: #d4af37;
}

.calendar-nav-btn {
    background: white;
    color: #d4af37;
    border: 2px solid #fef5e7;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.calendar-nav-btn:hover {
    background: linear-gradient(135deg, #d4af37 0%, #f4c542 100%);
    color: white;
    border-color: #d4af37;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-today {
    background: linear-gradient(135deg, #d4af37 0%, #f4c542 100%);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    margin: 0 16px;
}

.btn-today:hover {
    background: linear-gradient(135deg, #c9a332 0%, #e9ba3d 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

.calendar-grid {
    background: #fef5e7;
    border-radius: 16px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: minmax(100px, 100px);
    gap: 2px;
    overflow: hidden;
    border: none;
    box-shadow: 0 2px 12px rgba(212, 175, 55, 0.1);
}

.calendar-weekday {
    background: linear-gradient(135deg, #fffbf3 0%, #fff8eb 100%);
    padding: 6px;
    text-align: center;
    font-weight: 700;
    color: #d4af37;
    font-size: 13px;
    letter-spacing: 0.5px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 2px solid #d4af37;
}

.calendar-weekday:first-child {
    color: #e74c3c;
    border-bottom-color: #e74c3c;
}

.calendar-weekday:last-child {
    color: #3498db;
    border-bottom-color: #3498db;
}

#calendarDays {
    display: contents;
}

.calendar-day {
    background: white;
    height: 100px;
    max-height: 100px;
    padding: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.calendar-day:hover {
    background: linear-gradient(135deg, #fffbf3 0%, #fff8eb 100%);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
    z-index: 1;
}

.calendar-day.selected {
    background: linear-gradient(135deg, #fff8eb 0%, #fef5e7 100%);
    box-shadow: inset 0 0 0 2px #d4af37, 0 4px 12px rgba(212, 175, 55, 0.2);
}

.calendar-day.today {
    /* 박스 표시 제거 - 동그라미만 표시 */
}

.calendar-day.today .day-number {
    background: linear-gradient(135deg, #d4af37 0%, #f4c542 100%);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.calendar-day.other-month {
    background: #fafafa;
    cursor: default;
    opacity: 0.5;
}

.calendar-day.other-month .day-number {
    color: #c0c0c0;
}

.calendar-day.other-month:hover {
    transform: none;
    background: #fafafa;
    box-shadow: none;
}

.day-number {
    font-size: 16px;
    font-weight: 700;
    color: #2c2c2c;
    margin-bottom: 6px;
    line-height: 1;
}

.day-events {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.event-preview {
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 3px;
    color: #333;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: all 0.2s;
}

.event-preview:hover {
    opacity: 0.85;
    transform: translateX(2px);
}

/* 경조사 종류별 색상 */
.event-preview-결혼 {
    background: #fce4ec;
    color: #c2185b;
    border-left: 3px solid #e91e63;
}

.event-preview-돌잔치 {
    background: #fff3e0;
    color: #e65100;
    border-left: 3px solid #ff9800;
}

.event-preview-장례 {
    background: #eceff1;
    color: #37474f;
    border-left: 3px solid #607d8b;
}

.event-preview-기타 {
    background: #f3e5f5;
    color: #6a1b9a;
    border-left: 3px solid #9c27b0;
}

/* 경조사 타입별 배경색 (데스크톱) */
.event-preview.event-결혼식 {
    background: #fce4ec;
    color: #c2185b;
    border-left: 3px solid #e91e63;
}

.event-preview.event-장례식 {
    background: #eceff1;
    color: #37474f;
    border-left: 3px solid #607d8b;
}

.event-preview.event-생일 {
    background: #fff9e6;
    color: #ff6f00;
    border-left: 3px solid #ffc107;
}

.event-preview.event-돌잔치 {
    background: #fff3e0;
    color: #e65100;
    border-left: 3px solid #ff9800;
}

.event-preview.event-기타 {
    background: #f3e5f5;
    color: #6a1b9a;
    border-left: 3px solid #9c27b0;
}

/* 생일 */
.event-preview.event-birthday {
    background: #fce4ec;
    color: #c2185b;
    border-left: 3px solid #ff6b9d;
}

/* 내가 낸 부조금 */
.event-preview.event-my-attendance {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 3px solid #4caf50;
}

/* 모바일에서는 배경색 제거 */
@media (max-width: 768px) {
    .event-preview {
        background: none !important;
        color: inherit !important;
        border: none !important;
        padding: 1px;
        font-size: 14px;
    }
}

.event-more {
    font-size: 10px;
    color: #999;
    text-align: center;
    margin-top: 2px;
}

.day-add-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #d4af37 0%, #f4c542 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    z-index: 10;
}

.day-add-btn:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

.selected-date-section {
    background: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    min-height: auto;
    border: 1px solid #e8e8e8;
}

.calendar-right-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #fef5e7;
    gap: 12px;
    flex-wrap: wrap;
}

.calendar-right-header h3 {
    color: #2c2c2c;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.btn-add-attendance {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(39, 174, 96, 0.3);
    white-space: nowrap;
}

.btn-add-attendance:hover {
    background: linear-gradient(135deg, #229954 0%, #27ae60 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
}

.btn-add-attendance:active {
    transform: translateY(0);
}

.date-input {
    flex: 1;
    padding: 10px 16px;
    border: 2px solid #fef5e7;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #2c2c2c;
    background: white;
    transition: all 0.3s;
    cursor: pointer;
}

.date-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.selected-date-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8e8e8;
    gap: 8px;
    flex-wrap: wrap;
}

.selected-date-section h3 {
    color: #2c2c2c;
    margin: 0;
    font-size: 17px;
    font-weight: 700;
}

.btn-add-event-calendar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #d4af37 0%, #f4c542 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
    white-space: nowrap;
}

.btn-add-event-calendar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #f4c542 0%, #d4af37 100%);
}

.btn-add-event-calendar span:first-child {
    font-size: 16px;
    font-weight: 700;
}

.date-events-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
}

.no-events {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-size: 14px;
}

.event-item {
    background: white;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #e8e8e8;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-item:hover {
    border-color: #d4af37;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.event-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.event-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

/* 경조사 종류별 배지 색상 */
.event-badge-결혼식 {
    background: #fce4ec;
    color: #c2185b;
}

.event-badge-생일 {
    background: #fff9e6;
    color: #ff6f00;
}

.event-badge-돌잔치 {
    background: #fff3e0;
    color: #e65100;
}

.event-badge-장례식 {
    background: #eceff1;
    color: #37474f;
}

.event-badge-기타 {
    background: #f3e5f5;
    color: #6a1b9a;
}

.event-badge-birthday {
    background: #fce4ec;
    color: #c2185b;
}

.event-badge-my-attendance {
    background: #e8f5e9;
    color: #2e7d32;
}

.event-title {
    font-size: 15px;
    font-weight: 600;
    color: #2c2c2c;
    flex: 1;
    line-height: 1.4;
}

.event-amount {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #d4af37;
    margin: 4px 0 0 0;
}

.event-location {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.event-age {
    font-size: 13px;
    color: #666;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.event-contribution {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    padding: 0;
    background: none;
    border-radius: 0;
    border-left: none;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 0;
}

.event-memo {
    font-size: 13px;
    color: #666;
    margin: 0;
    padding: 0;
    background: none;
    border-radius: 0;
}

.btn-view-event {
    padding: 8px 14px;
    background: white;
    color: #d4af37;
    border: 1px solid #d4af37;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
    transition: all 0.2s ease;
    align-self: flex-start;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
    width: 100%;
}

.btn-view-event:hover {
    background: #d4af37;
    color: white;
}

.event-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.btn-edit-event,
.btn-delete-event,
.btn-edit-attendance,
.btn-delete-attendance {
    padding: 6px 12px;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
    background: white;
}

.btn-edit-event,
.btn-edit-attendance {
    color: #666;
}

.btn-edit-event:hover,
.btn-edit-attendance:hover {
    border-color: #d4af37;
    color: #d4af37;
}

.btn-delete-event,
.btn-delete-attendance {
    color: #666;
}

.btn-delete-event:hover,
.btn-delete-attendance:hover {
    border-color: #e53e3e;
    color: #e53e3e;
}

.btn-add-schedule {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #d4af37 0%, #f4c542 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-add-schedule:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* 캘린더 반응형 */
@media (max-width: 1200px) {
    .calendar-layout {
        max-width: 100%;
        padding: 4px 8px;
    }
}

@media (max-width: 1024px) {
    .calendar-layout {
        padding: 4px 6px;
        gap: 4px;
    }

    .calendar-container {
        padding: 8px;
    }

    .calendar-header h2 {
        font-size: 24px;
    }

    .btn-today {
        padding: 8px 20px;
        font-size: 13px;
    }

    .calendar-weekday {
        padding: 6px;
        font-size: 12px;
    }

    .calendar-grid {
        grid-auto-rows: minmax(100px, 100px);
    }

    .calendar-day {
        height: 100px;
        max-height: 100px;
        padding: 6px;
    }

    .date-events-list {
        gap: 10px;
    }

    .selected-date-section {
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .calendar-layout {
        padding: 4px;
        gap: 4px;
    }

    .calendar-container {
        padding: 6px;
    }

    .calendar-header {
        flex-wrap: wrap;
        gap: 6px;
        margin-bottom: 4px;
    }

    .calendar-header h2 {
        font-size: 20px;
        width: 100%;
        order: -1;
        margin-bottom: 4px;
    }

    .calendar-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .btn-today {
        padding: 8px 16px;
        font-size: 12px;
        margin: 0;
        flex: 1;
    }

    .calendar-weekday {
        padding: 4px;
        font-size: 11px;
    }

    .calendar-grid {
        gap: 1px;
        grid-auto-rows: minmax(85px, 85px);
    }

    .calendar-day {
        height: 85px;
        max-height: 85px;
        padding: 5px;
    }

    .day-number {
        font-size: 12px;
    }

    .calendar-day.today .day-number {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .event-preview {
        font-size: 9px;
        padding: 2px 3px;
    }

    .date-input {
        flex: 1;
        font-size: 13px;
        padding: 8px 12px;
    }

    .selected-date-section {
        padding: 10px;
    }

    .selected-date-section h3 {
        font-size: 15px;
    }

    .date-events-list {
        gap: 8px;
    }

    .event-item {
        padding: 10px;
        gap: 6px;
    }

    .event-title {
        font-size: 14px;
    }
}

/* 관리자 & 업체 대시보드 스타일 */
.admin-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.stat-icon {
    font-size: 48px;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    flex-shrink: 0;
}

.stat-info h3 {
    font-size: 14px;
    color: #999;
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.admin-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.chart-card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

.chart-card canvas {
    max-height: 300px;
}

.chart-card-wide {
    grid-column: 1 / -1;
}

.admin-table-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.admin-table-section h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header-flex h3 {
    margin: 0;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: #f7fafc;
}

.admin-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
}

.admin-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
}

.admin-table tbody tr:hover {
    background: #f9f9f9;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.badge-개인 {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-업체 {
    background: #fff3e0;
    color: #f57c00;
}

.badge-active {
    background: #e8f5e9;
    color: #43a047;
}

.badge-inactive {
    background: #fce4ec;
    color: #e91e63;
}

.btn-small {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background: #667eea;
    color: white;
    cursor: pointer;
    font-size: 13px;
    margin-right: 5px;
    transition: all 0.2s;
}

.btn-small:hover {
    background: #5568d3;
}

.btn-small.btn-danger {
    background: #f56565;
}

.btn-small.btn-danger:hover {
    background: #e53e3e;
}

/* 반응형 */
@media (max-width: 1024px) {
    .admin-charts-grid {
        grid-template-columns: 1fr;
    }

    .chart-card-wide {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-icon {
        font-size: 36px;
        width: 60px;
        height: 60px;
    }

    .stat-value {
        font-size: 24px;
    }

    .admin-table {
        font-size: 14px;
    }

    .admin-table th,
    .admin-table td {
        padding: 8px;
    }
}
/* 마이페이지 스타일 */
.mypage-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 900px;
}

.mypage-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mypage-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.mypage-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item .info-label {
    font-size: 13px;
    color: #999;
    font-weight: 500;
}

.info-item .info-value {
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.mypage-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mypage-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-action {
    flex: 1;
    min-width: 200px;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary {
    background: #667eea;
    color: white;
}

.btn-secondary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-danger {
    background: #f56565;
    color: white;
}

.btn-danger:hover {
    background: #e53e3e;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(245, 101, 101, 0.4);
}

/* 마이페이지 반응형 */
@media (max-width: 768px) {
    .mypage-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .mypage-actions {
        flex-direction: column;
    }

    .btn-action {
        min-width: 100%;
    }

    .mypage-card {
        padding: 20px;
    }
}

/* 마이페이지 카드 헤더 */
.mypage-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.mypage-card-header .mypage-card-title {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.mypage-header-actions {
    display: flex;
    gap: 10px;
}

.btn-small-action {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-small-action.btn-secondary {
    background: #667eea;
    color: white;
}

.btn-small-action.btn-secondary:hover {
    background: #5568d3;
}

.btn-small-action.btn-danger {
    background: #f56565;
    color: white;
}

.btn-small-action.btn-danger:hover {
    background: #e53e3e;
}

/* 마이페이지 반응형 */
@media (max-width: 768px) {
    .mypage-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .mypage-header-actions {
        width: 100%;
    }

    .btn-small-action {
        flex: 1;
    }
}

/* 참석자 관리 페이지 스타일 */
/* 페이지 헤더 */
.attendee-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f5ebe0 0%, #e8d5c4 100%);
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(212, 175, 118, 0.25);
    position: relative;
    overflow: hidden;
}

.attendee-page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

/* 참석자 페이지 상단 광고 */
.attendees-top-ad {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 8px;
    border: 1px solid #e8e8e8;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.attendee-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.attendee-header-icon {
    font-size: 56px;
    line-height: 1;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.attendee-header-text h1 {
    font-size: 28px;
    font-weight: 700;
    color: #5d4e37;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.attendee-header-text p {
    font-size: 15px;
    color: #8b7355;
    margin: 0;
    font-weight: 500;
}

.attendee-stats-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 14px 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    min-width: 140px;
}

.stat-item {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.stat-value {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #d4af76 0%, #c19a6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 18px;
    color: #666;
    font-weight: 600;
}

/* 필터 카드 */
.attendee-filter-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 12px;
    border: 1px solid #f0f0f0;
}

.filter-row {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 16px;
    margin-bottom: 12px;
}

.filter-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-col-wide {
    grid-column: span 1;
}

.filter-label-new {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.filter-icon-new {
    font-size: 16px;
}

.filter-select-new {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-select-new:hover {
    border-color: #d4af76;
}

.filter-select-new:focus {
    outline: none;
    border-color: #d4af76;
    box-shadow: 0 0 0 3px rgba(212, 175, 118, 0.1);
}

/* 관계 칩 */
.relationship-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.relationship-chip {
    padding: 10px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.relationship-chip:hover {
    border-color: #d4af76;
    color: #d4af76;
    transform: translateY(-1px);
}

.relationship-chip.active {
    background: linear-gradient(135deg, #d4af76 0%, #c19a6b 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(212, 175, 118, 0.3);
}

/* 검색바 */
.search-bar-new {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.2s;
}

.search-bar-new:focus-within {
    background: white;
    border-color: #d4af76;
    box-shadow: 0 0 0 3px rgba(212, 175, 118, 0.1);
}

.search-icon {
    font-size: 18px;
    line-height: 1;
}

.search-bar-new input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    outline: none;
}

.search-bar-new input::placeholder {
    color: #999;
}

/* 테이블 카드 */
.attendee-table-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.attendee-summary-banner {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: 16px;
    padding: 14px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
}

/* 경조사 필터 섹션 */
.event-filter-section {
    background: white;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 16px;
}

.event-filter-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px 0;
}

.event-filter-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.event-filter-item {
    padding: 8px 16px;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
}

.event-filter-item:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.event-filter-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.summary-banner-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.summary-banner-emoji {
    font-size: 36px;
    line-height: 1;
}

.summary-banner-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-banner-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.summary-banner-value {
    font-size: 28px;
    color: #333;
    font-weight: 700;
}

.attendee-list-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.attendee-list-card h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: -5px 0 20px 0;
}

.search-bar {
    margin-bottom: 15px;
}

.search-bar input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.search-bar input:focus {
    outline: none;
    border-color: #667eea;
}

.attendee-row {
    cursor: pointer;
    transition: all 0.2s;
}

.attendee-row:hover {
    background: #f9f9f9;
}

.attendee-row.selected {
    background: #e3f2fd;
}

.attendee-row.selected:hover {
    background: #bbdefb;
}

.status-attended {
    color: #4caf50;
    font-weight: 700;
    font-size: 16px;
}

.status-not-attended {
    color: #f44336;
    font-weight: 700;
    font-size: 16px;
}

.no-selection-message {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 15px;
}

.no-selection-message p {
    margin: 0;
}

/* 참석자 관리 반응형 */
@media (max-width: 768px) {
    .attendee-summary-banner {
        padding: 15px 20px;
    }

    .summary-banner-emoji {
        font-size: 28px;
    }

    .summary-banner-value {
        font-size: 24px;
    }

    .detail-two-column {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .detail-left {
        position: static;
        order: 1;
    }

    .detail-right {
        order: 2;
    }
}


/* 참석자 검색 자동완성 드롭다운 */
.contact-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: -1px;
}

.contact-dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.contact-dropdown-item:hover {
    background: #f8f8f8;
}

.contact-dropdown-item:last-child {
    border-bottom: none;
}

.contact-item-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.contact-item-info {
    font-size: 12px;
    color: #666;
}

.contact-dropdown-new {
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0 0 8px 8px;
}

.contact-dropdown-new:hover {
    opacity: 0.9;
}

.contact-dropdown-empty {
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}



/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #333;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
}

/* 작은 버튼 스타일 */
.btn-edit-small,
.btn-delete-small,
.btn-view-small {
    padding: 4px 8px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-edit-small {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-edit-small:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-delete-small {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
}

.btn-delete-small:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-view-small {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
}

.btn-view-small:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* 관계 버튼 스타일 */
.relationship-btn {
    padding: 10px 18px;
    font-size: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.relationship-btn:hover {
    border-color: #d4af76;
    color: #d4af76;
    background: #faf8f5;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(212, 175, 118, 0.2);
}

.relationship-btn.active {
    background: linear-gradient(135deg, #d4af76 0%, #c19a6b 100%);
    border-color: #d4af76;
    color: white;
    box-shadow: 0 2px 8px rgba(212, 175, 118, 0.3);
}

.relationship-btn.add-btn {
    background: white;
    border: 2px dashed #d0d0d0;
    color: #999;
    font-size: 20px;
    font-weight: 400;
    padding: 10px 14px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.relationship-btn.add-btn:hover {
    border-color: #d4af76;
    color: #d4af76;
    background: #faf8f5;
    border-style: solid;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(212, 175, 118, 0.2);
}

/* 관계 관리 모달 스타일 */
.relationship-modal-content {
    border-radius: 16px;
    overflow: hidden;
}

.relationship-modal-content .modal-header {
    background: linear-gradient(135deg, #f5ebe0 0%, #e8d5c4 100%);
    color: #5d4e37;
    padding: 24px;
}

.relationship-modal-content .modal-header h2 {
    color: #5d4e37;
}

.relationship-modal-content .modal-header p {
    color: #8b7355;
}

.relationship-modal-content .modal-close {
    color: #5d4e37;
    opacity: 0.8;
}

.relationship-modal-content .modal-close:hover {
    opacity: 1;
    background: rgba(93, 78, 55, 0.1);
}

.relationship-add-section {
    padding: 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.relationship-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.relationship-input-wrapper input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.2s;
    background: white;
}

.relationship-input-wrapper input:focus {
    border-color: #d4af76;
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 118, 0.1);
}

.relationship-add-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #d4af76 0%, #c19a6b 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.relationship-add-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 118, 0.4);
}

.relationship-add-btn span {
    font-size: 18px;
    font-weight: 700;
}

.relationship-list-section {
    padding: 20px 24px 24px;
    background: white;
}

.relationship-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.relationship-count-badge {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 20px;
}

.relationship-count-badge span {
    color: #667eea;
    font-weight: 700;
}

.relationship-items-container {
    max-height: 350px;
    overflow-y: auto;
    padding-right: 4px;
}

.relationship-items-container::-webkit-scrollbar {
    width: 6px;
}

.relationship-items-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.relationship-items-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.relationship-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    margin-bottom: 8px;
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    transition: all 0.2s;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.relationship-item:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateX(4px);
}

.relationship-item-name {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.relationship-item-name::before {
    content: '•';
    color: #d4af76;
    font-size: 20px;
}

.relationship-item-delete {
    padding: 6px 14px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.8;
}

.relationship-item-delete:hover {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(238, 90, 111, 0.3);
}

.relationship-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.relationship-empty::before {
    content: '📋';
    display: block;
    font-size: 48px;
    margin-bottom: 12px;
}

/* 참석자 수정 모달 스타일 */
.edit-contact-modal {
    border-radius: 16px;
    overflow: hidden;
    max-height: 90vh;
}

.edit-contact-modal .modal-header {
    background: linear-gradient(135deg, #f5ebe0 0%, #e8d5c4 100%);
    color: #5d4e37;
    padding: 24px;
}

.edit-contact-modal .modal-header h2 {
    color: #5d4e37;
}

.edit-contact-modal .modal-header p {
    color: #8b7355;
}

.edit-contact-modal .modal-close {
    color: #5d4e37;
    opacity: 0.8;
}

.edit-contact-modal .modal-close:hover {
    opacity: 1;
    background: rgba(93, 78, 55, 0.1);
}

.edit-contact-body {
    padding: 0;
    overflow-y: auto;
    max-height: calc(90vh - 100px);
}

.edit-contact-form {
    padding: 24px;
}

.edit-section {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.2s;
}

.edit-section:hover {
    border-color: #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.edit-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.edit-section-icon {
    font-size: 18px;
}

.edit-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.edit-contact-form .form-group {
    margin-bottom: 16px;
}

.edit-contact-form .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
}

.edit-contact-form .form-group input,
.edit-contact-form .form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    background: #f8f9fa;
}

.edit-contact-form .form-group input:focus,
.edit-contact-form .form-group textarea:focus {
    border-color: #d4af76;
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(212, 175, 118, 0.1);
}

.edit-contact-form .form-group textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.edit-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    margin-top: 24px;
}

.edit-btn-cancel {
    padding: 12px 28px;
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-btn-cancel:hover {
    background: #f8f9fa;
    border-color: #ccc;
    transform: translateY(-1px);
}

.edit-btn-save {
    padding: 12px 28px;
    background: linear-gradient(135deg, #d4af76 0%, #c19a6b 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.edit-btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 118, 0.4);
}

.edit-btn-save span {
    font-size: 16px;
}

/* 참석 이력 스타일 */
.contact-history-container {
    margin-top: 8px;
}

/* 카드 컨테이너 */
.history-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

/* 개별 카드 */
.history-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
}

.history-card:hover {
    border-color: #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* 카드 헤더 */
.history-card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 2px solid #e0e0e0;
}

.history-event-name {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 카드 바디 */
.history-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.history-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.history-value {
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.history-amount {
    color: #d4af76;
    font-size: 15px;
}

/* 상태 배지 */
.history-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-attended {
    background: linear-gradient(135deg, #d4f4dd 0%, #c3f0d0 100%);
    color: #2d8659;
}

.status-absent {
    background: linear-gradient(135deg, #ffe5e5 0%, #ffd4d4 100%);
    color: #c53030;
}

/* 빈 상태 */
.history-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.history-empty span {
    display: block;
    margin-bottom: 12px;
}

.history-empty p {
    margin: 0;
    font-size: 14px;
    color: #999;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .history-cards-container {
        grid-template-columns: 1fr;
    }
}

/* 반응형 - 모바일 */
@media (max-width: 768px) {
    .edit-form-grid {
        grid-template-columns: 1fr;
    }

    .edit-contact-modal {
        max-height: 95vh;
    }

    .edit-contact-body {
        max-height: calc(95vh - 100px);
    }

    .edit-modal-actions {
        flex-direction: column-reverse;
    }

    .edit-btn-cancel,
    .edit-btn-save {
        width: 100%;
        justify-content: center;
    }
}

/* 필터 섹션 스타일 */
.filter-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 2px solid #e9ecef;
}

.filter-group {
    margin-bottom: 16px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 10px;
}

.filter-icon {
    font-size: 16px;
}

.filter-select {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.filter-select:hover {
    border-color: #667eea;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.relationship-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.relationship-filter-btn {
    padding: 8px 16px;
    font-size: 13px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background: white;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.relationship-filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
    background: #f8f9ff;
    transform: translateY(-1px);
}

.relationship-filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 참석자 관리 페이지 - 클릭 가능한 행 */
.contact-row {
    transition: all 0.2s;
}

.contact-row:hover {
    background: #f8f9ff;
}

.contact-clickable {
    cursor: pointer;
}

.contact-delete-cell {
    text-align: center;
    width: 50px;
    padding: 8px 12px !important;
}

.btn-delete-x {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f5f5f5;
    color: #999;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.btn-delete-x:hover {
    background: #fee;
    color: #e53e3e;
    transform: scale(1.1);
}

/* 반응형 - 필터 섹션 */
@media (max-width: 768px) {
    /* 헤더 */
    .attendee-page-header {
        flex-direction: column;
        align-items: stretch;
        padding: 24px 20px;
    }

    .attendee-page-header::before {
        width: 300px;
        height: 300px;
    }

    .attendee-header-content {
        gap: 16px;
    }

    .attendee-header-icon {
        font-size: 44px;
    }

    .attendee-header-text h1 {
        font-size: 24px;
    }

    .attendee-header-text p {
        font-size: 14px;
    }

    .attendee-stats-card {
        padding: 16px 24px;
    }

    .stat-value {
        font-size: 32px;
    }

    .stat-label {
        font-size: 16px;
    }

    /* 필터 */
    .attendee-filter-card {
        padding: 20px;
    }

    .filter-row {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 16px;
    }

    .filter-section {
        padding: 16px;
    }

    .relationship-filter-buttons {
        gap: 6px;
    }

    .relationship-filter-btn {
        font-size: 12px;
        padding: 6px 12px;
    }

    .relationship-filter-chips {
        gap: 6px;
    }

    .relationship-chip {
        font-size: 13px;
        padding: 8px 14px;
    }

    /* 검색바 */
    .search-bar-new {
        padding: 12px 16px;
    }

    .search-bar-new input {
        font-size: 14px;
    }

    /* 테이블 */
    .attendee-table th {
        padding: 14px 12px;
        font-size: 12px;
    }

    .attendee-table td {
        padding: 14px 12px;
        font-size: 13px;
    }

    .th-icon {
        display: none;
    }

    /* 참석자 관리 페이지 테이블 - 모바일에서 전화번호와 관계 숨김 */
    .attendee-management-section .attendee-table th:nth-child(2),
    .attendee-management-section .attendee-table td:nth-child(2),
    .attendee-management-section .attendee-table th:nth-child(3),
    .attendee-management-section .attendee-table td:nth-child(3) {
        display: none;
    }
}

/* ===========================
   경조사 페이지 스타일
   =========================== */

/* 페이지 헤더 */
.events-page-header {
    background: linear-gradient(135deg, #fffbf3 0%, #fff8eb 50%, #fef5e7 100%);
    border-radius: 20px;
    padding: 20px 24px;
    margin-bottom: 8px;
    box-shadow: 0 2px 12px rgba(139, 115, 85, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

/* 경조사 페이지 상단 광고 */
.events-top-ad {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 8px;
    border: 1px solid #e8e8e8;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.events-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.events-header-icon {
    font-size: 48px;
    line-height: 1;
    flex-shrink: 0;
}

.events-header-text h1 {
    font-size: 28px;
    font-weight: 700;
    color: #5d4e37;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.events-header-text p {
    font-size: 14px;
    color: #8b7355;
    font-weight: 400;
    margin: 0;
}

.btn-add-event {
    background: linear-gradient(135deg, #d4af37 0%, #f4c542 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    white-space: nowrap;
}

.btn-add-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #c9a332 0%, #e9ba3d 100%);
}

.btn-add-event .btn-icon {
    font-size: 20px;
    font-weight: 700;
}

/* 통계 카드 섹션 */
.events-stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.events-stat-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.events-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.stat-card-primary {
    border-color: rgba(212, 175, 55, 0.2);
}

.stat-card-primary:hover {
    border-color: rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #fffbf3 0%, white 100%);
}

.stat-card-secondary {
    border-color: rgba(103, 126, 234, 0.2);
}

.stat-card-secondary:hover {
    border-color: rgba(103, 126, 234, 0.4);
    background: linear-gradient(135deg, #f0f3ff 0%, white 100%);
}

.stat-card-accent {
    border-color: rgba(255, 107, 107, 0.2);
}

.stat-card-accent:hover {
    border-color: rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #fff5f5 0%, white 100%);
}

.stat-card-icon {
    font-size: 42px;
    flex-shrink: 0;
}

.stat-card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-card-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.stat-card-value {
    font-size: 26px;
    font-weight: 700;
    color: #333;
}

/* 필터 섹션 */
.events-filter-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.events-filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 10px 18px;
    border: 2px solid #e8e8e8;
    background: white;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    color: #666;
}

.filter-chip:hover {
    border-color: #d4af37;
    background: #fffbf3;
    transform: translateY(-2px);
}

.filter-chip.active {
    background: linear-gradient(135deg, #d4af37 0%, #f4c542 100%);
    border-color: #d4af37;
    color: white;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.filter-chip-icon {
    font-size: 16px;
}

.events-count {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    padding: 10px 18px;
    background: #fafafa;
    border-radius: 10px;
}

.events-count span {
    color: #d4af37;
    font-weight: 700;
    font-size: 16px;
}

.ranking-card-new {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.ranking-card-new:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.ranking-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f5f5f5;
}

.ranking-icon {
    font-size: 24px;
}

.ranking-card-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ranking-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #fafafa;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.ranking-item:hover {
    background: #f5f5f5;
    transform: translateX(4px);
}

.ranking-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ranking-rank {
    font-size: 16px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

.ranking-rank.rank-1 {
    color: #d4af37;
}

.ranking-rank.rank-2 {
    color: #c0c0c0;
}

.ranking-rank.rank-3 {
    color: #cd7f32;
}

.ranking-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.ranking-value {
    font-size: 14px;
    font-weight: 700;
    color: #d4af37;
}

.ranking-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

/* 경조사 리스트 카드 */
.events-list-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.events-list-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f5f5f5;
}

.events-list-header h2 {
    font-size: 19px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* 경조사 그리드 */
.events-grid {
    display: grid;
    gap: 8px;
}

/* PC: 간격 고정, 카드 크기 자동 계산 */
@media (min-width: 1025px) {
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

/* 태블릿: 2열 고정, 가로 꽉참 */
@media (min-width: 769px) and (max-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 모바일: 1열 고정, 가로 꽉참 */
@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
}

/* 경조사 카드 - 개선된 버전 */
.event-card {
    background: white;
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
    cursor: pointer;
    border: 1px solid #e8e8e8;
    position: relative;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: #d4af37;
}

.event-card-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

/* 경조사 카드 삭제 버튼 */
.btn-delete-event {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 20px;
    color: #999;
    transition: all 0.2s ease;
    padding: 0;
    z-index: 10;
    opacity: 0;
}

.event-card:hover .btn-delete-event {
    opacity: 1;
}

.btn-delete-event:hover {
    background: #ffebee;
    color: #f44336;
    border-color: #f44336;
}

.event-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.event-title-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.event-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0;
    line-height: 1.3;
}

.event-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-date-simple {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.event-type-badge {
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.event-type-결혼식 {
    background: linear-gradient(135deg, #fff0f5 0%, #ffe4e6 100%);
    color: #e91e63;
}

.event-type-장례식 {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    color: #666;
}

.event-type-생일 {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    color: #ff9800;
}

.event-type-돌잔치 {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #4caf50;
}

.event-type-기타 {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    color: #9c27b0;
}

.event-amount-section {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.amount-value {
    font-size: 20px;
    font-weight: 700;
    color: #d4af37;
    line-height: 1;
}

.amount-unit {
    font-size: 13px;
    font-weight: 600;
    color: #d4af37;
}

.event-card-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.event-info-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 6px 8px;
    background: #fafafa;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.event-info-item:hover {
    background: #f0f0f0;
}

.event-info-location {
    grid-column: 1 / -1;
}

.info-label {
    font-size: 10px;
    color: #999;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.info-value {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

/* 추가 모달 스타일 */
.add-event-modal .modal-body {
    max-height: calc(90vh - 140px);
    overflow-y: auto;
    padding: 16px !important;
}

.add-event-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.add-event-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.add-event-form label {
    font-size: 13px;
    font-weight: 600;
    color: #5d4e37;
    display: flex;
    align-items: center;
    gap: 4px;
}

.add-event-form .required {
    color: #e53e3e;
}

.add-event-form input,
.add-event-form select,
.add-event-form textarea {
    padding: 10px 12px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: white;
}

.add-event-form input:focus,
.add-event-form select:focus,
.add-event-form textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.add-event-form textarea {
    resize: vertical;
    min-height: 60px;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* 모달 액션 버튼 */
.modal-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.btn-modal-cancel {
    flex: 1;
    padding: 12px;
    border: 2px solid #e8e8e8;
    background: white;
    color: #666;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-modal-cancel:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.btn-modal-submit {
    flex: 1;
    padding: 12px;
    border: none;
    background: linear-gradient(135deg, #d4af37 0%, #f4c542 100%);
    color: white;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.btn-modal-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* 반응형 스타일 - 경조사 페이지 */
@media (max-width: 768px) {
    .events-page-header {
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        gap: 16px;
    }

    .events-header-content {
        gap: 16px;
    }

    .events-header-icon {
        font-size: 36px;
    }

    .events-header-text h1 {
        font-size: 22px;
    }

    .events-header-text p {
        font-size: 13px;
    }

    .btn-add-event {
        width: 100%;
        justify-content: center;
    }

    .events-filter-section {
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
    }

    .events-filter-group {
        width: 100%;
        gap: 8px;
    }

    .filter-chip {
        flex: 1 1 calc(33.333% - 6px);
        min-width: 0;
        justify-content: center;
        padding: 8px 6px;
        font-size: 12px;
        gap: 4px;
    }

    .filter-chip span:last-child {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .filter-chip-icon {
        font-size: 14px;
        flex-shrink: 0;
    }

    .events-count {
        width: 100%;
        text-align: center;
        margin-top: 8px;
        font-size: 13px;
    }

    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .event-card {
        padding: 12px;
    }

    .event-card-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .event-title {
        font-size: 15px;
    }

    .amount-value {
        font-size: 18px;
    }

    .event-card-info {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }

    .event-info-item {
        padding: 5px 6px;
    }

    .info-label {
        font-size: 9px;
    }

    .info-value {
        font-size: 11px;
    }

    .event-date-simple {
        font-size: 11px;
    }
}

/* ===========================
   마이페이지 스타일
   =========================== */

/* 페이지 헤더 */
.mypage-page-header {
    background: linear-gradient(135deg, #fffbf3 0%, #fff8eb 50%, #fef5e7 100%);
    border-radius: 20px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(139, 115, 85, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.mypage-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mypage-header-icon {
    font-size: 48px;
    line-height: 1;
    flex-shrink: 0;
}

.mypage-header-text h1 {
    font-size: 28px;
    font-weight: 700;
    color: #5d4e37;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.mypage-header-text p {
    font-size: 14px;
    color: #8b7355;
    font-weight: 400;
    margin: 0;
}

/* 마이페이지 섹션 */
.mypage-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 카드 스타일 */
.mypage-card-new {
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.mypage-card-new:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.mypage-card-header-new {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f5f5f5;
    flex-wrap: wrap;
    gap: 12px;
}

.mypage-card-title-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mypage-card-icon {
    font-size: 24px;
}

.mypage-card-title-new {
    font-size: 19px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.mypage-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-mypage-action {
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-mypage-action .btn-icon-text {
    font-size: 16px;
}

.btn-edit {
    background: linear-gradient(135deg, #d4af37 0%, #f4c542 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.btn-edit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.btn-delete {
    background: white;
    color: #e53e3e;
    border: 2px solid #fee;
}

.btn-delete:hover {
    background: #fee;
    border-color: #e53e3e;
    transform: translateY(-2px);
}

/* 정보 그리드 */
.mypage-info-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.info-item-new {
    background: #fafafa;
    border-radius: 12px;
    padding: 12px 14px;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.info-item-new:hover {
    background: #f5f5f5;
    border-color: rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.info-item-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.info-icon {
    font-size: 18px;
    opacity: 0.8;
}

.info-label {
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

.info-value {
    font-size: 15px;
    color: #333;
    font-weight: 600;
    display: block;
    word-break: break-word;
}

/* 비밀번호 변경 폼 */
.mypage-form-new {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mypage-form-new .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mypage-form-new label {
    font-size: 14px;
    font-weight: 600;
    color: #5d4e37;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mypage-form-new .required {
    color: #e53e3e;
}

.mypage-form-new input {
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: white;
}

.mypage-form-new input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.btn-password-submit {
    padding: 14px;
    border: none;
    background: linear-gradient(135deg, #d4af37 0%, #f4c542 100%);
    color: white;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
    margin-top: 8px;
}

.btn-password-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* 프로필 수정 모달 */
.edit-profile-modal .modal-body {
    max-height: calc(90vh - 140px);
    overflow-y: auto;
}

.edit-profile-form {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.edit-profile-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.edit-profile-form label {
    font-size: 14px;
    font-weight: 600;
    color: #5d4e37;
    display: flex;
    align-items: center;
    gap: 4px;
}

.edit-profile-form .required {
    color: #e53e3e;
}

.edit-profile-form input,
.edit-profile-form select {
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: white;
}

.edit-profile-form input:focus,
.edit-profile-form select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* 반응형 스타일 - 마이페이지 */
@media (max-width: 768px) {
    .mypage-page-header {
        padding: 24px;
    }

    .mypage-header-content {
        gap: 16px;
    }

    .mypage-header-icon {
        font-size: 36px;
    }

    .mypage-header-text h1 {
        font-size: 22px;
    }

    .mypage-header-text p {
        font-size: 13px;
    }

    .mypage-card-new {
        padding: 20px;
    }

    .mypage-card-header-new {
        flex-direction: column;
        align-items: flex-start;
    }

    .mypage-header-actions {
        width: 100%;
    }

    .btn-mypage-action {
        flex: 1;
        justify-content: center;
    }

    .mypage-info-grid-new {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   대시보드 스타일
   =========================== */

/* 웰컴 헤더 */
.dashboard-welcome {
    background: linear-gradient(135deg, #fffbf3 0%, #fff8eb 50%, #fef5e7 100%);
    border-radius: 20px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(139, 115, 85, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(212, 175, 55, 0.15);
}

.welcome-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.welcome-icon {
    font-size: 48px;
    line-height: 1;
}

.welcome-text h1 {
    font-size: 26px;
    font-weight: 700;
    color: #5d4e37;
    margin-bottom: 6px;
}

.welcome-text p {
    font-size: 14px;
    color: #8b7355;
    margin: 0;
}

.welcome-actions {
    display: flex;
    gap: 12px;
}

.btn-quick-action {
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-action-primary {
    background: linear-gradient(135deg, #d4af37 0%, #f4c542 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-action-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-action-secondary {
    background: white;
    color: #d4af37;
    border: 2px solid #d4af37;
}

.btn-action-secondary:hover {
    background: #fffbf3;
    transform: translateY(-2px);
}

.action-icon {
    font-size: 18px;
}

/* 대시보드 상단 광고 */
.dashboard-top-ad {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 8px;
    border: 1px solid #e8e8e8;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 통계 카드 그리드 */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.dashboard-stat-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
        "icon value"
        "icon footer";
    gap: 0 12px;
    align-items: center;
}

.dashboard-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-card-gold {
    border-color: rgba(212, 175, 55, 0.2);
}

.stat-card-gold:hover {
    border-color: rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #fffbf3 0%, white 100%);
}

.stat-card-blue {
    border-color: rgba(103, 126, 234, 0.2);
}

.stat-card-blue:hover {
    border-color: rgba(103, 126, 234, 0.4);
    background: linear-gradient(135deg, #f0f3ff 0%, white 100%);
}

.stat-card-purple {
    border-color: rgba(156, 39, 176, 0.2);
}

.stat-card-purple:hover {
    border-color: rgba(156, 39, 176, 0.4);
    background: linear-gradient(135deg, #f3e5f5 0%, white 100%);
}

.stat-card-green {
    border-color: rgba(76, 175, 80, 0.2);
}

.stat-card-green:hover {
    border-color: rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #e8f5e9 0%, white 100%);
}

.stat-card-header {
    grid-area: icon;
    display: flex;
    align-items: center;
    align-self: stretch;
}

.stat-card-icon {
    font-size: 36px;
}

.stat-card-label {
    display: none;
}

.stat-card-value {
    grid-area: value;
    font-size: 26px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
    align-self: end;
}

.stat-card-footer {
    grid-area: footer;
    font-size: 11px;
    color: #999;
    line-height: 1.2;
    align-self: start;
    white-space: nowrap;
}

/* 메인 콘텐츠 그리드 */
.dashboard-main-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

/* 랭킹 그리드 */
.dashboard-ranking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 12px;
}

/* 대시보드 카드 */
.dashboard-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f5f5f5;
}

.dashboard-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dashboard-card-icon {
    font-size: 20px;
}

.dashboard-card-title h2 {
    font-size: 17px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.dashboard-card-link {
    font-size: 13px;
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.dashboard-card-link:hover {
    color: #c9a332;
}

.dashboard-card-body {
    min-height: 200px;
}

/* 로딩 및 빈 상태 */
.dashboard-loading {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 14px;
}

.dashboard-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 14px;
}

/* 최근 경조사 목록 */
.recent-events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recent-event-item {
    padding: 16px;
    background: #fafafa;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.recent-event-item:hover {
    background: #f5f5f5;
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateX(4px);
}

.recent-event-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.recent-event-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.recent-event-info {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #666;
}

.recent-event-date,
.recent-event-amount {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 다가오는 일정 목록 */
.upcoming-events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upcoming-event-item {
    padding: 16px;
    background: #fafafa;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    display: flex;
    gap: 16px;
}

.upcoming-event-item:hover {
    background: #f5f5f5;
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateX(4px);
}

.upcoming-event-date {
    background: linear-gradient(135deg, #d4af37 0%, #f4c542 100%);
    color: white;
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    min-width: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.upcoming-date-day {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.upcoming-date-month {
    font-size: 11px;
    margin-top: 4px;
    opacity: 0.9;
}

.upcoming-event-details {
    flex: 1;
}

.upcoming-event-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.upcoming-event-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 12px;
}

.upcoming-event-time {
    color: #666;
}

/* 이벤트 타입 배지 (작은 버전) */
.event-type-badge-small {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

/* 반응형 - 대시보드 */
@media (max-width: 1024px) {
    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-ranking-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-welcome {
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
    }

    .welcome-content {
        gap: 16px;
    }

    .welcome-icon {
        font-size: 36px;
    }

    .welcome-text h1 {
        font-size: 22px;
    }

    .welcome-actions {
        width: 100%;
    }

    .btn-quick-action {
        flex: 1;
        justify-content: center;
    }

    .dashboard-stats-grid {
        grid-template-columns: 1.5fr 1fr;
        gap: 10px;
    }

    .dashboard-stat-card {
        padding: 14px;
        gap: 0 10px;
    }

    .stat-card-gold,
    .stat-card-purple {
        min-width: 180px;
    }

    .stat-card-blue,
    .stat-card-green {
        min-width: 140px;
    }

    .stat-card-icon {
        font-size: 32px;
    }

    .stat-card-value {
        font-size: 24px;
    }

    .dashboard-main-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card {
        padding: 20px;
    }
}

/* ===========================
   커스텀 메시지박스 스타일
   =========================== */

/* 메시지박스 오버레이 */
.custom-messagebox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.custom-messagebox-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 메시지박스 컨테이너 */
.custom-messagebox {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    min-width: 320px;
    max-width: 500px;
    width: 90%;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 메시지박스 헤더 */
.custom-messagebox-header {
    padding: 12px 16px 8px 16px;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    gap: 6px;
}

.custom-messagebox-icon {
    font-size: 24px;
    line-height: 1;
}

.custom-messagebox-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* 메시지박스 바디 */
.custom-messagebox-body {
    padding: 12px 16px;
}

.custom-messagebox-message {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
}

/* 메시지박스 푸터 */
.custom-messagebox-footer {
    padding: 8px 16px 12px 16px;
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.custom-messagebox-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 70px;
}

.custom-messagebox-btn-cancel {
    background: white;
    color: #666;
    border: 2px solid #e8e8e8;
}

.custom-messagebox-btn-cancel:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.custom-messagebox-btn-confirm {
    background: linear-gradient(135deg, #d4af37 0%, #f4c542 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.custom-messagebox-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

.custom-messagebox-btn-danger {
    background: linear-gradient(135deg, #e53e3e 0%, #fc5c5c 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.3);
}

.custom-messagebox-btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.4);
}

/* 메시지박스 타입별 스타일 */
.custom-messagebox.type-info .custom-messagebox-header {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
}

.custom-messagebox.type-success .custom-messagebox-header {
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
}

.custom-messagebox.type-warning .custom-messagebox-header {
    background: linear-gradient(135deg, #fff8e1 0%, #fffbf0 100%);
}

.custom-messagebox.type-error .custom-messagebox-header {
    background: linear-gradient(135deg, #ffebee 0%, #fff5f5 100%);
}

/* 반응형 */
@media (max-width: 480px) {
    .custom-messagebox {
        min-width: 280px;
    }

    .custom-messagebox-header {
        padding: 10px 14px 6px 14px;
    }

    .custom-messagebox-icon {
        font-size: 22px;
    }

    .custom-messagebox-title {
        font-size: 14px;
    }

    .custom-messagebox-body {
        padding: 10px 14px;
    }

    .custom-messagebox-message {
        font-size: 12px;
    }

    .custom-messagebox-footer {
        padding: 6px 14px 10px 14px;
        flex-direction: column-reverse;
    }

    .custom-messagebox-btn {
        width: 100%;
    }
}

/* ================================================
   부조금 기록 페이지 스타일 (타임라인 뷰)
   ================================================ */

/* 메인 컨테이너 */
.attendance-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 16px;
    height: calc(100vh - 120px);
}

/* 왼쪽 사이드바 */
.attendance-sidebar {
    background: white;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    height: fit-content;
    max-height: 100%;
    position: sticky;
    top: 20px;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 2px solid #f0f0f0;
}

.sidebar-title-section {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sidebar-icon {
    font-size: 28px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 12px;
    flex-shrink: 0;
}

.sidebar-title h1 {
    font-size: 17px;
    font-weight: 800;
    color: #1b5e20;
    margin: 0 0 2px 0;
}

.sidebar-title p {
    font-size: 11px;
    color: #666;
    margin: 0;
}

.btn-add-floating {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
    border: none;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-add-floating:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.4);
}

/* 통계 박스 */
.stats-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-box {
    background: linear-gradient(135deg, #f1f8f4, #e8f5e9);
    border-radius: 12px;
    padding: 14px;
    border-left: 3px solid #4caf50;
}

.stat-box.stat-year {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    border-left-color: #ffa726;
}

.stat-label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.stat-value {
    font-size: 22px;
    font-weight: 800;
    color: #1b5e20;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-box.stat-year .stat-value {
    color: #e65100;
}

.stat-sub {
    font-size: 11px;
    color: #666;
    font-weight: 600;
}

/* 필터 */
.sidebar-filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-item label {
    font-size: 11px;
    font-weight: 700;
    color: #555;
}

.filter-item select,
.filter-item input {
    padding: 8px 10px;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-size: 12px;
    transition: all 0.2s;
    background: white;
}

.filter-item select:focus,
.filter-item input:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.filter-item input::placeholder {
    color: #aaa;
}

/* 결과 카운트 */
.result-count {
    text-align: center;
    padding: 10px;
    background: linear-gradient(135deg, #f5f5f5, #eeeeee);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    color: #555;
}

.result-count span {
    font-size: 16px;
    color: #4caf50;
    font-weight: 800;
}

/* 오른쪽 메인 영역 */
.attendance-main {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow-y: auto;
    max-height: calc(100vh - 120px);
    max-width: 600px;
    width: 100%;
}

.timeline-header {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

.timeline-header h2 {
    font-size: 18px;
    font-weight: 800;
    color: #2c2c2c;
    margin: 0;
}

/* 타임라인 상단 광고 */
.timeline-top-ad {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid #e8e8e8;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 타임라인 컨테이너 */
.timeline-container {
    position: relative;
    padding-left: 20px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #4caf50, #81c784);
}

/* 월 구분선 */
.month-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 16px 0;
}

.month-divider:first-child {
    margin-top: 0;
}

.month-label {
    font-size: 13px;
    font-weight: 800;
    color: #4caf50;
    background: white;
    padding: 6px 12px;
    border-radius: 16px;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.2);
    white-space: nowrap;
}

.month-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, #4caf50, transparent);
}

/* 타임라인 아이템 */
.timeline-item {
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 12px;
    align-items: start;
    margin-bottom: 16px;
    position: relative;
}

/* 날짜 */
.timeline-date {
    text-align: center;
    background: white;
    border-radius: 10px;
    padding: 8px 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    border: 2px solid #e8f5e9;
}

.date-number {
    font-size: 24px;
    font-weight: 800;
    color: #1b5e20;
    line-height: 1;
}

.date-dow {
    font-size: 10px;
    font-weight: 600;
    color: #666;
    margin-top: 2px;
    text-transform: uppercase;
}

/* 타임라인 점 */
.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: white;
    border: 3px solid #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
    position: absolute;
    left: -16px;
    top: 12px;
    z-index: 2;
}

/* 타임라인 카드 */
.timeline-content {
    padding-bottom: 12px;
}

.timeline-card {
    background: white;
    border-radius: 12px;
    border: 2px solid #e8e8e8;
    overflow: hidden;
    transition: all 0.3s ease;
}

.timeline-card:hover {
    border-color: #4caf50;
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.15);
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(135deg, #e8f5e9, #f1f8f4);
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.card-title {
    font-size: 14px;
    font-weight: 700;
    color: #1b5e20;
}

.card-amount {
    font-size: 15px;
    font-weight: 800;
    color: #2e7d32;
    background: white;
    padding: 4px 12px;
    border-radius: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-host,
.card-memo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #555;
}

.host-icon,
.memo-icon {
    font-size: 14px;
}

.card-memo {
    font-style: italic;
    color: #777;
}

.card-actions {
    padding: 10px 14px;
    background: #fafafa;
    display: flex;
    gap: 8px;
    border-top: 1px solid #e8e8e8;
}

.btn-action {
    flex: 1;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-action.btn-edit {
    background: #4caf50;
    color: white;
}

.btn-action.btn-edit:hover {
    background: #388e3c;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(76, 175, 80, 0.3);
}

.btn-action.btn-delete {
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
}

.btn-action.btn-delete:hover {
    background: #f44336;
    color: white;
    border-color: #f44336;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(244, 67, 54, 0.3);
}

/* 빈 상태 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 60px;
    opacity: 0.3;
    margin-bottom: 16px;
}

.empty-text {
    font-size: 15px;
    color: #999;
    margin-bottom: 20px;
    font-weight: 500;
}

.btn-empty-add {
    padding: 12px 24px;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(76, 175, 80, 0.3);
    transition: all 0.3s;
}

.btn-empty-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.4);
}

/* 반응형 */
@media (max-width: 1200px) {
    .attendance-container {
        grid-template-columns: 260px 1fr;
        gap: 16px;
    }
}

@media (max-width: 968px) {
    .attendance-container {
        grid-template-columns: 1fr;
        height: auto;
    }

    .attendance-sidebar {
        position: relative;
        top: 0;
    }

    .attendance-main {
        max-height: none;
        max-width: none;
    }

    .timeline-container::before {
        left: 8px;
    }

    .timeline-item {
        grid-template-columns: 50px 1fr;
        gap: 10px;
    }

    .timeline-dot {
        left: -18px;
    }

    .timeline-date {
        padding: 6px 4px;
    }

    .date-number {
        font-size: 20px;
    }
}

@media (max-width: 640px) {
    .sidebar-header {
        flex-direction: row;
        gap: 10px;
        align-items: center;
    }

    /* 모바일에서도 버튼 원형 유지 */
    .btn-add-floating {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        font-size: 22px;
        flex-shrink: 0;
    }

    .btn-add-floating:hover {
        transform: scale(1.1) rotate(90deg);
    }

    .sidebar-title-section {
        flex: 1;
    }

    .stats-container {
        flex-direction: row;
        gap: 8px;
    }

    .stat-box {
        flex: 1;
        padding: 12px;
    }

    .stat-value {
        font-size: 18px;
    }

    .stat-label {
        font-size: 11px;
    }

    .stat-sub {
        font-size: 10px;
    }

    .attendance-main {
        padding: 16px;
    }

    .timeline-header h2 {
        font-size: 16px;
    }

    .timeline-container {
        padding-left: 16px;
    }

    .timeline-container::before {
        left: 7px;
    }

    .timeline-item {
        grid-template-columns: 48px 1fr;
        gap: 8px;
    }

    .timeline-dot {
        left: -14px;
    }

    .timeline-date {
        padding: 6px 4px;
    }

    .date-number {
        font-size: 18px;
    }

    .date-dow {
        font-size: 9px;
    }

    .timeline-dot {
        width: 12px;
        height: 12px;
        border-width: 3px;
        top: 10px;
    }

    .card-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
        padding: 10px 12px;
    }

    .card-title {
        font-size: 13px;
    }

    .card-amount {
        font-size: 14px;
    }

    .card-body {
        padding: 10px 12px;
    }

    .card-host,
    .card-memo {
        font-size: 11px;
    }

    .card-actions {
        flex-direction: column;
        padding: 8px 12px;
    }

    .btn-action {
        width: 100%;
        padding: 8px 12px;
    }
}

/* 부조금 기록 모달 스타일 */
.add-attendance-modal .modal-body {
    max-height: calc(90vh - 140px);
    overflow-y: auto;
}

.add-attendance-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.add-attendance-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.add-attendance-form label {
    font-size: 14px;
    font-weight: 600;
    color: #2c5f2d;
    display: flex;
    align-items: center;
    gap: 6px;
}

.add-attendance-form .label-icon {
    font-size: 16px;
}

.add-attendance-form .required {
    color: #e53e3e;
    font-size: 16px;
}

.add-attendance-form input,
.add-attendance-form select,
.add-attendance-form textarea {
    padding: 12px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: white;
}

.add-attendance-form input:focus,
.add-attendance-form select:focus,
.add-attendance-form textarea:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.add-attendance-form input:hover,
.add-attendance-form select:hover,
.add-attendance-form textarea:hover {
    border-color: #66bb6a;
}

.add-attendance-form textarea {
    resize: vertical;
    min-height: 90px;
    line-height: 1.6;
}

.add-attendance-form input::placeholder,
.add-attendance-form textarea::placeholder {
    color: #999;
}

.add-attendance-form .form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-modal-cancel,
.btn-modal-submit {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-modal-cancel {
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
}

.btn-modal-cancel:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.btn-modal-submit {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-modal-submit:hover {
    background: linear-gradient(135deg, #388e3c 0%, #4caf50 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

@media (max-width: 768px) {
    .add-attendance-form .form-row-2 {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}


/* 페이지 헤더 */
.my-attendance-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
}

.my-attendance-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.my-attendance-header-icon {
    font-size: 48px;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f5e9 0%, #f1f8f4 100%);
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
}

.my-attendance-header-text h1 {
    font-size: 28px;
    color: #2c2c2c;
    margin: 0 0 6px 0;
    font-weight: 700;
}

.my-attendance-header-text p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.btn-add-attendance {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-add-attendance:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
}

.btn-add-attendance .btn-icon {
    font-size: 20px;
    font-weight: 700;
}

/* 통계 카드 */
.my-attendance-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    border-left: 4px solid transparent;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.stat-card-primary {
    border-left-color: #4299e1;
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
}

.stat-card-success {
    border-left-color: #4caf50;
    background: linear-gradient(135deg, #ffffff 0%, #f1f8f4 100%);
}

.stat-card-info {
    border-left-color: #9f7aea;
    background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
}

.stat-card-warning {
    border-left-color: #f6ad55;
    background: linear-gradient(135deg, #ffffff 0%, #fffbf0 100%);
}

.stat-card-icon {
    font-size: 36px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 12px;
}

.stat-card-primary .stat-card-icon {
    background: rgba(66, 153, 225, 0.1);
}

.stat-card-success .stat-card-icon {
    background: rgba(76, 175, 80, 0.1);
}

.stat-card-info .stat-card-icon {
    background: rgba(159, 122, 234, 0.1);
}

.stat-card-warning .stat-card-icon {
    background: rgba(246, 173, 85, 0.1);
}

.stat-card-content {
    flex: 1;
}

.stat-card-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
    font-weight: 500;
}

.stat-card-value {
    font-size: 24px;
    font-weight: 700;
    color: #2c2c2c;
}

/* 필터 섹션 */
.my-attendance-filter-section {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-controls {
    display: flex;
    gap: 16px;
    flex: 1;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group-search {
    flex: 1;
    min-width: 200px;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

.filter-icon {
    font-size: 16px;
}

.filter-select {
    padding: 10px 14px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 14px;
    background: white;
    color: #2c2c2c;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 150px;
}

.filter-select:hover {
    border-color: #4caf50;
}

.filter-select:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.filter-search-input {
    padding: 10px 14px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 14px;
    background: white;
    color: #2c2c2c;
    transition: all 0.2s ease;
    width: 100%;
}

.filter-search-input:hover {
    border-color: #4caf50;
}

.filter-search-input:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.filter-search-input::placeholder {
    color: #999;
}

.filter-count {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    padding: 10px 16px;
    background: linear-gradient(135deg, #f1f8f4 0%, #e8f5e9 100%);
    border-radius: 10px;
    white-space: nowrap;
}

.filter-count span {
    color: #4caf50;
    font-weight: 700;
    font-size: 16px;
}

/* 그리드 레이아웃 */
.my-attendance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

/* 부조금 기록 카드 */
.attendance-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    border: 2px solid transparent;
}

.attendance-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(76, 175, 80, 0.2);
    border-color: #4caf50;
}

/* 카드 헤더 - 날짜 배지 */
.attendance-card-header {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.attendance-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border-radius: 16px;
    padding: 12px 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 80px;
}

.date-badge-month {
    font-size: 12px;
    font-weight: 600;
    color: #4caf50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.date-badge-day {
    font-size: 32px;
    font-weight: 800;
    color: #2c2c2c;
    line-height: 1;
    margin: 4px 0;
}

.date-badge-dow {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
}

.attendance-year {
    font-size: 16px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 카드 본문 */
.attendance-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.attendance-card-title-section {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.attendance-event-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.attendance-event-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.attendance-event-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c2c2c;
    line-height: 1.3;
}

.attendance-event-host {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.host-label {
    font-size: 12px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #9e9e9e 0%, #757575 100%);
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.host-name {
    font-weight: 600;
    color: #2c2c2c;
}

/* 금액 섹션 */
.attendance-amount-section {
    background: linear-gradient(135deg, #f1f8f4 0%, #e8f5e9 100%);
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 4px solid #4caf50;
}

.amount-label {
    font-size: 13px;
    font-weight: 600;
    color: #388e3c;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.attendance-amount-section .amount-value {
    font-size: 24px;
    font-weight: 800;
    color: #2e7d32;
    letter-spacing: -0.5px;
}

/* 메모 섹션 */
.attendance-memo-section {
    background: #fafafa;
    border-radius: 12px;
    padding: 14px 16px;
    border-left: 3px solid #9e9e9e;
}

.memo-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 6px;
}

.memo-content {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    font-style: italic;
}

/* 카드 푸터 - 액션 버튼 */
.attendance-card-footer {
    padding: 16px 24px;
    background: #fafafa;
    display: flex;
    gap: 10px;
    border-top: 1px solid #e8e8e8;
}

.btn-card-action {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-card-action.btn-edit {
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.25);
}

.btn-card-action.btn-edit:hover {
    background: linear-gradient(135deg, #388e3c 0%, #4caf50 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.35);
}

.btn-card-action.btn-delete {
    background: white;
    color: #666;
    border: 2px solid #e0e0e0;
}

.btn-card-action.btn-delete:hover {
    background: linear-gradient(135deg, #f44336 0%, #e53935 100%);
    color: white;
    border-color: #f44336;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(244, 67, 54, 0.35);
}

/* 데이터 없음 상태 */
.no-records {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.no-records-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-records-text {
    font-size: 18px;
    color: #666;
    margin-bottom: 24px;
    font-weight: 500;
}

.btn-add-first {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-add-first:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #66bb6a 0%, #4caf50 100%);
}

.btn-add-first span {
    font-size: 20px;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .my-attendance-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .my-attendance-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .my-attendance-page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-add-attendance {
        width: 100%;
        justify-content: center;
    }

    .my-attendance-stats {
        grid-template-columns: 1fr;
    }

    .my-attendance-filter-section {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-controls {
        flex-direction: column;
    }

    .filter-count {
        text-align: center;
    }

    .my-attendance-grid {
        grid-template-columns: 1fr;
    }

    .my-attendance-header-icon {
        width: 60px;
        height: 60px;
        font-size: 36px;
    }

    .my-attendance-header-text h1 {
        font-size: 22px;
    }

    .stat-card-value {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .my-attendance-page-header {
        margin-bottom: 16px;
    }

    .my-attendance-header-content {
        gap: 12px;
    }

    .my-attendance-header-icon {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }

    .my-attendance-header-text h1 {
        font-size: 20px;
    }

    .my-attendance-header-text p {
        font-size: 13px;
    }

    .btn-add-attendance {
        padding: 12px 20px;
        font-size: 14px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-card-icon {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }

    .attendance-card-header {
        padding: 16px 20px;
    }

    .attendance-date-badge {
        padding: 10px 14px;
        min-width: 70px;
    }

    .date-badge-day {
        font-size: 28px;
    }

    .attendance-year {
        font-size: 14px;
    }

    .attendance-card-body {
        padding: 18px;
        gap: 16px;
    }

    .attendance-event-icon {
        font-size: 28px;
    }

    .attendance-event-title {
        font-size: 16px;
    }

    .amount-value {
        font-size: 20px;
    }

    .attendance-card-footer {
        padding: 12px 18px;
        flex-direction: column;
    }

    .btn-card-action {
        width: 100%;
        padding: 11px 18px;
    }
}


/* ============================================
   부조금 기록 모달 스타일
   ============================================ */

.attendance-record-modal {
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.attendance-record-form .form-group-compact {
    margin-bottom: 14px;
}

.attendance-record-form .form-group-compact:last-of-type {
    margin-bottom: 0;
}

.attendance-record-form label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.attendance-record-form .label-icon {
    font-size: 16px;
}

.attendance-record-form .required {
    color: #ff6b6b;
    font-size: 14px;
}

.attendance-record-form input[type="text"],
.attendance-record-form input[type="date"],
.attendance-record-form input[type="number"],
.attendance-record-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.attendance-record-form input[type="text"]:focus,
.attendance-record-form input[type="date"]:focus,
.attendance-record-form input[type="number"]:focus,
.attendance-record-form textarea:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.attendance-record-form textarea {
    resize: vertical;
    min-height: 60px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 부조금 모달의 관계 버튼 컨테이너 */
.form-group-compact #relationshipButtons {
    padding: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    min-height: 48px;
}

/* 모달 액션 버튼 (간격 최소화) */
.modal-actions-compact {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.modal-actions-compact .btn-modal-cancel,
.modal-actions-compact .btn-modal-submit {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.modal-actions-compact .btn-modal-cancel {
    background: #f5f5f5;
    color: #666;
}

.modal-actions-compact .btn-modal-cancel:hover {
    background: #e8e8e8;
    color: #333;
}

.modal-actions-compact .btn-modal-submit {
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.modal-actions-compact .btn-modal-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

/* 반응형 */
@media (max-width: 768px) {
    .attendance-record-modal {
        max-width: 90% !important;
        margin: 20px;
    }

    .form-group-compact #relationshipButtons {
        padding: 6px;
    }
}

/* 날짜 선택 모달 */
#dateSelectModal .modal-content {
    max-width: 400px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
}

#dateSelectModal .modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e8e8e8;
}

#dateSelectModal .modal-header h2 {
    font-size: 17px;
    font-weight: 600;
    color: #2c2c2c;
    margin: 0;
}

#dateSelectModal .modal-close {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    border-radius: 50%;
}

#dateSelectModal .modal-close:hover {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
}

#dateSelectModal .modal-body {
    padding: 16px 20px;
}

#dateSelectModal .form-group {
    margin-bottom: 0;
}

#dateSelectModal .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

#dateSelectModal .date-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #2c2c2c;
    background: white;
    transition: all 0.2s;
    cursor: pointer;
    box-sizing: border-box;
}

#dateSelectModal .date-input:hover {
    border-color: #d4af37;
}

#dateSelectModal .date-input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

/* 날짜 선택 모달 액션 버튼 (모든 날짜 선택 모달에 공통 적용) */
.date-picker-modal .modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 0;
    padding-top: 0;
}

.date-picker-modal .btn-cancel,
.date-picker-modal .btn-submit {
    flex: 1;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
    box-sizing: border-box;
    border: none;
    position: relative;
    overflow: hidden;
}

.date-picker-modal .btn-cancel {
    background: #f5f5f5;
    color: #666;
    border: 2px solid #e0e0e0;
}

.date-picker-modal .btn-cancel:hover {
    background: #e8e8e8;
    color: #333;
    border-color: #d0d0d0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.date-picker-modal .btn-cancel:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.date-picker-modal .btn-submit {
    background: linear-gradient(135deg, #d4af37 0%, #f4c542 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.date-picker-modal .btn-submit:hover {
    background: linear-gradient(135deg, #c19d2f 0%, #e0b73a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

.date-picker-modal .btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.3);
}

/* 버튼 클릭 리플 효과 */
.date-picker-modal .btn-cancel::after,
.date-picker-modal .btn-submit::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.date-picker-modal .btn-cancel:active::after,
.date-picker-modal .btn-submit:active::after {
    width: 300px;
    height: 300px;
}

/* 날짜 선택 모달 반응형 */
@media (max-width: 768px) {
    .date-picker-modal .modal-content {
        max-width: 90%;
        width: 90%;
    }

    .date-picker-modal .modal-header {
        padding: 14px 18px;
    }

    .date-picker-modal .modal-header h2 {
        font-size: 16px;
    }

    .date-picker-modal .modal-body {
        padding: 14px 18px;
    }

    .date-picker-modal .modal-actions {
        gap: 8px;
        margin-top: 0;
    }

    .date-picker-modal .btn-cancel,
    .date-picker-modal .btn-submit {
        font-size: 14px;
        padding: 11px 16px;
        border-radius: 10px;
    }

    /* 모바일에서 이메일, 생년월일 컬럼 숨기기 */
    .hide-mobile {
        display: none !important;
    }
}

/* ============================================
   커스텀 날짜 선택기 (모달용)
   ============================================ */
.custom-date-picker {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.date-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.date-picker-nav-btn {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.date-picker-nav-btn:hover {
    background: #f5f5f5;
    border-color: #d4af37;
    color: #d4af37;
}

.date-picker-title {
    display: flex;
    gap: 8px;
}

.picker-select {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
}

.picker-select:hover {
    border-color: #d4af37;
}

.picker-select:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.date-picker-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.picker-weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #999;
    padding: 8px 0;
}

.picker-weekday:first-child {
    color: #e53e3e;
}

.picker-weekday:last-child {
    color: #3182ce;
}

.date-picker-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.picker-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    background: white;
}

.picker-day:not(.picker-other-month):hover {
    background: #f5f5f5;
    transform: scale(1.05);
}

.picker-day.picker-other-month {
    color: #ccc;
    cursor: default;
}

.picker-day.picker-today {
    background: #fff7e6;
    color: #d4af37;
    font-weight: 700;
}

.picker-day.picker-selected {
    background: linear-gradient(135deg, #d4af37 0%, #f4c542 100%);
    color: white;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.picker-day.picker-selected:hover {
    transform: scale(1.05);
}

.date-picker-modal .modal-actions {
    margin-top: 0;
}

/* 반응형 */
@media (max-width: 768px) {
    .custom-date-picker {
        padding: 16px;
    }

    .picker-day {
        font-size: 13px;
    }

    .date-picker-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .picker-select {
        padding: 6px 10px;
        font-size: 13px;
    }
}

/* ==================== 엑셀 관리 스타일 ==================== */

/* 페이지 헤더 액션 버튼 그룹 */
.events-header-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* 엑셀 관리 버튼 */
.btn-excel-manage {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-excel-manage:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-excel-manage .btn-icon {
    font-size: 18px;
}

/* 엑셀 모달 */
.excel-modal .modal-body {
    padding: 24px;
}

/* 엑셀 액션 카드 그룹 */
.excel-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

/* 엑셀 액션 카드 */
.excel-action-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.excel-action-card:hover {
    border-color: #4facfe;
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.15);
}

/* 엑셀 액션 아이콘 */
.excel-action-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 28px;
    flex-shrink: 0;
}

/* 엑셀 액션 콘텐츠 */
.excel-action-content {
    flex: 1;
}

.excel-action-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.excel-action-content p {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* 엑셀 가이드 섹션 */
.excel-guide-section {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 20px;
}

.excel-guide-section h4 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.excel-guide-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.excel-guide-section li {
    font-size: 13px;
    color: #555;
    line-height: 1.8;
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.excel-guide-section li:before {
    content: '•';
    position: absolute;
    left: 8px;
    color: #4facfe;
    font-weight: bold;
}

.excel-guide-section strong {
    color: #333;
    font-weight: 600;
}

/* 경조사 선택 모달 */
.event-select-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 16px;
}

.event-select-all-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.event-select-all-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #10b981;
}

.event-select-count {
    font-size: 14px;
    color: #10b981;
    font-weight: 600;
}

.event-select-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 20px;
}

.event-select-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
    background: white;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
}

.event-select-item:hover {
    background: #f9fafb;
    border-color: #10b981;
}

.event-select-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-right: 12px;
    accent-color: #10b981;
}

.event-select-item-info {
    flex: 1;
}

.event-select-item-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.event-select-item-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #666;
}

.event-select-item-type {
    padding: 2px 8px;
    background: #e5e7eb;
    border-radius: 4px;
    font-size: 12px;
}

.event-select-item-stats {
    display: flex;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .events-header-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-excel-manage,
    .btn-add-event {
        width: 100%;
        justify-content: center;
    }

    .excel-action-card {
        flex-direction: column;
        text-align: center;
    }

    .excel-action-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .excel-action-content h3 {
        font-size: 15px;
    }

    .excel-action-content p {
        font-size: 12px;
    }
}

/* ========================================
   비밀번호 찾기 - 로딩 오버레이 & 커스텀 모달
   ======================================== */

/* 로딩 오버레이 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    gap: 20px;
}

.loading-text {
    color: white;
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

/* 커스텀 모달 오버레이 */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 커스텀 모달 박스 */
.custom-modal {
    background: white;
    border-radius: 16px;
    padding: 40px 30px 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 모달 아이콘 */
.custom-modal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
}

.custom-modal-icon.success {
    background: #d4af37;
    color: white;
}

.custom-modal-icon.error {
    background: #f44336;
    color: white;
}

/* 모달 메시지 */
.custom-modal-message {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin: 0 0 30px;
    white-space: pre-line;
}

/* 모달 버튼 컨테이너 */
.custom-modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* 모달 버튼 스타일 */
.btn-modal-primary,
.btn-modal-secondary {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-modal-primary {
    background: #d4af37;
    color: white;
}

.btn-modal-primary:hover {
    background: #c5a028;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-modal-secondary {
    background: #f0f0f0;
    color: #666;
}

.btn-modal-secondary:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
}

.btn-modal-primary:active,
.btn-modal-secondary:active {
    transform: translateY(0);
}

/* ========================================
   관리자 대시보드 스타일
   ======================================== */

/* 관리자 헤더 */
.admin-header {
    margin-bottom: 30px;
}

.admin-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0 0 8px 0;
}

.admin-subtitle {
    font-size: 16px;
    color: #999;
    margin: 0;
}

/* 관리자 통계 카드 그리드 */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* 관리자 통계 카드 */
.admin-stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.admin-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.admin-stat-card.primary {
    border-left-color: #2196F3;
}

.admin-stat-card.success {
    border-left-color: #4CAF50;
}

.admin-stat-card.warning {
    border-left-color: #FF9800;
}

.admin-stat-card.info {
    border-left-color: #9C27B0;
}

/* 통계 아이콘 래퍼 */
.stat-icon-wrapper {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.admin-stat-card.primary .stat-icon-wrapper {
    background: rgba(33, 150, 243, 0.1);
}

.admin-stat-card.success .stat-icon-wrapper {
    background: rgba(76, 175, 80, 0.1);
}

.admin-stat-card.warning .stat-icon-wrapper {
    background: rgba(255, 152, 0, 0.1);
}

.admin-stat-card.info .stat-icon-wrapper {
    background: rgba(156, 39, 176, 0.1);
}

/* 통계 컨텐츠 */
.stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-content h3 {
    font-size: 14px;
    font-weight: 500;
    color: #666;
    margin: 0;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #2c2c2c;
    margin: 0;
}

.stat-detail {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stat-label {
    font-size: 12px;
    color: #999;
}

.stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #2196F3;
}

/* 차트 섹션 */
.admin-charts-section {
    margin-bottom: 40px;
}

/* 차트 행 레이아웃 */
.chart-row-full {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 20px;
}

.chart-row-two {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.chart-row-four {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

/* 차트 카드 기본 스타일 */
.admin-chart-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.admin-chart-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* 대형 차트 */
.chart-card-large canvas {
    height: 280px !important;
}

/* 중형 차트 */
.chart-card-medium canvas {
    height: 240px !important;
}

/* 소형 차트 */
.chart-card-small {
    padding: 16px;
}

.chart-card-small canvas {
    height: 180px !important;
}

.chart-title {
    font-size: 15px;
    font-weight: 600;
    color: #2c2c2c;
    margin: 0 0 16px 0;
}

.chart-card-small .chart-title {
    font-size: 14px;
    margin-bottom: 12px;
}

/* 테이블 섹션 */
.admin-tables-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 테이블 카드 */
.admin-table-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.table-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c2c2c;
    margin: 0;
}

.btn-view-all {
    padding: 8px 16px;
    background: #f5f5f5;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-view-all:hover {
    background: #e0e0e0;
    color: #333;
}

/* 테이블 래퍼 */
.table-wrapper {
    overflow-x: auto;
}

/* 관리자 테이블 */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table thead {
    background: #f9f9f9;
}

.admin-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #666;
    border-bottom: 2px solid #e0e0e0;
}

.admin-table td {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    color: #2c2c2c;
}

.admin-table tr:hover {
    background: #fafafa;
}

.admin-table .loading-cell,
.admin-table .empty-cell,
.admin-table .error-cell {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
}

.admin-table .error-cell {
    color: #f44336;
}

/* 배지 스타일 */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    background: #e3f2fd;
    color: #1976d2;
}

/* 반응형 - 태블릿 */
@media (max-width: 1024px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .chart-row-two {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .chart-row-four {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .admin-stat-card {
        padding: 18px;
    }

    .chart-card-large canvas {
        height: 220px !important;
    }

    .chart-card-medium canvas {
        height: 200px !important;
    }

    .chart-card-small canvas {
        height: 160px !important;
    }

    .stat-icon-wrapper {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }

    .stat-number {
        font-size: 24px;
    }
}

/* 반응형 - 모바일 */
@media (max-width: 768px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .admin-header h1 {
        font-size: 24px;
    }

    .admin-subtitle {
        font-size: 14px;
    }

    .admin-stat-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }

    .stat-detail {
        justify-content: center;
    }

    .chart-row-two {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .chart-row-four {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .chart-card-large canvas {
        height: 180px !important;
    }

    .chart-card-medium canvas {
        height: 160px !important;
    }

    .chart-card-small canvas {
        height: 140px !important;
    }

    .admin-chart-card {
        padding: 16px;
    }

    .chart-card-small {
        padding: 14px;
    }

    .table-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .table-wrapper {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }

    .admin-table {
        font-size: 13px;
    }

    .admin-table th,
    .admin-table td {
        padding: 12px 8px;
        white-space: nowrap;
    }
}
