body {
	font-family: Arial, sans-serif;
	background-color: #f8f8f8;
	margin: 0;
	padding: 0;
	/* Apply this to the body or main container element to prevent horizontal scrolling */
	overflow-x: hidden;
}

/* PWA 업데이트 알림 애니메이션 */
@keyframes slideIn {
	from {
		transform: translateX(100%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

/* PWA 새로고침 버튼 애니메이션 */
.pwa-refresh-button:active {
	transform: scale(0.95) !important;
}

/* PWA 새로고침 버튼 - 기존 scroll button 스타일과 통합 */
.pwa-refresh-button.scrollButton {
	position: relative !important;
	bottom: auto !important;
	right: auto !important;
	width: auto !important;
	height: auto !important;
	border-radius: 8px !important;
	background: #f0f0f0 !important;
	color: #666 !important;
	font-size: 16px !important;
	box-shadow: none !important;
	z-index: auto !important;
	display: inline-flex !important;
	margin: 0 !important;
	transition: all 0.2s ease !important;
}

/* 업데이트 알림 스타일 */
.pwa-update-notification {
	animation: slideIn 0.3s ease-out;
}

.pwa-update-notification:hover {
	background: #5a52d1 !important;
	transform: translateY(-2px);
	transition: all 0.2s ease;
}
.prompt-container {
	max-width: 600px;
	margin: 40px auto;
	padding: 20px;
	background-color: #ffffff;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	border-radius: 5px;
}
h1 {
	margin-bottom: 30px;
	/* 상단 여백 추가 - 날짜 헤더가 상단바 아래에 충분한 여백을 갖도록 함 */
	margin-top: 20px;
	padding-top: 15px;
	scroll-margin-top: 60px; /* 스크롤 시 상단바를 고려한 여백 추가 */
}
ul {
    list-style-type: none; /* Remove default bullets */
    padding: 0;
    margin: 0;
}
#output.markdown-body {
  background-color: #ffffff;  /* White background */
  color: #000000;             /* Black text */
  font-family: sans-serif;    /* Sans-serif font */
  padding: 16px;
  border-radius: 6px;
}

#output.markdown-body pre code {
  background-color: #0d1117;  /* Dark gray background */
  color: #c9d1d9;             /* Light gray text */
  padding: 4px 8px;
  border-radius: 6px;
  font-family: monospace;
  white-space: pre-wrap;
  word-wrap: break-word;
  display: block;
  overflow-wrap: break-word;
}

.code-toggle {
  color: #ffffff;             /* White text for visibility */
  background-color: #333333;  /* Slightly lighter gray than code block for contrast */
  padding: 4px 8px;
  cursor: pointer;
  font-family: sans-serif;
  border-radius: 6px;
  margin-bottom: 4px;
  display: block;
  user-select: none;          /* Prevent text selection */
}
/* 모든 bullet 제거 */
.normal::before,
.goals::before,
.emotions_feelings::before,
.health::before,
.world::before,
.meal::before,
.interest::before,
.career::before,
.finance::before,
.applewatch::before,
.self_reflect::before,
.details::before,
li.multi-tag::before {
    content: '';
    margin: 0;
}
#dateHeader {
    margin-right: 10px;
}

label {
	display: block;
	font-weight: bold;
	margin-top: 5px;
}
input[type="text"], textarea {
	width: 100%;
	padding: 12px;
	box-sizing: border-box;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	font-size: 14px;
	transition: all 0.2s ease;
	background-color: #f8f8f8;
}

input[type="text"]:focus, textarea:focus {
	outline: none;
	border-color: #6c5ce7;
	background-color: #ffffff;
	box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

textarea {
	min-height: 40px;
	resize: vertical;
	line-height: 1.5;
}

.styled-button {
	background-color: #e9e4ff !important; /* 연한 보라색 배경으로 변경 */
	color: #4a3f9f !important; /* 진한 보라색 글자로 변경 */
	border: none !important;
	padding: 6px 12px !important;
	text-align: center !important;
	text-decoration: none !important;
	display: inline-block !important;
	font-size: 14px !important;
	margin: 0 5px !important;
	cursor: pointer !important;
	border-radius: 6px !important;
	box-sizing: border-box !important;
	transition: all 0.2s ease !important;
	font-weight: 500 !important; /* 글자를 약간 두껍게 */
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.styled-button:hover {
	background-color: #d8d0ff !important; /* 호버 시 약간 더 진한 보라색 */
	transform: translateY(-2px) !important;
	box-shadow: 0 2px 5px rgba(108, 92, 231, 0.25) !important;
}

.styled-button:disabled {
	background-color: #cccccc !important;
	color: #999 !important;
	cursor: not-allowed !important;
	transform: none !important;
	box-shadow: none !important;
}

/*
  Tag selection container
*/
.emoji-container {
    display: flex;
    gap: 4px;
    padding: 4px;
    align-items: center;
	justify-content: center; /* Centers items horizontally */
}

.primary-tags, .secondary-tags {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 2px;
    background: #f5f5f5;
}

.emoji {
    font-size: 18px;
    cursor: pointer;
    padding: 2px;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.emoji:hover {
    background: #e0e0e0;
    transform: scale(1.1);
}

.emoji.selected {
    background: #6c5ce7;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transform: scale(1.1);
}

/* 
  Submit button styles
*/
#create-entry {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
	/*background color is dary gray*/
    background: #999999;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#create-entry:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#create-entry:hover:not(:disabled) {
    background: #55ab62;
    transform: translateY(-2px);
}

#create-entry svg {
    width: 20px;
    height: 20px;
}


/*
Buttons
for categories and keyword filtering
*/

.button-container {
	display: flex;
	gap: 5px;
	padding: 10px;
	margin: 5px auto; /* Top and bottom margins of 20px, and auto margins on left and right */
	align-items: center; /* Centers children horizontally */
	justify-content: center; /* Centers items horizontally */

}
.search-container {
	display: flex; /* Aligns the search input and button next to each other */
	gap: 5px; /* Space between input and button */
}

.search-input {
	flex-grow: 1; /* Allows the input to grow and fill the space */
}
/* Content contianer */
.content-container {
	max-width: 600px;
	margin: 40px auto;
	display: flex;
	justify-content: space-between;
}
.content {
	padding-left: 20px;
	padding-right: 20px;
}

/* 스크롤 버튼 컨테이너 - 기본적으로 숨겨둠 */
.scroll-buttons-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transform-origin: bottom right;
    transition: all 0.2s ease-out;
}

/* 펼쳐진 상태 */
.scroll-buttons-container.expanded {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* 행 정렬 */
.scroll-buttons-row {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    position: relative;
}

/* 스크롤 버튼 기본 스타일 */
.scrollButton {
    --button-size: 45px;
    --button-spacing: 12px;
    
    width: var(--button-size);
    height: var(--button-size);
    border-radius: 50%;
    border: none;
    outline: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    
    /* 중앙 정렬 */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* 애니메이션 */
    transition: all 0.2s ease;
    opacity: 0.85;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.scrollButton:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 기본 버튼 색상 */
.scroll-button-primary {
    background-color: #777;  /* 카테고리 버튼용 밝은 회색 */
}

.scroll-button-secondary {
    background-color: #555;  /* 시스템 버튼용 어두운 회색 */
}

.scroll-button-danger {
    background-color: #e74c3c;  /* 로그아웃 버튼 빨간색 */
}

/* 특정 버튼 색상 오버라이드 */
#topBtn {
    background-color: #2ecc71 !important;  /* 초록색 */
}

#refresh_btn {
    background-color: #1e6bb8 !important; /* 다크 블루 */
}

#showall_btn {
    background-color: #1e6bb8 !important; /* 다크 블루 */
}

#notification_btn {
    background-color: #6c5ce7 !important; /* 보라색 */
}

/* 메인 토글 버튼 */
.main-toggle-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #6c5ce7;
    color: white;
    border: none;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

/* 메인 버튼 컨테이너 - 토글 버튼과 퀵 리프레시 버튼을 포함 */
.main-buttons-container {
    position: fixed;
    bottom: 65px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 100;
}

/* 퀵 리프레시 버튼 */
.quick-refresh-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1e6bb8;
    color: white;
    border: none;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.quick-refresh-button:hover {
    background-color: #1a5c9e;
    transform: translateY(-2px) rotate(20deg);
    box-shadow: 0 5px 12px rgba(0,0,0,0.3);
}

.main-toggle-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.3);
}

.main-toggle-button.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(0);
}

/* 접기 버튼 */
.collapse-button {
    font-size: 18px !important;
    font-weight: bold;
}

/* 버튼 순서 지정 */
#collapse-buttons {
    order: 999;  /* 맨 오른쪽에 위치 */
}

#topBtn {
    order: 998;  /* 오른쪽에서 두 번째 위치 */
}

/* 첫번째 줄 버튼 순서 */
#last_year_btn { order: 1; }
#this_year_btn { order: 2; }
#showall_btn { order: 3; }
#refresh_btn { order: 4; }
#topBtn { order: 5; }

/* 카테고리 버튼 순서 */
#emotion_btn { order: 1; }
#goals_btn { order: 2; }
#health_btn { order: 3; }
#finance_btn { order: 4; }
#world_btn { order: 5; }
#meal_btn { order: 6; }
#interest_btn { order: 7; }
#career_btn { order: 8; }

/* 세번째 줄 버튼 순서 */
#notification_btn { order: 1; }
#admin_btn { order: 2; }
#logout_btn { order: 3; }
#collapse-buttons { order: 4; }

/* 검색 버튼 스타일 */
#search_btn {
    z-index: 99;
    font-size: 12px;
    border: none;
    outline: none;
    color: white;
    cursor: pointer;
    padding: 10px;
    border-radius: 4px;
}

/* 반응형 디자인 - 태블릿 */
@media (max-width: 768px) {
    .scrollButton {
        --button-size: 38px;
        font-size: 15px;
    }
    
    .scroll-buttons-container {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }
    
    .scroll-buttons-row {
        gap: 8px;
    }
    
    .main-buttons-container {
        bottom: 30px;
        right: 15px;
        gap: 8px;
    }
    
    .main-toggle-button {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }
    
    .quick-refresh-button {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

/* 반응형 디자인 - 모바일 */
@media (max-width: 480px) {
    .scrollButton {
        --button-size: 32px;
        font-size: 13px;
    }
    
    .scroll-buttons-container {
        bottom: 65px;  /* iOS Safari 하단 UI 고려 */
        right: 10px;
        gap: 8px;
    }
    
    .scroll-buttons-row {
        gap: 6px;
    }
    
    .main-buttons-container {
        bottom: 80px;  /* iOS Safari 하단 UI 고려 */
        right: 10px;
        gap: 8px;
    }
    
    .main-toggle-button {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .quick-refresh-button {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

/* Styles added for chat box */
#chat-container {
	max-width: 600px;
	margin: 40px auto;
	overflow-y: auto;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 3px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	margin-bottom: 10px;
}

#chat-container p {
	padding: 10px;
	border-radius: 3px;
	margin-bottom: 10px;
}

#chat-container .user-message {

	background-color: #eeeeee;
	padding: 10px;
	border-radius: 3px;
	margin-bottom: 10px;
}

#chat-container .model-message {
	background-color: #54a885;
	color: #ffffff;
	padding: 10px;
	border-radius: 3px;
	margin-bottom: 10px;
}


#chat-form {
	max-width: 600px;
	margin: 40px auto;
	display: flex;
	justify-content: space-between;
}

#chat-form input {
	width: 80%;
	padding: 10px;
	box-sizing: border-box;
	border: 1px solid #ccc;
	border-radius: 3px;
}

#chat-form button {
	width: 18%;
	padding: 10px;
	color: #ffffff;
	font-weight: bold;
	border: none;
	border-radius: 3px;
	background-color: #007BFF;
	cursor: pointer;
}

#chat-form button:hover {
	background-color: #0056b3;
}
.uploaded-image {
	display: block;
	max-width: 100px;
	max-height: 100px;
	margin-top: 10px;
}
.upload-icon {
    margin-right: 10px;
    cursor: pointer;
    font-size: 24px; /* Adjust as needed */
}
/* chat box done */

/* location tool tip */
/* Tooltip container */
.tooltip {
	position: relative;
	display: inline-block;
	cursor: pointer;
}

/* Tooltip text */
.tooltip .tooltiptext {
	visibility: hidden; /* Hide tooltip content by default */
	background-color: black;
	color: white;
	text-align: center;
	border-radius: 6px;
	padding: 5px;
     /* Position the tooltip */
    position: fixed; /* Fixed position relative to the viewport */
    z-index: 1;
    left: 10%; /* Center horizontally */
    top: 85%; /* Center vertically */
    transform: translate(0%, 0%); /* Adjust for tooltip's own dimensions */

    /* Tooltip width and text wrapping */
    max-width: 1000px; /* Maximum width */
    white-space: normal; /* Allow text wrapping */
}

/* Tooltip visibility class */
.tooltip .tooltiptext.visible {
	visibility: visible; /* Show tooltip on tap/click */
}

/* Last Year Mode Styling */
.last-year-mode .content {
    background-color: #f8f9fa;
    padding-left: 16px;
}

.last-year-mode h1 {
    color: #3498db;
}

/* Remove the before pseudo-element that adds "Last Year's Journal" text */
.last-year-mode::before {
    content: none;
}

/* Remove year indicator */
.year-indicator {
    display: none;
}

/* Style for highlighted current date header (THIS YEAR mode) */
h1.date-in-focus {
    background-color: rgba(108, 92, 231, 0.1); /* Light purple with transparency */
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Style for highlighted current date header in LAST YEAR mode */
.last-year-mode h1.date-in-focus {
    background-color: rgba(253, 203, 110, 0.2); /* Light yellow with transparency */
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Pulsing animation effect for focused date (THIS YEAR) */
@keyframes gentle-pulse {
    0% {
        background-color: rgba(108, 92, 231, 0.05);
    }
    50% {
        background-color: rgba(108, 92, 231, 0.15);
    }
    100% {
        background-color: rgba(108, 92, 231, 0.05);
    }
}

/* Pulsing animation effect for focused date (LAST YEAR) */
@keyframes gentle-pulse-lastyear {
    0% {
        background-color: rgba(253, 203, 110, 0.1);
    }
    50% {
        background-color: rgba(253, 203, 110, 0.25);
    }
    100% {
        background-color: rgba(253, 203, 110, 0.1);
    }
}

h1.date-in-focus {
    animation: gentle-pulse 3s infinite;
}

.last-year-mode h1.date-in-focus {
    animation: gentle-pulse-lastyear 3s infinite;
}

/* Content container */
.content-container {
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 연도 전환 버튼 스타일 */
#last_year_btn {
    color: #ff9f43;
    font-weight: bold;
}

#this_year_btn {
    color: #6c5ce7;
    font-weight: bold;
}

/* 비활성화된 버튼 스타일 */
button[disabled] {
    cursor: not-allowed;
}

/* 연도 인디케이터 스타일 - 화면 우측 상단에 작은 배지로 표시 */
.year-mode-indicator {
    position: fixed;
    top: 70px;
    right: 20px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    animation: indicator-appear 0.3s ease;
}

@keyframes indicator-appear {
    0% { transform: translateY(-20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.this-year-indicator {
    background-color: rgba(108, 92, 231, 0.2);
    color: #6c5ce7;
    border: 1px solid #6c5ce7;
}

.last-year-indicator {
    background-color: rgba(253, 203, 110, 0.2);
    color: #ff9f43;
    border: 1px solid #ff9f43;
}

/* 슬라이드 효과 개선 */
.slide-animation {
    transition: transform 0.3s ease-out, opacity 0.2s ease-out;
}

/* 날짜 헤더 호버 효과 */
h1:hover .year-toggle-arrows {
    opacity: 1;
}

/* 포트폴리오 로딩 오버레이 */
#portfolio-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #6c5ce7;
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 20px;
}

.loading-text {
  color: white;
  font-size: 18px;
  font-weight: 500;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* 알림 아이콘 스타일 */
.notification-icon {
	position: relative;
	cursor: pointer;
	padding: 8px;
	width: 16px;
	height: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: 10px;
}

.notification-dot {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background-color: #aaa; /* 기본 회색 */
	transition: all 0.3s ease;
}

.notification-dot.has-notifications {
	background-color: #ff3b30; /* 알림 있을 때 빨간색 */
	animation: pulse 2s infinite;
}

/* 헤더 네비게이션 바 스타일 */
.header-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 20px;
	padding-top: max(12px, calc(12px + env(safe-area-inset-top, 0px))); /* Dynamic Island 영역까지 확장 */
	background-color: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	position: sticky;
	top: 0;
	z-index: 100;
	margin-top: 0;
	margin-bottom: 0;
}

.header-brand {
	font-size: 28px;
	color: #333;
	text-decoration: none;
	display: flex;
	align-items: center;
}

.header-logo {
	width: 30px;
	height: 30px;
}

.header-actions {
	display: flex;
	align-items: center;
}


@keyframes pulse {
	0% { transform: translate(-50%, -50%) scale(1); }
	50% { transform: translate(-50%, -50%) scale(1.2); }
	100% { transform: translate(-50%, -50%) scale(1); }
}

/* Multi-tag 처리를 위한 새로운 스타일 */
.multi-tag-container {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    float: right;
    clear: right;
    background: rgba(108, 92, 231, 0.12);
    border: 1px solid rgba(108, 92, 231, 0.25);
    border-radius: 8px;
    padding: 4px 8px;
    margin: 0 0 6px 10px;
    font-size: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    pointer-events: none; /* 마우스 이벤트를 부모 요소로 전달 */
}

.multi-tag-container .tag-emoji {
    font-size: 16px;
    display: inline-block;
    margin: 0;
    padding: 0;
    line-height: 1;
}

/* Li 요소에 텍스트가 tag blob 주변으로 흐르도록 설정 */
li.multi-tag,
li.single-tag {
    overflow: hidden; /* float clearfix */
}

li.multi-tag::after,
li.single-tag::after {
    content: "";
    display: table;
    clear: both;
}


/* 로그인 페이지 스타일 */
.login-body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    padding: 0;
}

.login-container {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
}

.login-logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
    border-radius: 10px;
}

.login-title {
    text-align: center;
    margin: 20px 0;
    color: #333;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-form label {
    font-weight: bold;
    color: #333;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    outline: none;
    border-color: #6c5ce7;
}

.login-form input[type="submit"] {
    background-color: #6c5ce7;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.login-form input[type="submit"]:hover {
    background-color: #5f50d0;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

.remember-me label {
    font-weight: normal;
}

.auto-login-message {
    text-align: center;
    color: #6c5ce7;
    margin-top: 10px;
    font-size: 14px;
    display: none;
}

.error-message {
    text-align: center;
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 10px;
    margin-top: 10px;
    font-size: 14px;
    display: none;
}

/* 로그인 페이지 반응형 */
@media screen and (max-width: 600px) {
    .login-body {
        font-size: 16px;
        padding: 20px;
    }
    
    .login-container {
        padding: 15px;
        margin: 20px;
    }
    
    .login-title {
        font-size: 24px;
    }
    
    .login-form label, 
    .login-form input[type="text"], 
    .login-form input[type="password"], 
    .login-form input[type="submit"] {
        font-size: 18px;
    }
}

/* 알림 페이지 스타일 */
.notifications-body {
    font-family: 'Arial', sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 15px;
    background-color: #f8f9fa;
}

.notifications-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.notifications-title {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    font-size: clamp(1.5rem, 5vw, 2rem);
}

.notification-item {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    position: relative;
    transition: all 0.2s ease;
    border-left: 4px solid #6c5ce7;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.notification-item.read {
    background-color: #f8f9fa;
    border-left-color: #ced4da;
    opacity: 0.7;
}

.notification-item.deleted {
    display: none;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.notification-title {
    font-weight: bold;
    font-size: 16px;
    margin: 0;
    word-break: break-all;
    color: #333;
}

.notification-time {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
}

.notification-body {
    font-size: 14px;
    margin-bottom: 15px;
    word-break: break-all;
    white-space: pre-line;
    color: #333;
}

.notification-url {
    font-size: 12px;
    color: #6c5ce7;
    text-decoration: none;
    word-break: break-all;
    display: inline-block;
    margin-top: 5px;
}

.notification-url:hover {
    text-decoration: underline;
}

.notification-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.action-btn {
    background-color: transparent;
    border: 1px solid #e9ecef;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background-color: #f1f3f5;
}

.action-btn.mark-read {
    color: #4CAF50;
}

.action-btn.delete {
    color: #dc3545;
}

.notification-badge {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #6c5ce7;
    border-radius: 50%;
    margin-right: 5px;
}

.empty-message {
    text-align: center;
    padding: 30px;
    font-size: 16px;
    color: #6c757d;
}

.notifications-loading {
    text-align: center;
    padding: 20px;
}

.notifications-loading-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(108, 92, 231, 0.2);
    border-radius: 50%;
    border-top-color: #6c5ce7;
    animation: spin 1s ease-in-out infinite;
}

.notifications-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background-color: #f1f3f5;
    border: 1px solid #e9ecef;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.filter-btn.active {
    background-color: #6c5ce7;
    color: white;
    border-color: #6c5ce7;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    padding: 10px;
    color: #6c5ce7;
    text-decoration: none;
    font-weight: bold;
}

.back-link:hover {
    text-decoration: underline;
}

/* Floating chart grouping buttons on portfolio page */
.floating-group-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 100;
}

.floating-group-buttons .styled-button {
    padding: 6px 10px;
    font-size: 12px;
}

/* 알림 페이지 반응형 */
@media (min-width: 768px) {
    .notifications-body {
        padding: 20px;
    }
    
    .notifications-card {
        padding: 20px;
    }
    
    .notification-actions {
        opacity: 0;
        transition: opacity 0.2s ease;
    }
    
    .notification-item:hover .notification-actions {
        opacity: 1;
    }
}

/* 진행상황 표시 스타일 */
.progress-indicator {
    background: #f0f8ff;
    border: 1px solid #4a9eff;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 8px 0;
    color: #2563eb;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: pulse 2s infinite;
}

.progress-indicator::before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #4a9eff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 에러 메시지 스타일 */
.error {
    background: #fee;
    border: 1px solid #f56565;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 8px 0;
    color: #c53030;
}

/* 타이머 표시 스타일 */
.timer-display {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 600;
    margin-left: 8px;
    color: #666;
    opacity: 0.8;
}

.loading-mode .timer-display {
    color: #fff;
}

/* 로딩 모드에서 타이머 중앙 배치 */
.loading-mode {
    display: flex !important;
    align-items: center;
    justify-content: center;
}
