/* 달력 페이지 스타일 */

body {
    font-family: 'Segoe UI', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    margin: 0;
    padding: 0 0 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 35px 35px 100px 35px;
    border-radius: 20px;
    box-shadow:
        0 20px 40px rgba(0,0,0,0.1),
        0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 1200px;
    margin: 10px auto;
    width: calc(100% - 20px);
    min-width: 320px;
    box-sizing: border-box;
}

/* 버전 정보 스타일 */
.version-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    position: relative;
    min-height: 48px;
}

.version-info .auth-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.version-info .version-badge {
    margin-left: auto;
}

.version-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 8px 16px;
    min-height: 48px;
    box-sizing: border-box;
    font-size: 14px;
    color: white;
    box-shadow:
        0 6px 20px rgba(103, 126, 234, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    text-decoration: none;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    margin: 0;
    vertical-align: middle;
}

.version-badge:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 10px 30px rgba(103, 126, 234, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 로그인/로그아웃 버튼 (버전 정보와 비슷한 스타일) */
.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 8px 16px;
    min-height: 48px;
    box-sizing: border-box;
    font-size: 14px;
    color: white;
    cursor: pointer;
    box-shadow:
        0 6px 20px rgba(103, 126, 234, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    margin: 0;
    vertical-align: middle;
    text-decoration: none;
    transition: all 0.2s ease;
}

.auth-badge:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 10px 30px rgba(103, 126, 234, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}


/* 관리자 버튼 */
.admin-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 8px 16px;
    min-height: 48px;
    box-sizing: border-box;
    font-size: 14px;
    color: white;
    text-decoration: none;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 6px 20px rgba(249, 115, 22, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.admin-badge:hover {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 10px 30px rgba(249, 115, 22, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.admin-icon {
    font-size: 16px;
    line-height: 1;
}

.admin-text {
    font-size: 14px;
    font-weight: 700;
    color: white;
    line-height: 1;
    letter-spacing: 0.3px;
}

.auth-icon {
    font-size: 14px;
    line-height: 1;
}

.auth-text {
    font-size: 14px;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.auth-action {
    font-size: 14px;
    color: white;
    font-weight: 600;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    padding: 4px 10px;
    border-radius: 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.logout-badge .auth-text {
    color: white;
}

.logout-badge:hover .auth-text {
    color: white;
}

.logout-badge:hover .auth-action {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
}

/* 버전 링크 스타일 */
.version-link {
    cursor: pointer;
    align-self: center;
    justify-content: center;
}

.version-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 10px 30px rgba(103, 126, 234, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.version-number {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 2px 10px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
    line-height: 1.4;
}

.update-date {
    font-size: 14px;
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1;
}

/* 헤더 네비게이션 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 0;
    border-bottom: 2px solid rgba(103, 126, 234, 0.1);
}

.nav-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 18px;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-weight: 700;
    font-size: 15px;
    box-shadow:
        0 6px 20px rgba(103, 126, 234, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.nav-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 10px 30px rgba(103, 126, 234, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-btn:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow:
        0 4px 15px rgba(103, 126, 234, 0.4),
        0 1px 5px rgba(0, 0, 0, 0.15);
}

.month-title-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.month-title {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    margin: 0;
}

.today-link {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow:
        0 6px 20px rgba(245, 158, 11, 0.4),
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.today-link:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 10px 30px rgba(245, 158, 11, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.today-link:active {
    transform: translateY(-1px) scale(1.01);
    box-shadow:
        0 4px 15px rgba(245, 158, 11, 0.4),
        0 1px 5px rgba(0, 0, 0, 0.15);
}

/* 달력 테이블 */
.calendar-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 4px;
    margin-bottom: 10px;
    background: transparent;
    table-layout: fixed;
}

.calendar-table th,
.calendar-table td {
    width: 14.28%;
    height: 100px;
    border: none;
    text-align: left;
    vertical-align: top;
    position: relative;
    padding: 8px;
    border-radius: 12px;
    word-wrap: break-word;
    overflow: hidden;
}

.calendar-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    height: 40px;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    padding: 0;
    box-shadow: 0 4px 15px rgba(103, 126, 234, 0.3);
    border-radius: 12px;
    display: table-cell;
    line-height: 40px;
}

.calendar-table td {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 15px rgba(0,0,0,0.05),
        0 1px 3px rgba(0,0,0,0.1);
    border: 2px solid transparent;
}

.calendar-table td:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 12px 30px rgba(103, 126, 234, 0.15),
        0 4px 15px rgba(0,0,0,0.1);
    border-color: rgba(103, 126, 234, 0.3);
}

/* 날짜 헤더 (날짜와 장수 배지를 포함하는 컨테이너) */
.day-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

/* 날짜 숫자 */
.day-number {
    font-weight: 700;
    font-size: 18px;
    color: #667eea;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(103, 126, 234, 0.1);
    flex-shrink: 0;
}

/* 읽은 장수 배지 */
.day-chapters-badge {
    font-size: 11px;
    font-weight: 600;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 2px 6px;
    border-radius: 8px;
    white-space: nowrap;
    margin-top: 2px;
}

/* 읽기 기록이 있는 날 */
.day-with-reading {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
    border: 2px solid #f59e0b !important;
    position: relative;
}

.day-with-reading .day-number {
    background: #f59e0b;
    color: white;
    font-weight: bold;
}

.day-with-reading:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow:
        0 15px 35px rgba(245, 158, 11, 0.3),
        0 5px 15px rgba(0,0,0,0.1);
}

/* 읽기 기록 텍스트 */
.reading-summary {
    font-size: 12px;
    color: #059669;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: rgba(16, 185, 129, 0.1);
    padding: 2px 6px;
    border-radius: 6px;
    max-width: 100%;
}

.reading-range {
    font-size: 11px;
    color: #374151;
    line-height: 1.2;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: rgba(107, 114, 128, 0.1);
    padding: 1px 4px;
    border-radius: 4px;
    max-width: 100%;
}

/* 읽기 기록 아이템 */
.reading-item {
    margin-top: 4px;
}

.verse-range {
    font-size: 11px;
    color: #374151;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: rgba(103, 126, 234, 0.1);
    padding: 2px 6px;
    border-radius: 6px;
    max-width: 100%;
}

.verse-abbr {
    display: none;
}

.verse-full {
    display: inline;
}

/* 통계 프로그레스 바 */
.stats-container {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.stat-box {
    flex: 1;
    min-width: 250px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(249, 250, 251, 0.9) 100%);
    backdrop-filter: blur(10px);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(103, 126, 234, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    position: relative;
}

.goal-setting-btn {
    margin-left: auto;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.6) 0%, rgba(217, 119, 6, 0.6) 100%);
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
    white-space: nowrap;
}

.goal-setting-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.75) 0%, rgba(217, 119, 6, 0.75) 100%);
}

.goal-btn-text {
    font-size: 13px;
    font-weight: 600;
}

.stat-icon {
    font-size: 18px;
}

.stat-title {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.stat-title::before {
    content: "📊 ";
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(229, 231, 235, 0.8);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    margin-bottom: 8px;
}

.progress-goal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.5) 0%, rgba(245, 158, 11, 0.5) 100%);
    border-radius: 6px;
    pointer-events: none;
    z-index: 1;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.5s ease;
    position: relative;
    z-index: 2;
    border-radius: 6px;
}

.progress-fill.yearly {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.progress-text {
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.stat-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.chapters-count {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 4px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    max-width: 100%;
}

.multiple-readings {
    font-size: 10px;
    color: #6b7280;
    margin-top: 4px;
    font-style: italic;
    background: rgba(107, 114, 128, 0.1);
    padding: 2px 6px;
    border-radius: 6px;
    display: inline-block;
    max-width: 100%;
    word-wrap: break-word;
    position: relative;
    z-index: 2;
}

/* 오늘 날짜 */
.today {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: 2px solid #667eea !important;
    position: relative;
}

/* TODAY 표기 제거 - 배경색으로 충분히 구분 가능 */

.today .day-number {
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
}

.today .reading-summary {
    color: white;
    background: rgba(255, 255, 255, 0.2);
}

.today .reading-range {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.15);
}

.today:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow:
        0 15px 35px rgba(103, 126, 234, 0.3),
        0 5px 15px rgba(0,0,0,0.1);
}

/* 오늘 날짜이면서 읽기 기록이 있는 경우 */
.today.day-with-reading {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: 2px solid #f59e0b !important;
}

.today.day-with-reading .day-number {
    background: #f59e0b;
    color: white;
    font-weight: bold;
}

.today.day-with-reading .verse-range {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-weight: 600;
}

.today.day-with-reading .day-chapters-badge {
    background: rgba(255, 255, 255, 0.3);
    color: rgba(255, 8, 8, 0.9);
    font-weight: 700;
}

.today.day-with-reading .chapters-count {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

/* 로컬 저장 기록 표시 */
.reading-info {
    font-size: 11px;
    color: #744210;
    margin-top: 4px;
    padding: 2px 4px;
    background: rgba(251, 191, 36, 0.2);
    border-radius: 4px;
    text-align: center;
    word-break: break-all;
}

.reading-summary {
    font-weight: 500;
    line-height: 1.2;
}

/* 빈 날짜 셀 */
.empty-day {
    background-color: #f8f9fa;
    cursor: default;
}

.empty-day:hover {
    background-color: #f8f9fa !important;
    transform: none;
}

/* 액션 버튼들 */
.actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.action-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    transition: all 0.3s;
    font-weight: 500;
}

.action-btn:hover {
    background-color: #27ae60;
    transform: translateY(-1px);
}

/* 범례 컨테이너 */
.legend-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0;
    padding: 10px 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    gap: 20px;
}

/* 범례 */
.legend {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    font-size: 14px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 15px;
    height: 15px;
    border-radius: 3px;
}

.legend-reading {
    background-color: #f59e0b;
}

.legend-today {
    background-color: #667eea;
}

/* 모바일 반응형 */
@media (max-width: 1000px) {
    body {
        padding: 0;
        overflow-x: hidden;
    }

    .container {
        padding: 20px;
        min-width: unset;
        width: calc(100% - 16px);
        max-width: 100%;
        margin: 8px auto;
    }

    .sections-container {
        padding: 12px 15px;
        gap: 15px;
    }
}

/* 힌트와 이번달로 버튼 스타일 */
.add-reading-hint {
    background: linear-gradient(135deg, rgba(103, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(103, 126, 234, 0.2);
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}

.hint-icon {
    font-size: 13px;
}

.action-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(103, 126, 234, 0.3);
    font-size: 14px;
    white-space: nowrap;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(103, 126, 234, 0.4);
}

.action-icon {
    font-size: 16px;
}

@media (max-width: 768px) {
    body {
        padding: 0;
        overflow-x: hidden;
    }

    .container {
        padding: 10px;
        min-width: unset;
        width: calc(100% - 8px);
        max-width: 100%;
        margin: 4px auto;
        border-radius: 12px;
    }

    .sections-container {
        flex-direction: row;
        padding: 6px 8px;
        gap: 6px;
    }

    .sections-container .login-section,
    .sections-container .info-section {
        margin: 0;
        flex: 1;
        padding: 6px 4px;
        gap: 4px;
    }

    .login-btn,
    .release-notes-btn {
        flex-direction: row;
        padding: 6px 8px;
        gap: 4px;
        font-size: 11px;
        white-space: nowrap;
    }

    .login-btn span:first-child,
    .release-notes-btn span:first-child {
        font-size: 11px;
    }

    .login-section p,
    .info-section p {
        font-size: 9px;
        line-height: 1.2;
    }

    /* 모바일 버전 정보 */
    .version-info {
        margin-bottom: 15px;
        margin-top: -5px;
    }

    .legend-container {
        display: flex !important;
        align-items: center !important;
    }

    .version-badge,
    .auth-badge,
    .admin-badge {
        gap: 4px;
        padding: 6px 8px;
        font-size: 11px;
        border-radius: 10px;
        min-height: 40px;
        height: 40px;
    }

    .version-link {
        flex-direction: column;
        justify-content: center;
        gap: 2px;
    }


    .version-number {
        padding: 2px 8px;
        font-size: 11px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.2);
        color: white;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        letter-spacing: 0.3px;
        font-weight: 600;
        line-height: 1.4;
    }

    .update-date {
        font-size: 11px;
        color: #ffffff;
        font-weight: 500;
        line-height: 1;
    }

    .auth-action {
        font-size: 11px;
        color: white;
        font-weight: 600;
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        padding: 2px 8px;
        border-radius: 8px;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        letter-spacing: 0.3px;
        line-height: 1.4;
    }

    .auth-text {
        font-size: 11px;
        line-height: 1;
    }

    .time-storage-sections {
        gap: 10px;
        margin-bottom: 12px;
    }

    .storage-info,
    .server-time-info {
        padding: 8px 12px;
        font-size: 12px;
    }

    .hint-actions-container {
        flex-direction: row;
        gap: 8px;
        margin-bottom: 10px;
    }

    .hint-section {
        min-width: 0;
        flex: 1;
    }

    .add-reading-hint {
        padding: 3px 5px;
        font-size: 13px;
    }

    .hint-icon {
        font-size: 14px;
    }

    .action-btn {
        padding: 6px 10px;
        font-size: 11px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .action-icon {
        font-size: 14px;
    }

    .header {
        flex-direction: row;
        gap: 8px;
        margin-bottom: 12px;
        padding: 8px 0;
    }

    .month-title {
        font-size: 17px;
    }

    .nav-btn {
        padding: 6px 10px;
        font-size: 12px;
        gap: 4px;
    }

    .today-link {
        padding: 6px 10px;
        font-size: 12px;
    }

    .calendar-table {
        min-width: unset;
        width: 100%;
        table-layout: fixed;
        border-spacing: 3px;
    }

    .calendar-table th,
    .calendar-table td {
        height: 60px;
        font-size: 11px;
        padding: 4px 2px;
        min-width: unset;
        width: 14.28%;
        border-radius: 8px;
    }

    .calendar-table th {
        height: 25px;
        font-size: 12px;
        padding: 0;
        vertical-align: middle;
        line-height: 25px;
        display: table-cell;
    }

    .day-number {
        font-size: 13px;
        width: 20px;
        height: 20px;
    }

    .day-chapters-badge {
        font-size: 9px;
        padding: 1px 3px;
        border-radius: 6px;
        margin-top: 1px;
    }

    .reading-summary {
        font-size: 8px;
        white-space: normal;
        word-break: break-all;
        max-width: 100%;
        line-height: 1.1;
        padding: 0px;
        margin-bottom: 1px;
        background: none;
        color: #059669;
        font-weight: 600;
    }

    .reading-range {
        font-size: 7px;
        white-space: normal;
        word-break: break-all;
        max-width: 100%;
        line-height: 1.1;
        padding: 0px;
        margin-bottom: 1px;
        background: none;
        color: #374151;
        font-weight: 500;
    }

    .chapters-count {
        font-size: 6px;
        padding: 1px 2px;
        max-width: 100%;
    }

    .multiple-readings {
        font-size: 6px;
        max-width: 100%;
    }

    .month-title {
        font-size: 18px;
    }

    .actions {
        flex-direction: column;
        align-items: center;
    }

    .legend-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 10px;
        padding: 8px 10px;
        margin-top: 0;
    }

    .calendar-table {
        margin-bottom: 8px;
    }

    .legend {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        font-size: 11px;
        flex: 1;
    }

    .legend-item {
        gap: 6px;
    }

    .version-info {
        justify-content: flex-end;
        flex-shrink: 0;
    }

    .version-badge {
        flex-direction: column;
        text-align: center;
    }

    /* 모바일에서 통계 섹션 표시 */
    .stats-container {
        display: flex;
        flex-direction: column;
        margin-top: 12px;
        gap: 10px;
    }

    .stat-box {
        min-width: auto;
        padding: 12px;
    }

    .stat-title {
        font-size: 13px;
    }

    .stat-details {
        font-size: 11px;
        flex-wrap: wrap;
    }

    .goal-setting-btn {
        padding: 6px 12px;
        font-size: 12px;
        gap: 4px;
    }

    .goal-btn-text {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0;
    }

    .container {
        padding: 8px;
        min-width: unset;
        width: calc(100% - 4px);
        margin: 2px auto;
        border-radius: 8px;
    }

    .sections-container {
        flex-direction: row;
        padding: 5px 6px;
        gap: 5px;
    }

    .sections-container .login-section,
    .sections-container .info-section {
        flex: 1;
        padding: 5px 3px;
        gap: 3px;
    }

    .login-btn,
    .release-notes-btn {
        flex-direction: row;
        padding: 5px 6px;
        gap: 3px;
        font-size: 10px;
        white-space: nowrap;
    }

    .login-btn span:first-child,
    .release-notes-btn span:first-child {
        font-size: 10px;
    }

    .login-section p,
    .info-section p {
        font-size: 8px;
        line-height: 1.2;
    }

    /* 480px 범례 및 버전 정보 */
    .legend-container {
        padding: 6px 8px;
        gap: 8px;
        margin-top: 0;
    }

    .calendar-table {
        margin-bottom: 6px;
    }

    .legend {
        font-size: 10px;
        gap: 5px;
    }

    .legend-item {
        gap: 5px;
    }

    .legend-container {
        display: flex !important;
        align-items: center !important;
    }

    .version-badge,
    .auth-badge,
    .admin-badge {
        gap: 3px;
        padding: 5px 6px;
        font-size: 10px;
        border-radius: 8px;
        min-height: 36px;
        height: 36px;
    }

    .version-link {
        flex-direction: column;
        justify-content: center;
        gap: 2px;
    }


    .version-number {
        padding: 2px 6px;
        font-size: 10px;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.2);
        color: white;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        letter-spacing: 0.3px;
        font-weight: 600;
        line-height: 1.4;
    }

    .update-date {
        font-size: 10px;
        color: #ffffff;
        font-weight: 500;
        line-height: 1;
    }

    .auth-action {
        font-size: 10px;
        color: white;
        font-weight: 600;
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        padding: 2px 6px;
        border-radius: 6px;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        letter-spacing: 0.3px;
        line-height: 1.4;
    }

    .auth-text {
        font-size: 10px;
        line-height: 1;
    }

    .calendar-table {
        min-width: unset;
        width: 100%;
        border-spacing: 2px;
    }

    .calendar-table th,
    .calendar-table td {
        height: 50px;
        padding: 3px 1px;
        font-size: 10px;
        border-radius: 6px;
    }

    .calendar-table th {
        height: 20px;
        font-size: 11px;
        padding: 0;
        vertical-align: middle;
        line-height: 20px;
        display: table-cell;
    }

    .day-number {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }

    .day-chapters-badge {
        font-size: 8px;
        padding: 1px 2px;
        border-radius: 4px;
        margin-top: 0px;
    }

    .reading-summary {
        font-size: 7px;
        line-height: 1.0;
        padding: 0px;
        margin-bottom: 0px;
        background: none;
        color: #059669;
        font-weight: 600;
        white-space: normal;
        word-break: break-all;
    }

    .reading-range {
        font-size: 6px;
        padding: 0px;
        margin-bottom: 0px;
        line-height: 1.0;
        background: none;
        color: #374151;
        font-weight: 500;
        white-space: normal;
        word-break: break-all;
    }

    .verse-range {
        font-size: 8px;
        padding: 1px 3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .verse-full {
        display: none !important;
    }

    .verse-abbr {
        display: inline !important;
    }

    .chapters-count {
        font-size: 7px;
        padding: 1px 3px;
    }

    .multiple-readings {
        font-size: 5px;
    }

    .hint-actions-container {
        gap: 6px;
        margin-bottom: 8px;
    }

    .add-reading-hint {
        padding: 2px 4px;
        font-size: 11px;
    }

    .hint-icon {
        font-size: 12px;
    }

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

    .action-icon {
        font-size: 12px;
    }

    .nav-btn {
        padding: 5px 8px;
        font-size: 11px;
        gap: 3px;
    }

    .today-link {
        padding: 5px 8px;
        font-size: 11px;
    }

    .month-title {
        font-size: 15px;
    }

    .header {
        gap: 6px;
        margin-bottom: 10px;
    }

    .time-storage-sections {
        gap: 8px;
        margin-bottom: 10px;
    }

    .storage-info,
    .server-time-info {
        padding: 7px 10px;
        font-size: 11px;
    }

    .server-time-info .time-label {
        display: none;
    }

    /* 섹션 설명 텍스트 간결화 */
    .section-description {
        display: none;
    }

    .section-description-mobile {
        display: block;
    }

    /* 버튼 텍스트 간결화 */
    .btn-text-full {
        display: none;
    }

    .btn-text-mobile {
        display: inline;
    }

    /* 섹션 패딩 축소 */
    .login-section,
    .info-section {
        padding: 15px;
    }

    .login-section h3,
    .info-section h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .login-section p,
    .info-section p {
        font-size: 13px;
        margin-bottom: 12px;
    }

    /* 480px 통계 섹션 */
    .stats-container {
        display: flex;
        flex-direction: column;
        margin-top: 10px;
        gap: 8px;
    }

    .stat-box {
        min-width: auto;
        padding: 10px;
    }

    .stat-title {
        font-size: 12px;
    }

    .stat-details {
        font-size: 10px;
    }

    .goal-setting-btn {
        padding: 5px 10px;
        font-size: 11px;
        gap: 3px;
    }

    .goal-btn-text {
        font-size: 10px;
    }
}

@media (max-width: 360px) {
    body {
        padding: 0;
    }

    .container {
        padding: 5px;
        width: calc(100% - 2px);
        margin: 1px auto;
    }

    .sections-container {
        flex-direction: row;
        padding: 4px 5px;
        gap: 4px;
    }

    .sections-container .login-section,
    .sections-container .info-section {
        flex: 1;
        padding: 4px 3px;
        gap: 2px;
    }

    .login-btn,
    .release-notes-btn {
        flex-direction: row;
        padding: 4px 5px;
        gap: 2px;
        font-size: 9px;
        white-space: nowrap;
    }

    .login-btn span:first-child,
    .release-notes-btn span:first-child {
        font-size: 9px;
    }

    .login-section p,
    .info-section p {
        font-size: 7px;
        line-height: 1.1;
    }

    /* 360px 범례 및 버전 정보 */
    .legend-container {
        padding: 5px 6px;
        gap: 6px;
        margin-top: 0;
    }

    .calendar-table {
        margin-bottom: 5px;
    }

    .legend {
        font-size: 9px;
        gap: 4px;
    }

    .legend-item {
        gap: 4px;
    }

    .legend-container {
        display: flex !important;
        align-items: center !important;
    }

    .version-badge,
    .auth-badge,
    .admin-badge {
        gap: 2px;
        padding: 4px 5px;
        font-size: 9px;
        border-radius: 6px;
        min-height: 32px;
        height: 32px;
    }

    .version-link {
        flex-direction: column;
        justify-content: center;
        gap: 1px;
    }


    .version-number {
        padding: 1px 5px;
        font-size: 9px;
        border-radius: 5px;
        background: rgba(255, 255, 255, 0.2);
        color: white;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        letter-spacing: 0.3px;
        font-weight: 600;
        line-height: 1.4;
    }

    .update-date {
        font-size: 9px;
        color: #ffffff;
        font-weight: 500;
        line-height: 1;
    }

    .auth-action {
        font-size: 9px;
        color: white;
        font-weight: 600;
        background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
        padding: 1px 5px;
        border-radius: 5px;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        letter-spacing: 0.3px;
        line-height: 1.4;
    }

    .auth-text {
        font-size: 9px;
        line-height: 1;
    }

    .calendar-table {
        border-spacing: 1px;
    }

    .calendar-table th,
    .calendar-table td {
        height: 45px;
        padding: 2px 1px;
        font-size: 9px;
        border-radius: 4px;
    }

    .calendar-table th {
        height: 18px;
        font-size: 10px;
        padding: 0;
        vertical-align: middle;
        line-height: 18px;
        display: table-cell;
    }

    .day-number {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }

    .day-chapters-badge {
        font-size: 7px;
        padding: 1px 2px;
        border-radius: 3px;
        margin-top: 0px;
    }

    .reading-summary {
        font-size: 6px;
        padding: 0px;
        line-height: 0.9;
        background: none;
        color: #059669;
        font-weight: 600;
        white-space: normal;
        word-break: break-all;
    }

    .reading-range {
        font-size: 5px;
        padding: 0px;
        line-height: 0.9;
        background: none;
        color: #374151;
        font-weight: 500;
        white-space: normal;
        word-break: break-all;
    }

    .multiple-readings {
        font-size: 4px;
    }

    .chapters-count {
        font-size: 4px;
    }

    .hint-actions-container {
        gap: 5px;
        margin-bottom: 6px;
    }

    .add-reading-hint {
        padding: 2px 3px;
        font-size: 10px;
    }

    .hint-icon {
        font-size: 11px;
    }

    .action-btn {
        padding: 5px 10px;
        font-size: 10px;
    }

    .action-icon {
        font-size: 11px;
    }

    .month-title {
        font-size: 14px;
    }

    .nav-btn {
        padding: 4px 7px;
        font-size: 10px;
        gap: 2px;
    }

    .today-link {
        padding: 4px 7px;
        font-size: 10px;
    }

    .header {
        gap: 4px;
        margin-bottom: 8px;
    }

    /* 360px 통계 섹션 */
    .stats-container {
        display: flex;
        flex-direction: column;
        margin-top: 8px;
        gap: 6px;
    }

    .stat-box {
        min-width: auto;
        padding: 8px;
    }

    .stat-title {
        font-size: 11px;
    }

    .stat-details {
        font-size: 9px;
    }

    .goal-setting-btn {
        padding: 4px 8px;
        font-size: 10px;
        gap: 2px;
    }

    .goal-btn-text {
        font-size: 9px;
    }

    .progress-bar {
        height: 10px;
    }
}

/* ===== INDEX.HTML에서 이동된 추가 스타일들 ===== */

/* 서버 시간 정보 스타일 */
.server-time-info {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    margin-bottom: 0;
    text-align: center;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
}

/* 작은 화면에서 서버시간 라벨 숨기기 */

/* 데스크탑에서는 모바일 텍스트 숨김 */
@media (min-width: 481px) {
    .section-description-mobile {
        display: none;
    }

    .section-description {
        display: block;
    }

    .btn-text-mobile {
        display: none;
    }

    .btn-text-full {
        display: inline;
    }
}

/* 로컬 저장 모드 추가 스타일 */
.storage-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    margin-bottom: 0;
    text-align: center;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-section {
    background: rgba(103, 126, 234, 0.05);
    border: 1px solid rgba(103, 126, 234, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box;
    overflow: hidden;
}

.login-section h3 {
    margin: 0 0 8px 0;
    color: #667eea;
    font-size: 16px;
}

.login-section p {
    margin: 0;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
}

.login-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(103, 126, 234, 0.3);
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(103, 126, 234, 0.4);
}

.login-btn span:first-child {
    font-size: 16px;
    flex-shrink: 0;
}

/* 정보 섹션 스타일 */
.info-section {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.1);
    padding: 12px 16px;
    border-radius: 12px;
    margin-top: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box;
    overflow: hidden;
}

.info-section h3 {
    margin: 0 0 8px 0;
    color: #10b981;
    font-size: 16px;
    font-weight: 600;
}

.info-section p {
    margin: 0;
    color: #6b7280;
    line-height: 1.4;
    font-size: 12px;
}

/* 좌우 분할 컨테이너 */
.sections-container,
.time-storage-sections {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}
.time-storage-sections {
    margin-top: 0;
    margin-bottom: 15px;
}

/* 하단 섹션 스타일 */
.sections-container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* 힌트와 이번달로 버튼 컨테이너 */
.hint-actions-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 20px;
}
.hint-section {
    flex: 1;
}
.today-btn-section {
    flex-shrink: 0;
}

.sections-container .login-section,
.sections-container .info-section,
.time-storage-sections .time-section,
.time-storage-sections .storage-section {
    flex: 1 1 0;
    min-width: 0;
    margin-top: 0;
}

/* 데스크톱에서 균등한 높이 유지 */
.sections-container .login-section,
.sections-container .info-section {
    display: flex;
    flex-direction: column;
}

.sections-container .login-section p,
.sections-container .info-section p {
    flex-grow: 1;
}

.last-position-local {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #059669;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.reset-local-btn {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-left: 12px;
    transition: all 0.3s ease;
}

.reset-local-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* 월간 통계 스타일 */
.monthly-stats {
    margin-top: 8px;
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.stats-icon {
    margin-right: 5px;
    font-size: 16px;
}

.stats-days {
    font-size: 12px;
    color: #9ca3af;
    margin-left: 4px;
}

/* 릴리즈 노트 버튼 스타일 */
.release-notes-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    margin-top: 0;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.release-notes-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.release-notes-btn span:first-child {
    font-size: 16px;
    flex-shrink: 0;
}