/* 관리자 페이지 CSS */

/* 다크모드 깜빡임 방지 */
html {
    transition: none !important;
}

html[data-theme="dark"] {
    transition: none !important;
}

/* 다크모드 즉시 적용을 위한 기본 스타일 */
html[data-theme="dark"] body {
    background: #1a1a1a !important;
    color: #e8eaed !important;
}

/* 다크모드에서 텍스트 색상 오버라이드 - 제거됨 */

html[data-theme="dark"] .admin-header {
    background: #2d2d2d !important;
    border-bottom: 1px solid #404040 !important;
}

html[data-theme="dark"] .admin-sidebar {
    background: #2d2d2d !important;
    border-right: 1px solid #404040 !important;
}

html[data-theme="dark"] .admin-main {
    background: #1a1a1a !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}

body {
    font-family: 'Google Sans', 'Roboto', Arial, sans-serif;
    background-color: #f8f9fa;
    color: #202124;
    line-height: 1.6;
}

/* 헤더 스타일 */
.admin-header {
    background: #fff;
    border-bottom: 1px solid #dadce0;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* 햄버거 버튼 (모바일) */
.hamburger-btn {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: rgba(0,0,0,0.04);
    color: #4a5568;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 12px;
}

.hamburger-btn i { font-size: 18px; }

.hamburger-btn:hover {
    background: rgba(0,0,0,0.08);
}

/* 사이드바 오버레이 (모바일) */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
}

.admin-header .logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    font-size: 22px;
    font-weight: 400;
    color: #5f6368;
    gap: 12px;
}

.admin-header .header-controls {
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: 16px;
}

.admin-header .user-info {
    flex: 0 0 auto;
}

.logo-image {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 22px;
    font-weight: 400;
    color: #5f6368;
}

.admin-header .logo::before {
    display: none;
}

.admin-header .user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #4285f4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500;
}

/* 헤더 컨트롤 버튼 */
.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle,
.settings-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #4a5568;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 16px;
}

.theme-toggle:hover,
.settings-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #2d3748;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-toggle:active,
.settings-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* 다크모드 토글 아이콘 */
.theme-toggle i {
    transition: transform 0.3s ease;
}

.theme-toggle.active i {
    transform: rotate(180deg);
}

/* 다크모드 헤더 컨트롤 */
[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .settings-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

[data-theme="dark"] .theme-toggle:hover,
[data-theme="dark"] .settings-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

/* 사이드바 스타일 */
.admin-sidebar {
    width: 256px;
    background: #fff;
    border-right: 1px solid #dadce0;
    height: calc(100vh - 64px);
    position: fixed;
    left: 0;
    top: 64px;
    overflow-y: auto;
}

.admin-sidebar .sidebar-footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #dadce0;
    display: flex;
    gap: 8px;
    padding: 12px;
}

.admin-sidebar .sidebar-footer .theme-toggle,
.admin-sidebar .sidebar-footer .settings-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    background: #f1f3f4;
    color: #4a5568;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 16px;
}

.admin-sidebar .sidebar-footer .theme-toggle:hover,
.admin-sidebar .sidebar-footer .settings-btn:hover {
    background: #e8eaed;
}

[data-theme="dark"] .admin-sidebar .sidebar-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .admin-sidebar .sidebar-footer .theme-toggle,
[data-theme="dark"] .admin-sidebar .sidebar-footer .settings-btn {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

[data-theme="dark"] .admin-sidebar .sidebar-footer .theme-toggle:hover,
[data-theme="dark"] .admin-sidebar .sidebar-footer .settings-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* 반응형 사이드바 (오프캔버스) */
@media (max-width: 768px) {
    .hamburger-btn { display: flex; }

    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .admin-sidebar.open { transform: translateX(0); }

    .admin-main { margin-left: 0; padding: 16px; }

    .sidebar-overlay.show { display: block; }
}

.sidebar-nav {
    padding: 8px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    font-weight: 500;
}

/* 하위 메뉴 스타일 */
.nav-group {
    margin-bottom: 4px;
}

.nav-parent {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    gap: 8px;
    font-weight: 500;
    color: #333;
}

.nav-parent:hover {
    background-color: #f8f9fa;
}

.nav-parent.active {
    background-color: #f0f7ff;
}

.nav-arrow {
    transition: transform 0.2s ease;
    font-size: 12px;
    margin-left: auto;
    transform: rotate(0deg);
}

.nav-arrow.rotated {
    transform: rotate(180deg);
}

.nav-submenu {
    display: none;
    background-color: #f8f9fa;
    border-left: 3px solid #1a73e8;
}

.nav-submenu.active {
    display: block;
}

/* 마이보드 하위 메뉴가 활성화된 경우 기본적으로 펼쳐진 상태 */
.nav-submenu:has(.nav-child.active) {
    display: block;
}

.nav-group:has(.nav-child.active) .nav-arrow {
    transform: rotate(180deg);
}

/* 마이보드 하위 메뉴가 활성화된 경우 부모 메뉴도 활성화 */
.nav-group:has(.nav-child.active) .nav-parent {
    background-color: #f0f7ff;
}

.nav-child {
    padding-left: 40px !important;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.nav-child:hover {
    background-color: #f8f9fa;
    color: #1a73e8;
    border-left-color: transparent !important;
}

.nav-child.active {
    background-color: #e8f0fe;
    color: #1a73e8;
    font-weight: 500;
    border-left: 3px solid transparent !important;
    position: relative;
    border-left-color: transparent !important;
}

.nav-child.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background-color: #1a73e8;
    border-radius: 0 2px 2px 0;
}

.nav-item:hover {
    background-color: transparent;
    color: #1a73e8;
    border-left-color: #1a73e8;
}

.nav-item.active {
    background-color: transparent;
    color: #1a73e8;
    border-left-color: #1a73e8;
}

.nav-item i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

.nav-parent i {
    margin-right: 12px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.nav-parent .nav-text {
    margin-left: -4px;
}

/* 메인 컨테이너 */
.admin-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-main {
    flex: 1;
    margin-left: 256px;
    padding: 24px;
    background-color: #f8f9fa;
    min-height: calc(100vh - 64px);
}

/* 대시보드 카드 */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.dashboard-card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #dadce0;
}

.card-header {
    padding: 12px 20px;
    border-bottom: 1px solid #dadce0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.card-icon.primary { background: #e8f0fe; color: #1a73e8; }
.card-icon.success { background: #e6f4ea; color: #137333; }
.card-icon.warning { background: #fef7e0; color: #ea8600; }
.card-icon.danger { background: #fce8e6; color: #d93025; }

.card-title {
    font-size: 16px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 8px;
}

.card-value {
    font-size: 32px;
    font-weight: 600;
    color: #202124;
    margin-bottom: 8px;
}

.card-description {
    color: #5f6368;
    font-size: 14px;
}

/* 로그인 페이지 */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eee 0%, #fff 100%);
}

.login-card {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-header h1 {
    font-size: 24px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 8px;
}

.login-header p {
    color: #5f6368;
    font-size: 14px;
}

/* 폼 스타일 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    /* margin-bottom: 8px; */
    font-weight: 500;
    color: #202124;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

/* 버튼 스타일 */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-outline {
    background: transparent;
    border: 1px solid #dadce0;
    color: #5f6368;
}

.btn-outline:hover {
    background: #f8f9fa;
    border-color: #1a73e8;
    color: #1a73e8;
}

.btn-primary {
    background: #1a73e8;
    color: white;
}

.btn-primary:hover {
    background: #1557b0;
}

.btn-secondary {
    background: #5f6368;
    color: white;
}

.btn-secondary:hover {
    background: #4a4a4a;
}

.btn-danger {
    background: #d93025;
    color: white;
}

.btn-danger:hover {
    background: #b52d20;
}

.btn-success {
    background: #137333;
    color: white;
}

.btn-success:hover {
    background: #0f5a28;
}

/* 테이블 스타일 */
.table-container {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #dadce0;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #dadce0;
}

.table th {
    background: #f8f9fa;
    font-weight: 500;
    color: #202124;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 15px 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover {
    color: #000;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px 20px 20px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

/* 모달 폼 패딩 */
.modal form {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

/* 커스텀 알림 애니메이션 */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 삭제 확인 모달 */
.delete-confirm-modal .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.delete-confirm-modal .modal-content {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

.delete-confirm-modal .modal-header {
    padding: 20px 20px 15px 20px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.delete-confirm-modal .modal-header h3 {
    margin: 0;
    color: #dc2626;
    font-size: 20px;
    font-weight: 600;
}

.delete-confirm-modal .modal-body {
    padding: 20px;
    text-align: center;
}

.delete-confirm-modal .confirm-icon {
    font-size: 48px;
    color: #f59e0b;
    margin-bottom: 16px;
}

.delete-confirm-modal .modal-body p {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #374151;
}

.delete-confirm-modal .confirm-warning {
    font-size: 14px;
    color: #6b7280;
    font-style: italic;
}

.delete-confirm-modal .modal-footer {
    padding: 15px 20px 20px 20px;
    display: flex;
    justify-content: center;
    gap: 12px;
    border-top: 1px solid #eee;
}

.delete-confirm-modal .btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.delete-confirm-modal .btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.delete-confirm-modal .btn-secondary:hover {
    background: #e5e7eb;
}

.delete-confirm-modal .btn-danger {
    background: #dc2626;
    color: white;
}

.delete-confirm-modal .btn-danger:hover {
    background: #b91c1c;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================
   공통 모달 시스템
   ============================================ */

/* 공통 확인 모달 */
.common-confirm-modal .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.common-confirm-modal .modal-content {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease-out;
}

.common-confirm-modal .modal-header {
    padding: 20px 20px 15px 20px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.common-confirm-modal .modal-header h3 {
    margin: 0;
    color: #374151;
    font-size: 18px;
    font-weight: 600;
}

.common-confirm-modal .modal-body {
    padding: 20px;
    text-align: center;
}

.common-confirm-modal .confirm-icon {
    margin-bottom: 15px;
}

.common-confirm-modal .confirm-icon i {
    font-size: 48px;
    color: #3b82f6;
}

.common-confirm-modal .modal-body p {
    margin: 0 0 10px 0;
    color: #374151;
    font-size: 16px;
    line-height: 1.5;
}

.common-confirm-modal .confirm-warning {
    color: #6b7280;
    font-size: 14px;
}

.common-confirm-modal .modal-footer {
    padding: 15px 20px 20px 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}


.common-confirm-modal .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.common-confirm-modal .btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.common-confirm-modal .btn-secondary:hover {
    background: #e5e7eb;
}

.common-confirm-modal .btn-primary {
    background: #3b82f6;
    color: white;
}

.common-confirm-modal .btn-primary:hover {
    background: #2563eb;
}

.common-confirm-modal .btn-danger {
    background: #dc2626;
    color: white;
}

.common-confirm-modal .btn-danger:hover {
    background: #b91c1c;
}

/* 공통 모달 다크모드 */
[data-theme="dark"] .common-confirm-modal .modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .common-confirm-modal .modal-header {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .common-confirm-modal .modal-header h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .common-confirm-modal .modal-body p {
    color: var(--text-primary);
}

[data-theme="dark"] .common-confirm-modal .confirm-warning {
    color: var(--text-secondary);
}

[data-theme="dark"] .common-confirm-modal .btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .common-confirm-modal .btn-secondary:hover {
    background: var(--bg-hover);
}

/* ============================================
   가까운 일정 섹션
   ============================================ */

.upcoming-schedules {
    margin-top: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.upcoming-schedules .section-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
}

.upcoming-schedules .section-header h3 {
    margin: 0;
    color: #495057;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upcoming-schedules .section-header i {
    color: #6c757d;
}

.upcoming-list {
    padding: 20px;
}

.upcoming-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
}

.upcoming-item:hover {
    background: #e9ecef;
    transform: translateX(2px);
}

.upcoming-item:last-child {
    margin-bottom: 0;
}

.upcoming-color {
    width: 4px;
    height: 40px;
    border-radius: 2px;
    margin-right: 15px;
    flex-shrink: 0;
}

.upcoming-content {
    flex: 1;
}

.upcoming-title {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    font-size: 16px;
}

.upcoming-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 5px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.date-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    background: #e9ecef;
    color: #6c757d;
    flex-shrink: 0;
}

.date-badge.today {
    background: #dc3545;
    color: white;
}

.date-badge.tomorrow {
    background: #fd7e14;
    color: white;
}

.upcoming-date {
    font-size: 14px;
    color: #6c757d;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.upcoming-description {
    font-size: 14px;
    color: #6c757d;
    margin-top: 5px;
    line-height: 1.4;
}

.empty-upcoming {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.empty-upcoming i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-upcoming p {
    margin: 0;
    font-size: 16px;
}

.loading-schedules {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

.loading-schedules i {
    margin-right: 8px;
}

/* 가까운 일정 다크모드 */
[data-theme="dark"] .upcoming-schedules {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .upcoming-schedules .section-header {
    background: var(--bg-tertiary);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .upcoming-schedules .section-header h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .upcoming-item {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .upcoming-item:hover {
    background: var(--bg-hover);
}

[data-theme="dark"] .upcoming-title {
    color: var(--text-primary);
}

[data-theme="dark"] .upcoming-date,
[data-theme="dark"] .upcoming-description {
    color: var(--text-secondary);
}

[data-theme="dark"] .empty-upcoming {
    color: var(--text-secondary);
}

/* 액션 카드 */
.action-card {
    display: flex;
    align-items: center;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #dadce0;
    text-decoration: none;
    color: #202124;
    transition: all 0.2s;
}

.action-card:hover {
    box-shadow: 0 2px 6px 0 rgba(60,64,67,.3), 0 8px 16px 3px rgba(60,64,67,.15);
    transform: translateY(-1px);
}

.action-card i {
    font-size: 24px;
    margin-right: 16px;
    color: #1a73e8;
}

.action-card-content h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}

.action-card-content p {
    font-size: 14px;
    color: #5f6368;
}

/* 유틸리티 클래스 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.p-0 { padding: 0; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }
.p-3 { padding: 24px; }
.p-4 { padding: 32px; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* 대시보드 스타일 */
.dashboard-container {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.dashboard-header h1 {
    font-size: 24px;
    font-weight: 600;
    color: #202124;
    margin: 0;
}

/* 간소화된 대시보드 요약 */
.dashboard-summary {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding: 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid #dadce0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    min-height: 60px;
    cursor: pointer;
}

.summary-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: #e8f0fe;
}

.summary-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: white;
    flex-shrink: 0;
}

.summary-item.balance .summary-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.summary-item.income .summary-icon {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
}

.summary-item.expense .summary-icon {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-label {
    font-size: 14px;
    color: #5f6368;
    font-weight: 500;
}

.summary-value {
    font-size: 18px;
    font-weight: 700;
    color: #202124;
}

.summary-item.balance .summary-value {
    color: #1a73e8;
}

.summary-item.income .summary-value {
    color: #4caf50;
}

.summary-item.expense .summary-value {
    color: #f44336;
}

/* 다크모드 대시보드 요약 */
[data-theme="dark"] .dashboard-summary {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    box-shadow: 0 2px 8px var(--shadow-color);
}

[data-theme="dark"] .summary-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px var(--shadow-color);
}

[data-theme="dark"] .summary-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-color);
    background: var(--bg-tertiary);
}

[data-theme="dark"] .summary-label {
    color: var(--text-secondary);
}

[data-theme="dark"] .summary-value {
    color: var(--text-primary);
}

[data-theme="dark"] .summary-item.balance .summary-value {
    color: var(--accent-color);
}

[data-theme="dark"] .summary-item.income .summary-value {
    color: #4caf50;
}

[data-theme="dark"] .summary-item.expense .summary-value {
    color: #f44336;
}

/* 반응형 대시보드 요약 */
@media (max-width: 768px) {
    .dashboard-summary {
        flex-direction: column;
    gap: 12px;
        padding: 16px;
    }
    
    .summary-item {
        gap: 10px;
        padding: 10px;
        min-height: 50px;
    }
    
    .summary-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .summary-label {
        font-size: 12px;
    }
    
    .summary-value {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .dashboard-summary {
        padding: 12px;
    }
    
    .summary-item {
        gap: 8px;
        padding: 8px;
        min-height: 45px;
    }
    
    .summary-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .summary-label {
        font-size: 11px;
    }
    
    .summary-value {
        font-size: 14px;
    }
}

/* 다크모드 카드 */
[data-theme="dark"] .dashboard-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px var(--shadow-color);
}

[data-theme="dark"] .card-header {
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .card-header h2 {
    color: var(--text-primary);
}

[data-theme="dark"] .card-content {
    background: var(--bg-secondary);
}

[data-theme="dark"] .simple-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .simple-item:hover {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .simple-item h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .simple-item .item-date {
    color: var(--text-secondary);
}

[data-theme="dark"] .empty-state {
    color: var(--text-secondary);
}

[data-theme="dark"] .empty-state i {
    color: var(--text-secondary);
}

/* 간소화된 그리드 */
.dashboard-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dashboard-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #dadce0;
}

.card-header h2 {
    font-size: 16px;
    font-weight: 500;
    color: #202124;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-content {
    padding: 20px;
}

/* 간소화된 리스트 */
.simple-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.simple-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
    transition: background-color 0.2s;
    cursor: pointer;
    min-height: 60px;
}

.simple-item:hover {
    background: #e8f0fe;
}

.simple-item .item-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
}

.simple-item .item-icon.income {
    background: #4caf50;
}

.simple-item .item-icon.expense {
    background: #f44336;
}

.simple-item .item-content {
    flex: 1;
}

.simple-item .item-content h4 {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    margin: 0 0 4px 0;
}

.simple-item .item-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.simple-item .item-amount.income {
    color: #4caf50;
    font-weight: 500;
}

.simple-item .item-amount.expense {
    color: #f44336;
    font-weight: 500;
}

.dashboard-actions .btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 이번 달 수입/지출 요약 */
.monthly-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.overview-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #e8eaed;
    display: flex;
    align-items: center;
    gap: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.overview-card.income::before {
    background: linear-gradient(90deg, #34a853 0%, #137333 100%);
}

.overview-card.expense::before {
    background: linear-gradient(90deg, #ea4335 0%, #d33b2c 100%);
}

.overview-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

.overview-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.overview-card.income .overview-icon {
    background: linear-gradient(135deg, #34a853 0%, #137333 100%);
}

.overview-card.expense .overview-icon {
    background: linear-gradient(135deg, #ea4335 0%, #d33b2c 100%);
}

.overview-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: #202124;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.overview-content p {
    font-size: 16px;
    color: #5f6368;
    margin: 0;
    font-weight: 500;
}

/* 통계 카드 그리드 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e8eaed;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s ease;
}

.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.stat-card.income {
    border-left: 4px solid #34a853;
}

.stat-card.expense {
    border-left: 4px solid #ea4335;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card.income .stat-icon {
    background: linear-gradient(135deg, #34a853 0%, #137333 100%);
}

.stat-card.expense .stat-icon {
    background: linear-gradient(135deg, #ea4335 0%, #d33b2c 100%);
}

.stat-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: #202124;
    margin: 0 0 4px 0;
}

.stat-content p {
    font-size: 14px;
    color: #5f6368;
    margin: 0 0 8px 0;
}

.stat-details {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #5f6368;
}

.stat-details span {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 6px;
}

/* 대시보드 그리드 */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
}

.dashboard-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #e8eaed;
    overflow: hidden;
}


.card-content {
    padding: 24px;
}

/* 최근 목록 */
.recent-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recent-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #4CAF50;
    transition: background-color 0.2s ease;
}

.recent-item:hover {
    background: #f8f9fa;
}

/* 수입 (기타수입) - 초록색 */
.recent-item.income {
    border-left: 4px solid rgb(76, 175, 80);
}

/* 지출 - 빨간색 */
.recent-item.expense {
    border-left: 4px solid rgb(244, 67, 54);
}

.item-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

.item-icon.income {
    background: linear-gradient(135deg, #34a853 0%, #137333 100%);
}

.item-icon.expense {
    background: linear-gradient(135deg, #ea4335 0%, #d33b2c 100%);
}

.item-content {
    flex: 1;
}

.item-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #202124;
    margin: 0 0 4px 0;
}

.item-content p {
    font-size: 12px;
    color: #5f6368;
    margin: 0;
}

.item-date {
    display: flex;
    align-items: center;
    gap: 4px;
}

.item-amount {
    font-weight: 600;
    font-size: 14px;
}

.item-amount.income {
    color: #34a853;
}

.item-amount.expense {
    color: #ea4335;
}

.item-category {
    background: #e8f0fe;
    color: #1a73e8;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
}

.transaction-type-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    margin-left: 8px;
}

.transaction-type-badge.income {
    background: #e8f5e8;
    color: #34a853;
}

.transaction-type-badge.expense {
    background: #fce8e6;
    color: #ea4335;
}

/* 활동 목록 */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.activity-item:hover {
    background: #f8f9fa;
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e8f0fe;
    color: #1a73e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.activity-icon.activity-schedule {
    background: #e8f0fe;
    color: #1a73e8;
}

.activity-icon.activity-transaction {
    background: #f3e5f5;
    color: #9c27b0;
}

.activity-icon.activity-login {
    background: #e8f5e8;
    color: #34a853;
}

.activity-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    margin-left: 8px;
}

.activity-badge.income {
    background: #e8f5e8;
    color: #34a853;
}

.activity-badge.expense {
    background: #fce8e6;
    color: #ea4335;
}

.activity-content {
    flex: 1;
}

.activity-description {
    font-size: 14px;
    color: #202124;
    margin: 0 0 4px 0;
}

.activity-time {
    font-size: 12px;
    color: #5f6368;
    margin: 0;
}

/* 잔액 요약 */
.balance-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
}

.balance-card.full-width {
    grid-column: 1 / -1;
    margin-bottom: 32px;
}


.balance-summary {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    min-height: 120px;
    width: 100%;
    flex-wrap: wrap;
}

.balance-amount {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border-radius: 16px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}

.balance-amount.positive {
    background: rgba(52, 168, 83, 0.2);
    border: 1px solid rgba(52, 168, 83, 0.3);
}

.balance-amount.negative {
    background: rgba(234, 67, 53, 0.2);
    border: 1px solid rgba(234, 67, 53, 0.3);
}

.balance-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.balance-content h3 {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #fff;
}

.balance-amount-text {
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
}

.balance-content p {
    font-size: 14px;
    margin: 0;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

.balance-decoration {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    opacity: 0.3;
}

.decoration-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.decoration-circle:hover {
    opacity: 0.8;
    transform: scale(1.1);
}

.balance-details {
    display: flex;
    flex-direction: row;
    gap: 12px;
    flex: 1;
    min-width: 0;
    flex-wrap: wrap;
}

.balance-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    flex: 1;
    min-width: 80px;
    max-width: 120px;
}

.balance-label {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
    font-weight: 500;
}

.balance-value {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.balance-value.income {
    color: #4caf50;
}

.balance-value.expense {
    color: #f44336;
}

/* 가까운 일정 */
.upcoming-schedules {
    margin-bottom: 24px;
}

.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.upcoming-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    background: #f8f9fa;
    border: 1px solid #e8eaed;
    transition: all 0.2s ease;
}

.upcoming-item:hover {
    background: #e8f0fe;
    border-color: #1a73e8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.15);
}

.upcoming-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    flex-shrink: 0;
}

.date-day {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.date-month {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.upcoming-content {
    flex: 1;
    min-width: 0;
}

.upcoming-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #202124;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.upcoming-time {
    font-size: 14px;
    color: #5f6368;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.upcoming-category {
    background: #e8f0fe;
    color: #1a73e8;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
}

.upcoming-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
}

/* 빈 상태 */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #5f6368;
}

.empty-state i {
    font-size: 48px;
    color: #dadce0;
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 14px;
    margin-bottom: 16px;
}

.empty-state .btn {
    font-size: 12px;
    padding: 8px 16px;
}

/* 중간 크기 화면 */
@media (max-width: 1200px) {
    .balance-summary {
    gap: 20px;
        flex-wrap: wrap;
    }
    
    .balance-amount {
        min-width: 250px;
        max-width: 350px;
        padding: 20px;
    }
    
    .balance-details {
        min-width: 0;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .balance-item {
        min-width: 70px;
        max-width: 100px;
        padding: 10px;
    }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 16px;
    }
    
    .dashboard-header {
    flex-direction: column;
    gap: 16px;
        align-items: flex-start;
}

    .dashboard-header h1 {
        font-size: 24px;
}

    .monthly-overview {
        grid-template-columns: 1fr;
        gap: 16px;
}

    .overview-card {
        padding: 24px;
        gap: 16px;
}

    .overview-icon {
    width: 48px;
    height: 48px;
        font-size: 20px;
    }
    
    .overview-content h2 {
        font-size: 28px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-content h3 {
        font-size: 24px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .dashboard-card {
    border-radius: 8px;
    }
    
    
    .card-content {
        padding: 16px;
    }
    
    .balance-summary {
    flex-direction: column;
        gap: 16px;
        min-height: auto;
    width: 100%;
    }
    
    .balance-amount {
        flex-direction: column;
    text-align: center;
        gap: 12px;
        min-width: auto;
        max-width: none;
        padding: 16px;
        width: 100%;
    }
    
    .balance-content h3 {
        font-size: 24px;
    }
    
    .balance-decoration {
        flex-direction: row;
        gap: 12px;
        margin-top: 16px;
    }
    
    .decoration-circle {
        width: 28px;
        height: 28px;
    font-size: 10px;
}

    .balance-details {
        flex-direction: row;
        gap: 8px;
        min-width: auto;
        width: 100%;
        flex-wrap: wrap;
    }
    
    .balance-item {
        flex-direction: column;
    align-items: center;
        min-width: auto;
        max-width: none;
        padding: 8px;
        flex: 1;
    }
    
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
}

/* 매우 작은 화면 */
@media (max-width: 480px) {
    .balance-summary {
        gap: 12px;
    }
    
    .balance-amount {
        padding: 12px;
    }
    
    .balance-content h3 {
    font-size: 20px;
}

    .balance-details {
        gap: 6px;
    }
    
    .balance-item {
        padding: 6px;
        font-size: 11px;
    }
    
    .balance-label {
        font-size: 10px;
    }
    
    .balance-value {
        font-size: 12px;
    }
    
    .admin-sidebar.open {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
        padding: 16px;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .login-card {
        margin: 16px;
        padding: 24px;
    }
    
    .table-container {
    overflow-x: auto;
}

.modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .admin-header {
        padding: 0 16px;
    }
    
    .admin-main {
        padding: 12px;
    }
    
    .dashboard-card {
        padding: 16px;
    }
    
    .card-value {
    font-size: 24px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}

/* 로딩 및 오류 상태 */
.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

.success {
    color: #28a745;
    font-size: 12px;
    margin-top: 5px;
}

/* 애니메이션 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.slide-in {
    animation: slideIn 0.3s ease-in-out;
}

/* FullCalendar 커서 설정 */
.fc-daygrid-day,
.fc-timegrid-slot,
.fc-event,
.fc-event-title,
.fc-daygrid-day-number {
    cursor: pointer !important;
}

.fc-daygrid-day:hover,
.fc-timegrid-slot:hover {
    background-color: rgba(0, 123, 255, 0.1) !important;
}

/* ==========================
   FullCalendar 모바일 최적화
   - 폰트 축소
   - 월/주/일/목록 버튼을 날짜(타이틀) 아래로 이동
   ========================== */
@media (max-width: 576px) {
    /* 툴바를 세로 배치하고 간격 축소 */
    .fc .fc-toolbar.fc-header-toolbar {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding: 8px 8px 12px;
    }

    /* 각 청크를 중앙 정렬, 너비 100% */
    .fc .fc-toolbar-chunk {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    /* 타이틀을 먼저, 버튼 그룹(좌/우)을 그 아래로 오도록 순서 지정 */
    .fc .fc-toolbar-chunk:nth-child(2) { order: 1; } /* 타이틀 */
    .fc .fc-toolbar-chunk:first-child,
    .fc .fc-toolbar-chunk:last-child { order: 2; }

    /* 타이틀/버튼/캘린더 내부 폰트 축소 */
    .fc .fc-toolbar-title { font-size: 16px; }
    .fc .fc-button { padding: 4px 8px; font-size: 12px; }
    .fc .fc-col-header-cell-cushion { font-size: 12px; }
    .fc .fc-daygrid-day-number { font-size: 11px; }
    .fc .fc-daygrid-event { font-size: 11px; }
    .fc .fc-list-day-cushion { font-size: 12px; }
    .fc .fc-list-event-time, .fc .fc-list-event-title { font-size: 13px; }
}

/* 다크모드 스타일 */
[data-theme="dark"] {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3a3a3a;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #808080;
    --border-color: #404040;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --accent-color: #4a9eff;
    --success-color: #4ade80;
    --warning-color: #fbbf24;
    --error-color: #f87171;
}

[data-theme="dark"] body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

[data-theme="dark"] .admin-header {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px var(--shadow-color);
}

[data-theme="dark"] .admin-sidebar {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-right: 1px solid var(--border-color);
    box-shadow: 2px 0 10px var(--shadow-color);
}

[data-theme="dark"] .admin-main {
    background-color: var(--bg-primary);
}

[data-theme="dark"] .dashboard-container {
    background-color: var(--bg-primary);
}

[data-theme="dark"] .dashboard-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
}

[data-theme="dark"] .card-header {
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .card-header h2 {
    color: var(--text-primary);
}

[data-theme="dark"] .stat-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
}

[data-theme="dark"] .stat-content h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .stat-content p {
    color: var(--text-secondary);
}

[data-theme="dark"] .overview-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
}

[data-theme="dark"] .overview-content h2 {
    color: var(--text-primary);
}

[data-theme="dark"] .overview-content p {
    color: var(--text-secondary);
}

[data-theme="dark"] .balance-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
}

[data-theme="dark"] .balance-content h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .balance-content p {
    color: var(--text-secondary);
}

[data-theme="dark"] .balance-label {
    color: var(--text-secondary);
}

[data-theme="dark"] .balance-value {
    color: var(--text-primary);
}

[data-theme="dark"] .balance-value.income {
    color: var(--success-color);
}

[data-theme="dark"] .balance-value.expense {
    color: var(--error-color);
}

[data-theme="dark"] .upcoming-item {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px var(--shadow-color);
}

[data-theme="dark"] .upcoming-content h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .upcoming-time {
    color: var(--text-secondary);
}

[data-theme="dark"] .upcoming-category {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

[data-theme="dark"] .recent-item {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    border-left: 4px solid #4CAF50;
    box-shadow: 0 2px 10px var(--shadow-color);
}

/* 다크모드 수입 (기타수입) - 초록색 */
[data-theme="dark"] .recent-item.income {
    border-left: 4px solid rgb(76, 175, 80);
}

/* 다크모드 지출 - 빨간색 */
[data-theme="dark"] .recent-item.expense {
    border-left: 4px solid rgb(244, 67, 54);
}

[data-theme="dark"] .recent-content h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .recent-time {
    color: var(--text-secondary);
}

/* 대시보드 최근 항목들 다크모드 */
[data-theme="dark"] .recent-item h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .item-content h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .item-date {
    color: var(--text-secondary);
}

[data-theme="dark"] .item-category {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

[data-theme="dark"] .item-amount {
    color: var(--text-primary);
}

[data-theme="dark"] .item-amount.income {
    color: var(--success-color);
}

[data-theme="dark"] .item-amount.expense {
    color: var(--error-color);
}

[data-theme="dark"] .recent-description {
    color: var(--text-secondary);
}

/* 대시보드 최근 활동 다크모드 */
[data-theme="dark"] .activity-item h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .activity-description {
    color: var(--text-secondary);
}

[data-theme="dark"] .activity-time {
    color: var(--text-muted);
}

[data-theme="dark"] .activity-badge {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

[data-theme="dark"] .transaction-type-badge {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

/* 빈 상태 다크모드 */
[data-theme="dark"] .empty-state {
    color: var(--text-secondary);
}

[data-theme="dark"] .empty-state i {
    color: var(--text-muted);
}

[data-theme="dark"] .transaction-type-badge {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

[data-theme="dark"] .btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, #3b82f6 100%);
    border: 1px solid var(--accent-color);
    color: white;
}

[data-theme="dark"] .btn:hover {
    background: linear-gradient(135deg, #3b82f6 0%, var(--accent-color) 100%);
    box-shadow: 0 4px 15px rgba(74, 158, 255, 0.3);
}

[data-theme="dark"] .btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .btn-outline:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

[data-theme="dark"] .btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

[data-theme="dark"] .btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

[data-theme="dark"] .nav-item {
    color: var(--text-primary);
    font-weight: 500;
}

[data-theme="dark"] .nav-item a {
    color: #aaa;
}

[data-theme="dark"] .nav-item a:hover {
    color: var(--accent-color);
    background: transparent;
}

[data-theme="dark"] .nav-item.active a {
    color: var(--accent-color);
    background: transparent;
}

/* 다크모드 하위 메뉴 스타일 */
[data-theme="dark"] .nav-submenu {
    background-color: var(--bg-tertiary);
    border-left: 3px solid var(--accent-color);
}

[data-theme="dark"] .nav-child {
    color: var(--text-primary);
    font-weight: 500;
}

[data-theme="dark"] .nav-child:hover {
    background-color: var(--bg-tertiary);
    color: var(--accent-color);
    border-left-color: transparent !important;
}

[data-theme="dark"] .nav-child.active {
    background-color: var(--bg-secondary);
    color: var(--accent-color);
    font-weight: 500;
    border-left: 3px solid transparent !important;
    border-left-color: transparent !important;
    position: relative;
}

[data-theme="dark"] .nav-child.active::before {
    display: none;
}

[data-theme="dark"] .nav-parent {
    color: var(--text-primary);
    font-weight: 500;
}

[data-theme="dark"] .nav-parent:hover {
    background-color: var(--bg-tertiary);
}

[data-theme="dark"] .nav-parent.active {
    background-color: var(--bg-tertiary);
}

/* 다크모드에서 마이보드 하위 메뉴가 활성화된 경우 부모 메뉴도 활성화 */
[data-theme="dark"] .nav-group:has(.nav-child.active) .nav-parent {
    background-color: var(--bg-tertiary);
}

[data-theme="dark"] .logo-text {
    color: var(--text-primary);
}

[data-theme="dark"] .user-info {
    color: var(--text-secondary);
}

[data-theme="dark"] .decoration-circle {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* 설정 페이지 스타일 */
.settings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.settings-header {
    text-align: center;
    margin-bottom: 32px;
}

.settings-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.settings-header p {
    font-size: 16px;
    color: #718096;
    margin: 0;
}

.settings-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.settings-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.section-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 24px;
    border-bottom: 1px solid #e2e8f0;
}

.section-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-content {
    padding: 24px;
}

.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid #f1f5f9;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-info {
    flex: 1;
}

.setting-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 4px 0;
}

.setting-info p {
    font-size: 14px;
    color: #718096;
    margin: 0;
}

.setting-control {
    margin-left: 24px;
}

/* 토글 스위치 */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .toggle-slider {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.toggle-slider:hover {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.settings-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
    padding: 24px;
    background: #f8fafc;
    border-radius: 12px;
}

.settings-actions .btn {
    min-width: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* 다크모드 설정 페이지 */
[data-theme="dark"] .settings-container {
    background-color: var(--bg-primary);
}

[data-theme="dark"] .settings-header h1 {
    color: var(--text-primary);
}

[data-theme="dark"] .settings-header p {
    color: var(--text-secondary);
}

[data-theme="dark"] .settings-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
}

[data-theme="dark"] .section-header {
    background: linear-gradient(135deg, var(--accent-color) 0%, #3b82f6 100%);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .section-header h2 {
    color: white;
}

[data-theme="dark"] .section-content {
    background: transparent;
}

[data-theme="dark"] .setting-item {
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .setting-info h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .setting-info p {
    color: var(--text-secondary);
}

[data-theme="dark"] .settings-actions {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

/* 반응형 설정 */
@media (max-width: 768px) {
    .settings-container {
        padding: 16px;
    }
    
    .settings-header h1 {
        font-size: 28px;
    }
    
    .section-content {
        padding: 16px;
    }
    
    .setting-item {
    flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .setting-control {
        margin-left: 0;
        align-self: flex-end;
    }
    
    .settings-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .settings-actions .btn {
    width: 100%;
        max-width: 300px;
    }
}

/* 가까운 일정 다크모드 */
[data-theme="dark"] .upcoming-item h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .upcoming-time {
    color: var(--text-secondary);
}

[data-theme="dark"] .upcoming-category {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

[data-theme="dark"] .upcoming-date {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

[data-theme="dark"] .date-day {
    color: var(--text-primary);
}

[data-theme="dark"] .date-month {
    color: var(--text-secondary);
}

/* 가계부 페이지 다크모드 */
[data-theme="dark"] .transaction-container {
    background-color: var(--bg-primary);
}

[data-theme="dark"] .transaction-header h1 {
    color: var(--text-primary);
}

[data-theme="dark"] .transaction-header p {
    color: var(--text-secondary);
}

[data-theme="dark"] .transaction-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
}

[data-theme="dark"] .section-header {
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .section-header h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .filter-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
}

[data-theme="dark"] .filter-group label {
    color: var(--text-primary);
}

[data-theme="dark"] .filter-group input,
[data-theme="dark"] .filter-group select {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .filter-group input:focus,
[data-theme="dark"] .filter-group select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 158, 255, 0.25);
}

[data-theme="dark"] .filter-group input::placeholder {
    color: var(--text-muted);
}

[data-theme="dark"] .transaction-form {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
}

[data-theme="dark"] .form-group label {
    color: var(--text-primary);
}

[data-theme="dark"] .form-control {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 158, 255, 0.25);
}

[data-theme="dark"] .form-control::placeholder {
    color: var(--text-muted);
}

[data-theme="dark"] .transaction-list {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    box-shadow: 0 4px 20px var(--shadow-color);
}

[data-theme="dark"] .transaction-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-left: 4px solid #4CAF50;
    box-shadow: 0 2px 10px var(--shadow-color);
}

/* 다크모드 수입 (기타수입) - 초록색 */
[data-theme="dark"] .transaction-item.income {
    border-left: 4px solid #4CAF50;
}

/* 다크모드 지출 - 빨간색 */
[data-theme="dark"] .transaction-item.expense {
    border-left: 4px solid #F44336;
}

[data-theme="dark"] .transaction-item:hover {
    background: var(--bg-primary);
    border-color: var(--accent-color);
}

[data-theme="dark"] .transaction-amount {
    color: var(--text-primary);
}

[data-theme="dark"] .transaction-amount.income {
    color: var(--success-color);
}

[data-theme="dark"] .transaction-amount.expense {
    color: var(--error-color);
}

[data-theme="dark"] .transaction-category {
    color: var(--text-secondary);
}

[data-theme="dark"] .transaction-date {
    color: var(--text-secondary);
}

[data-theme="dark"] .transaction-description {
    color: var(--text-secondary);
}

[data-theme="dark"] .transaction-category {
    color: var(--text-primary);
}

[data-theme="dark"] .transaction-actions {
    background: var(--bg-primary);
}

[data-theme="dark"] .transaction-actions button {
    color: var(--text-secondary);
}

[data-theme="dark"] .transaction-actions button:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

/* 가계부 모달 다크모드 */
[data-theme="dark"] .modal {
    background-color: rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] .modal-content {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
}

[data-theme="dark"] .modal-header {
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 20px 15px 20px;
}

[data-theme="dark"] .modal-header h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .close {
    color: var(--text-secondary);
}

[data-theme="dark"] .close:hover {
    color: var(--text-primary);
}

[data-theme="dark"] .form-row {
    background: transparent;
}

[data-theme="dark"] .form-row .form-group {
    background: transparent;
}

[data-theme="dark"] .form-row .form-group label {
    color: var(--text-primary);
}

[data-theme="dark"] .form-row .form-group input,
[data-theme="dark"] .form-row .form-group select,
[data-theme="dark"] .form-row .form-group textarea {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .form-row .form-group input:focus,
[data-theme="dark"] .form-row .form-group select:focus,
[data-theme="dark"] .form-row .form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 158, 255, 0.25);
}

[data-theme="dark"] .form-row .form-group input::placeholder,
[data-theme="dark"] .form-row .form-group textarea::placeholder {
    color: var(--text-muted);
}

[data-theme="dark"] .modal-footer {
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
    padding: 15px 20px 20px 20px;
}

[data-theme="dark"] .modal form {
    padding: 20px;
}

/* 삭제 확인 모달 다크모드 */
[data-theme="dark"] .delete-confirm-modal .modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .delete-confirm-modal .modal-header {
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .delete-confirm-modal .modal-header h3 {
    color: var(--error-color);
}

[data-theme="dark"] .delete-confirm-modal .modal-body p {
    color: var(--text-primary);
}

[data-theme="dark"] .delete-confirm-modal .confirm-warning {
    color: var(--text-secondary);
}

[data-theme="dark"] .delete-confirm-modal .modal-footer {
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .delete-confirm-modal .btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .delete-confirm-modal .btn-secondary:hover {
    background: var(--bg-primary);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

[data-theme="dark"] .delete-confirm-modal .btn-danger {
    background: var(--error-color);
    color: white;
}

[data-theme="dark"] .delete-confirm-modal .btn-danger:hover {
    background: #dc2626;
}

[data-theme="dark"] .modal-footer .btn {
    background: var(--accent-color);
    border: 1px solid var(--accent-color);
    color: white;
}

[data-theme="dark"] .modal-footer .btn:hover {
    background: #3b82f6;
    border-color: #3b82f6;
}

[data-theme="dark"] .modal-footer .btn-secondary {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .modal-footer .btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* 일정관리 페이지 다크모드 */
[data-theme="dark"] .schedule-container {
    background-color: var(--bg-primary);
}

[data-theme="dark"] .schedule-header h1 {
    color: var(--text-primary);
}

[data-theme="dark"] .schedule-header p {
    color: var(--text-secondary);
}

[data-theme="dark"] .schedule-form {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
}

[data-theme="dark"] .schedule-list {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
}

[data-theme="dark"] .schedule-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px var(--shadow-color);
}

[data-theme="dark"] .schedule-item:hover {
    background: var(--bg-primary);
    border-color: var(--accent-color);
}

[data-theme="dark"] .schedule-title {
    color: var(--text-primary);
}

[data-theme="dark"] .schedule-date {
    color: var(--text-secondary);
}

[data-theme="dark"] .schedule-category {
    background: var(--bg-primary);
    color: var(--text-secondary);
}

[data-theme="dark"] .schedule-description {
    color: var(--text-secondary);
}

[data-theme="dark"] .schedule-actions {
    background: var(--bg-primary);
}

[data-theme="dark"] .schedule-actions button {
    color: var(--text-secondary);
}

[data-theme="dark"] .schedule-actions button:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

/* 일정관리 페이지 추가 다크모드 */
[data-theme="dark"] .schedule-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
}

[data-theme="dark"] .schedule-filter-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
}

[data-theme="dark"] .schedule-filter-group label {
    color: var(--text-primary);
}

[data-theme="dark"] .schedule-filter-group input,
[data-theme="dark"] .schedule-filter-group select {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .schedule-filter-group input:focus,
[data-theme="dark"] .schedule-filter-group select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 158, 255, 0.25);
}

[data-theme="dark"] .schedule-filter-group input::placeholder {
    color: var(--text-muted);
}

/* 일정관리 모달 다크모드 */
[data-theme="dark"] .schedule-modal .modal-content {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
}

[data-theme="dark"] .schedule-modal .modal-header {
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .schedule-modal .modal-header h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .schedule-modal .close {
    color: var(--text-secondary);
}

[data-theme="dark"] .schedule-modal .close:hover {
    color: var(--text-primary);
}

[data-theme="dark"] .schedule-modal .form-group label {
    color: var(--text-primary);
}

[data-theme="dark"] .schedule-modal .form-group input,
[data-theme="dark"] .schedule-modal .form-group select,
[data-theme="dark"] .schedule-modal .form-group textarea {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .schedule-modal .form-group input:focus,
[data-theme="dark"] .schedule-modal .form-group select:focus,
[data-theme="dark"] .schedule-modal .form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 158, 255, 0.25);
}

[data-theme="dark"] .schedule-modal .form-group input::placeholder,
[data-theme="dark"] .schedule-modal .form-group textarea::placeholder {
    color: var(--text-muted);
}

[data-theme="dark"] .schedule-modal .modal-footer {
    background: var(--bg-tertiary);
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .schedule-modal .modal-footer .btn {
    background: var(--accent-color);
    border: 1px solid var(--accent-color);
    color: white;
}

[data-theme="dark"] .schedule-modal .modal-footer .btn:hover {
    background: #3b82f6;
    border-color: #3b82f6;
}

[data-theme="dark"] .schedule-modal .modal-footer .btn-secondary {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .schedule-modal .modal-footer .btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* FullCalendar 다크모드 */
[data-theme="dark"] .fc {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

[data-theme="dark"] .fc-toolbar {
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .fc-toolbar-title {
    color: var(--text-primary);
}

[data-theme="dark"] .fc-button {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .fc-button:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-color);
}

[data-theme="dark"] .fc-button-primary {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

[data-theme="dark"] .fc-button-primary:hover {
    background: #3b82f6;
    border-color: #3b82f6;
}

[data-theme="dark"] .fc-daygrid-day {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .fc-daygrid-day:hover {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .fc-daygrid-day-number {
    color: var(--text-primary);
}

[data-theme="dark"] .fc-daygrid-day.fc-day-today {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    color: var(--accent-color);
    font-weight: bold;
}

[data-theme="dark"] .fc-event {
    background: var(--accent-color);
    border: 1px solid var(--accent-color);
    color: white;
}

[data-theme="dark"] .fc-event:hover {
    background: #3b82f6;
    border-color: #3b82f6;
}

[data-theme="dark"] .fc-event-title {
    color: white;
}

[data-theme="dark"] .fc-daygrid-event {
    background: var(--accent-color);
    border: 1px solid var(--accent-color);
}

[data-theme="dark"] .fc-daygrid-event:hover {
    background: #3b82f6;
    border-color: #3b82f6;
}

[data-theme="dark"] .fc-popover {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
}

[data-theme="dark"] .fc-popover-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .fc-popover-title {
    color: var(--text-primary);
}

[data-theme="dark"] .fc-popover-close {
    color: var(--text-secondary);
}

[data-theme="dark"] .fc-popover-close:hover {
    color: var(--text-primary);
}

[data-theme="dark"] .fc-popover-body {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* FullCalendar 요일 헤더 다크모드 */
[data-theme="dark"] .fc-scrollgrid {
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .fc-scrollgrid-sync-inner {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

[data-theme="dark"] .fc-col-header {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .fc-col-header-cell {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .fc-col-header-cell-cushion {
    color: var(--text-primary);
    font-weight: 600;
}

[data-theme="dark"] .fc-scrollgrid-section-header {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .fc-scrollgrid-section-header > td {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .fc-scrollgrid-section-body {
    background: var(--bg-secondary);
}

[data-theme="dark"] .fc-scrollgrid-section-body > td {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .fc-scrollgrid-section-footer {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .fc-scrollgrid-section-footer > td {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

/* FullCalendar 스크롤바 다크모드 */
[data-theme="dark"] .fc-scroller {
    background: var(--bg-secondary);
}

[data-theme="dark"] .fc-scroller::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

[data-theme="dark"] .fc-scroller::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

[data-theme="dark"] .fc-scroller::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

[data-theme="dark"] .fc-scroller::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* FullCalendar 시간축 다크모드 */
[data-theme="dark"] .fc-timegrid-axis {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

[data-theme="dark"] .fc-timegrid-slot {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .fc-timegrid-slot-label {
    color: var(--text-secondary);
}

[data-theme="dark"] .fc-timegrid-slot-minor {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

/* FullCalendar 리스트뷰 다크모드 */
[data-theme="dark"] .fc-list {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .fc-list-day-cushion {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

[data-theme="dark"] .fc-list-event {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .fc-list-event:hover {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .fc-list-event-time {
    color: var(--text-secondary);
}

[data-theme="dark"] .fc-list-event-title {
    color: var(--text-primary);
}

/* 요약 카드 다크모드 */
[data-theme="dark"] .summary-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
}

[data-theme="dark"] .summary-card.income {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.1) 0%, rgba(34, 197, 94, 0.1) 100%);
    border: 1px solid var(--success-color);
    box-shadow: 0 4px 20px rgba(74, 222, 128, 0.2);
}

[data-theme="dark"] .summary-card.expense {
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.1) 0%, rgba(239, 68, 68, 0.1) 100%);
    border: 1px solid var(--error-color);
    box-shadow: 0 4px 20px rgba(248, 113, 113, 0.2);
}

[data-theme="dark"] .summary-card.balance {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border: 1px solid var(--accent-color);
    box-shadow: 0 4px 20px rgba(74, 158, 255, 0.2);
}

[data-theme="dark"] .summary-card h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .summary-card .amount {
    color: var(--text-primary);
}

[data-theme="dark"] .summary-card.income .amount {
    color: var(--success-color);
}

[data-theme="dark"] .summary-card.expense .amount {
    color: var(--error-color);
}

[data-theme="dark"] .summary-card.balance .amount {
    color: var(--accent-color);
}

[data-theme="dark"] .summary-card .label {
    color: var(--text-secondary);
}

[data-theme="dark"] .summary-card .icon {
    color: var(--text-secondary);
}

[data-theme="dark"] .summary-card.income .icon {
    color: var(--success-color);
}

[data-theme="dark"] .summary-card.expense .icon {
    color: var(--error-color);
}

[data-theme="dark"] .summary-card.balance .icon {
    color: var(--accent-color);
}

/* 통계 카드 다크모드 */
[data-theme="dark"] .stats-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
}

[data-theme="dark"] .stats-card h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .stats-card .stat-value {
    color: var(--text-primary);
}

[data-theme="dark"] .stats-card .stat-label {
    color: var(--text-secondary);
}

[data-theme="dark"] .stats-card .stat-icon {
    color: var(--text-secondary);
}

/* 차트 카드 다크모드 */
[data-theme="dark"] .chart-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
}

[data-theme="dark"] .chart-card h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .chart-card .chart-container {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

/* 월별 요약 카드 다크모드 */
[data-theme="dark"] .monthly-summary-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
}

[data-theme="dark"] .monthly-summary-card h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .monthly-summary-card .summary-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .monthly-summary-card .summary-item .label {
    color: var(--text-secondary);
}

[data-theme="dark"] .monthly-summary-card .summary-item .value {
    color: var(--text-primary);
}

[data-theme="dark"] .monthly-summary-card .summary-item.income .value {
    color: var(--success-color);
}

[data-theme="dark"] .monthly-summary-card .summary-item.expense .value {
    color: var(--error-color);
}

[data-theme="dark"] .monthly-summary-card .summary-item.balance .value {
    color: var(--accent-color);
}

/* 가계부 수입/지출/잔액 제목 및 가격 다크모드 */
[data-theme="dark"] .monthly-overview h2 {
    color: var(--text-primary);
}

[data-theme="dark"] .overview-card h2 {
    color: var(--text-primary);
}

[data-theme="dark"] .overview-card .overview-amount {
    color: var(--text-primary);
    font-weight: 700;
}

[data-theme="dark"] .overview-card.income .overview-amount {
    color: var(--success-color);
}

[data-theme="dark"] .overview-card.expense .overview-amount {
    color: var(--error-color);
}

[data-theme="dark"] .overview-card.balance .overview-amount {
    color: var(--accent-color);
}

[data-theme="dark"] .overview-card .overview-label {
    color: var(--text-secondary);
}

[data-theme="dark"] .overview-card .overview-description {
    color: var(--text-muted);
}

/* 가계부 통계 카드 다크모드 */
[data-theme="dark"] .stats-overview h2 {
    color: var(--text-primary);
}

[data-theme="dark"] .stat-card h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .stat-card .stat-amount {
    color: var(--text-primary);
    font-weight: 700;
}

[data-theme="dark"] .stat-card.income .stat-amount {
    color: var(--success-color);
}

[data-theme="dark"] .stat-card.expense .stat-amount {
    color: var(--error-color);
}

[data-theme="dark"] .stat-card.balance .stat-amount {
    color: var(--accent-color);
}

[data-theme="dark"] .stat-card .stat-label {
    color: var(--text-secondary);
}

[data-theme="dark"] .stat-card .stat-description {
    color: var(--text-muted);
}

/* 가계부 요약 섹션 다크모드 */
[data-theme="dark"] .summary-section h2 {
    color: var(--text-primary);
}

[data-theme="dark"] .summary-section .summary-item h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .summary-section .summary-item .amount {
    color: var(--text-primary);
    font-weight: 700;
}

[data-theme="dark"] .summary-section .summary-item.income .amount {
    color: var(--success-color);
}

[data-theme="dark"] .summary-section .summary-item.expense .amount {
    color: var(--error-color);
}

[data-theme="dark"] .summary-section .summary-item.balance .amount {
    color: var(--accent-color);
}

[data-theme="dark"] .summary-section .summary-item .label {
    color: var(--text-secondary);
}

[data-theme="dark"] .summary-section .summary-item .description {
    color: var(--text-muted);
}

/* 가계부 금액 표시 다크모드 */
[data-theme="dark"] .amount-display {
    color: var(--text-primary);
    font-weight: 700;
}

[data-theme="dark"] .amount-display.income {
    color: var(--success-color);
}

[data-theme="dark"] .amount-display.expense {
    color: var(--error-color);
}

[data-theme="dark"] .amount-display.balance {
    color: var(--accent-color);
}

[data-theme="dark"] .amount-display.positive {
    color: var(--success-color);
}

[data-theme="dark"] .amount-display.negative {
    color: var(--error-color);
}

/* 가계부 라벨 및 설명 다크모드 */
[data-theme="dark"] .amount-label {
    color: var(--text-secondary);
}

[data-theme="dark"] .amount-description {
    color: var(--text-muted);
}

[data-theme="dark"] .amount-unit {
    color: var(--text-muted);
}

/* 가계부 월별 요약 카드 다크모드 */
[data-theme="dark"] .summary-card .summary-label {
    color: var(--text-primary);
    font-weight: 600;
}

[data-theme="dark"] .summary-card .summary-amount {
    color: var(--text-primary);
    font-weight: 700;
}

[data-theme="dark"] .summary-card.income .summary-amount {
    color: var(--success-color);
}

[data-theme="dark"] .summary-card.expense .summary-amount {
    color: var(--error-color);
}

[data-theme="dark"] .summary-card.balance .summary-amount {
    color: var(--accent-color);
}

/* 잔액 금액 파란색 강화 */
[data-theme="dark"] .summary-card.balance .summary-amount {
    color: #4a9eff !important;
}

/* 가계부 필터 섹션 다크모드 */
[data-theme="dark"] .filter-section label {
    color: var(--text-primary);
}

[data-theme="dark"] .filter-section select,
[data-theme="dark"] .filter-section input {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .filter-section select:focus,
[data-theme="dark"] .filter-section input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
}

/* 가계부 거래 내역 섹션 다크모드 */
[data-theme="dark"] .transaction-section .section-header h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .transaction-list {
    background: var(--bg-secondary);
}

[data-theme="dark"] .transaction-item {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    border-left: 4px solid #4CAF50;
}

/* 다크모드 수입 (기타수입) - 초록색 */
[data-theme="dark"] .transaction-item.income {
    border-left: 4px solid #4CAF50;
}

/* 다크모드 지출 - 빨간색 */
[data-theme="dark"] .transaction-item.expense {
    border-left: 4px solid #F44336;
}

[data-theme="dark"] .transaction-item:hover {
    background: var(--bg-hover);
}

[data-theme="dark"] .transaction-amount {
    color: var(--text-primary);
    font-weight: 700;
}

[data-theme="dark"] .transaction-amount.income {
    color: var(--success-color);
}

[data-theme="dark"] .transaction-amount.expense {
    color: var(--error-color);
}

[data-theme="dark"] .transaction-category {
    color: var(--text-secondary);
}

[data-theme="dark"] .transaction-date {
    color: var(--text-secondary);
}

[data-theme="dark"] .transaction-description {
    color: var(--text-secondary);
}

[data-theme="dark"] .transaction-category {
    color: var(--text-primary);
}

[data-theme="dark"] .transaction-actions {
    color: var(--text-muted);
}

/* 가계부 모달 다크모드 */
[data-theme="dark"] .modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .modal-header h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .modal .close {
    color: var(--text-primary);
}

[data-theme="dark"] .modal .close:hover {
    color: var(--error-color);
}

[data-theme="dark"] .form-group label {
    color: var(--text-primary);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
}

[data-theme="dark"] .modal-footer {
    border-top: 1px solid var(--border-color);
}

/* 링크 관리 다크모드 */
[data-theme="dark"] .link-container {
    background: var(--bg-primary);
}

[data-theme="dark"] .link-form-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .link-form-section .section-header h2 {
    color: var(--text-primary);
}

[data-theme="dark"] .link-form .form-group label {
    color: var(--text-primary);
}

[data-theme="dark"] .link-form .form-group input,
[data-theme="dark"] .link-form .form-group select,
[data-theme="dark"] .link-form .form-group textarea {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .link-form .form-group input:focus,
[data-theme="dark"] .link-form .form-group select:focus,
[data-theme="dark"] .link-form .form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
}

[data-theme="dark"] .link-list-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .link-list-section .section-header h2 {
    color: var(--text-primary);
}

[data-theme="dark"] .link-stats {
    color: var(--text-secondary);
}

[data-theme="dark"] .link-stats .stat-item strong {
    color: var(--text-primary);
}

[data-theme="dark"] .link-filter {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .link-filter .filter-group label {
    color: var(--text-primary);
}

[data-theme="dark"] .link-filter .filter-group select {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .link-item {
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .link-item:hover {
    background: var(--bg-tertiary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

[data-theme="dark"] .section-header {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .section-header h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .link-item.inactive {
    opacity: 0.6;
    background: var(--bg-muted);
}

[data-theme="dark"] .link-title .link-url {
    color: var(--text-primary);
}

[data-theme="dark"] .link-title .link-url:hover {
    color: var(--accent-color);
}

[data-theme="dark"] .link-date {
    color: var(--text-secondary);
}

[data-theme="dark"] .link-description {
    color: var(--text-secondary);
}

[data-theme="dark"] .link-meta {
    color: var(--text-secondary);
}


[data-theme="dark"] .link-meta .link-date {
    color: var(--text-muted);
}

[data-theme="dark"] .link-description {
    color: var(--text-secondary);
}

[data-theme="dark"] .link-actions .btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .link-actions .btn:hover {
    background: var(--bg-hover);
}

[data-theme="dark"] .link-actions .btn-danger:hover {
    background: var(--error-color);
    color: white;
}

[data-theme="dark"] .empty-state {
    color: var(--text-muted);
}

[data-theme="dark"] .empty-state i {
    color: var(--text-secondary);
}

/* 링크 관리 모달 다크모드 */
[data-theme="dark"] .link-modal .modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .link-modal .modal-header h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .link-modal .close {
    color: var(--text-primary);
}

[data-theme="dark"] .link-modal .close:hover {
    color: var(--error-color);
}

[data-theme="dark"] .link-modal .form-group label {
    color: var(--text-primary);
}

[data-theme="dark"] .link-modal .form-group input,
[data-theme="dark"] .link-modal .form-group select,
[data-theme="dark"] .link-modal .form-group textarea {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .link-modal .form-group input:focus,
[data-theme="dark"] .link-modal .form-group select:focus,
[data-theme="dark"] .link-modal .form-group textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
}

[data-theme="dark"] .checkbox-label {
    color: var(--text-primary);
}

[data-theme="dark"] .checkbox-label .checkmark {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .checkbox-label input:checked ~ .checkmark {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

[data-theme="dark"] .link-modal .modal-footer {
    border-top: 1px solid var(--border-color);
}

/* 링크 관리 기본 스타일 */
.link-container {
    padding: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.link-form-section,
.link-list-section {
    background: white;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
}

.section-header h2 {
    color: #202124;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.link-stats {
    display: flex;
    gap: 16px;
    font-size: 14px;
}

.stat-item {
    color: #5f6368;
}

.stat-item strong {
    color: #202124;
    font-weight: 600;
}

.link-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #202124;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4a9eff;
    box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 16px;
}

.link-filter {
    display: flex;
    gap: 16px;
    align-items: end;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 16px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-group label {
    font-size: 12px;
    font-weight: 500;
    color: #5f6368;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 14px;
}

.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

.transaction-section {
    margin-bottom: 24px;
}

.link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 6px;
    background: var(--bg-secondary);
    border-left: 4px solid #007bff;
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 60px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    max-width: 800px;
}

.link-item:hover {
    background: #e8f0fe;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.link-item.inactive {
    opacity: 0.6;
    background: #f8f9fa;
}



.link-info {
    flex: 1;
}

.link-title {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.link-title .link-url {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
}

.link-title .link-url:hover {
    color: #4a9eff;
    text-decoration: underline;
}

.link-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.link-category {
    color: #4a9eff;
    font-weight: 500;
}

.link-date {
    font-size: 14px;
    color: #666;
}

.link-description {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

.link-amount {
    display: flex;
    align-items: center;
    gap: 8px;
}

.link-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: white;
    background: #007bff;
}


.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #5f6368;
}

.empty-state i {
    font-size: 48px;
    color: #dadce0;
    margin-bottom: 16px;
}

.empty-state p {
    margin: 8px 0;
    font-size: 16px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #dadce0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checkbox-label input:checked ~ .checkmark {
    background: #4a9eff;
    border-color: #4a9eff;
}

.checkbox-label input:checked ~ .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* 로그인 페이지 다크모드 */
[data-theme="dark"] .login-container {
    background: var(--bg-primary);
    min-height: 100vh;
}

[data-theme="dark"] .login-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .login-header {
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .login-title {
    color: var(--text-primary);
}

[data-theme="dark"] .login-subtitle {
    color: var(--text-secondary);
}

[data-theme="dark"] .form-label {
    color: var(--text-primary);
}

[data-theme="dark"] .form-input {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .form-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(74, 158, 255, 0.2);
}

[data-theme="dark"] .form-input::placeholder {
    color: var(--text-muted);
}

[data-theme="dark"] .login-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

[data-theme="dark"] .login-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

[data-theme="dark"] .login-btn:active {
    background: linear-gradient(135deg, #4e5bc6 0%, #5e3a7e 100%);
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

/* 로그인 페이지 오류 메시지 다크모드 */
[data-theme="dark"] .error-message {
    background: rgba(248, 113, 113, 0.1);
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

/* 로그인 페이지 정보 섹션 다크모드 */
[data-theme="dark"] .login-info {
    border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .login-info p {
    color: var(--text-secondary);
}

[data-theme="dark"] .login-info .info-box {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

[data-theme="dark"] .login-info .info-box strong {
    color: var(--text-primary);
}

[data-theme="dark"] .login-info .info-box br {
    color: var(--text-muted);
}

/* 로그인 페이지 링크 다크모드 */
[data-theme="dark"] .login-link {
    color: var(--accent-color);
}

[data-theme="dark"] .login-link:hover {
    color: var(--accent-hover);
}

/* 로그인 페이지 아이콘 다크모드 */
[data-theme="dark"] .login-icon {
    color: var(--text-secondary);
}

[data-theme="dark"] .login-icon.error {
    color: var(--error-color);
}

[data-theme="dark"] .login-icon.info {
    color: var(--accent-color);
}

/* 로그인 페이지 추가 다크모드 스타일 */
[data-theme="dark"] .error-message {
    background: rgba(248, 113, 113, 0.1);
    color: var(--error-color);
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 24px;
    font-size: 14px;
    border: 1px solid var(--error-color);
}

[data-theme="dark"] .login-info {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

[data-theme="dark"] .login-info p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

[data-theme="dark"] .info-box {
    background: var(--bg-tertiary);
    padding: 12px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .info-box strong {
    color: var(--text-primary);
}

[data-theme="dark"] .login-link-container {
    margin-top: 24px;
    text-align: center;
}

[data-theme="dark"] .login-link {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 14px;
}

[data-theme="dark"] .login-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

[data-theme="dark"] .login-icon {
    margin-right: 8px;
}

[data-theme="dark"] .login-icon.error {
    color: var(--error-color);
}

[data-theme="dark"] .login-icon.info {
    color: var(--accent-color);
}

/* 로그인 버튼 아이콘 다크모드 */
[data-theme="dark"] .login-btn i {
    margin-right: 8px;
    color: white;
}

/* 대시보드 헤더 다크모드 */
[data-theme="dark"] .dashboard-header h1 {
    color: var(--text-primary);
}

[data-theme="dark"] .dashboard-header {
    color: var(--text-primary);
}

/* ============================================
   FullCalendar 이벤트 제목 폰트 크기 (공통)
   ============================================ */
/* 달력 - eventContent 내부 div 요소 */
#calendar .fc-event div {
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 0px 1px !important;
}

.login-card {
    position: relative;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.form-group label i {
    color: #007bff;
    font-size: 14px;
    width: 16px;
}

.form-input {
    padding-left: 40px !important;
    position: relative;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}

.form-input:focus + .input-icon,
.form-group:focus-within .input-icon {
    color: #007bff;
}

.wd-full-btn {
    width: 100%;
    margin-top: 8px;
}