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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(120, 119, 198, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(102, 126, 234, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    background: linear-gradient(145deg, rgba(30, 30, 50, 0.9), rgba(25, 25, 45, 0.8));
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(120, 119, 198, 0.3);
    position: relative;
}

/* 사용자 상태 영역 */
.user-status {
    position: absolute;
    top: 15px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#loginStatus {
    color: #ffd700;
    font-weight: bold;
    font-size: 14px;
}

#authButtons, #loggedInButtons {
    display: flex;
    gap: 8px;
}

.btn-auth {
    padding: 6px 14px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-auth:hover {
    transform: scale(1.05);
}

#authButtons .btn-auth {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
}

.btn-register {
    background: linear-gradient(135deg, #4CAF50, #45a049) !important;
    color: #fff !important;
}

.btn-logout {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: #fff;
}

.btn-admin {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
    color: #fff;
}

.btn-test {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

/* 헤더 타이틀 영역 */
.header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.header-character {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #ffd700;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    object-fit: cover;
}

/* 헤더 로고 */
.header-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 15px rgba(255, 215, 0, 0.4));
}

/* 헤더 아이콘 (h1 옆 이미지) */
.header-icon {
    width: 1em;
    height: 1em;
    vertical-align: middle;
    margin-right: 5px;
}

/* 발견자 표시 스타일 */
.boss-finder {
    color: #4fc3f7;
    font-size: 11px;
    font-weight: bold;
    margin-top: 2px;
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow:
        0 0 20px rgba(255, 255, 255, 0.5),
        0 0 40px rgba(168, 168, 255, 0.4),
        0 0 60px rgba(168, 168, 255, 0.3);
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.85;
    margin-bottom: 15px;
    color: #c9c9ff;
    letter-spacing: 1px;
}

.current-time {
    font-size: 1.1em;
    font-weight: bold;
    color: #a8a8ff;
    margin-top: 15px;
    text-shadow: 0 0 10px rgba(168, 168, 255, 0.5);
}

.latest-update-time {
    font-size: 0.9em;
    color: #8888cc;
    margin-top: 8px;
    opacity: 0.85;
}

/* 업데이트 안내 박스 */
.update-notice {
    background: linear-gradient(145deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.1));
    border: 2px solid rgba(255, 193, 7, 0.5);
    border-radius: 15px;
    padding: 20px 30px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.2);
}

.update-notice p {
    color: #ffd54f;
    font-size: 1.1em;
    margin: 0;
    line-height: 1.6;
}

.update-notice p strong {
    color: #ffeb3b;
    font-size: 1.15em;
}

.update-notice .notice-detail {
    color: #ffcc80;
    font-size: 0.95em;
    margin-top: 10px;
    opacity: 0.9;
}

.controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.update-time-section {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(145deg, rgba(20, 20, 30, 0.8), rgba(30, 30, 50, 0.6));
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(120, 119, 198, 0.2);
    backdrop-filter: blur(10px);
}

.update-time-section label {
    color: #c9c9e0;
    font-weight: 600;
    font-size: 1em;
}

.update-time-section input {
    padding: 12px 16px;
    border: 1px solid rgba(120, 119, 198, 0.3);
    border-radius: 8px;
    font-size: 1em;
    background: rgba(15, 15, 25, 0.6);
    color: #e0e0ff;
    transition: all 0.3s ease;
    min-width: 200px;
}

.update-time-section input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
    background: rgba(20, 20, 30, 0.8);
}

.btn-update {
    padding: 12px 30px;
    font-size: 1em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-update:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    filter: brightness(1.1);
}

.admin-menu-section {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(145deg, rgba(20, 20, 30, 0.8), rgba(30, 30, 50, 0.6));
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(120, 119, 198, 0.2);
}

.btn-admin-menu {
    padding: 12px 24px;
    font-size: 1em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    text-decoration: none;
}

.btn-admin-menu:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
    filter: brightness(1.1);
}

.boss-map-section {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(145deg, rgba(30, 40, 50, 0.8), rgba(20, 30, 40, 0.6));
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(120, 119, 198, 0.3);
}

.boss-map-section h2 {
    color: #a8a8ff;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 10px rgba(168, 168, 255, 0.5);
}

.map-container {
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.boss-map-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    cursor: grab;
    transition: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(120, 119, 198, 0.3);
    transform-origin: center center;
    user-select: none;
}

.boss-map-image:active {
    cursor: grabbing;
}

.zoom-controls {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.zoom-btn {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(120, 119, 198, 0.9), rgba(100, 99, 178, 0.9));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.zoom-btn:hover {
    background: linear-gradient(135deg, rgba(140, 139, 218, 1), rgba(120, 119, 198, 1));
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.map-note {
    margin-top: 15px;
    color: #a8a8c0;
    font-size: 0.9em;
    font-style: italic;
}

/* 주기별 필터 섹션 */
/* 보스 검색 섹션 */
.boss-search-section {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(145deg, rgba(40, 50, 60, 0.8), rgba(30, 40, 50, 0.6));
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(100, 200, 255, 0.3);
}

.boss-search-section h2 {
    color: #64d8ff;
    font-size: 1.5em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(100, 216, 255, 0.4);
}

.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-container input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(100, 216, 255, 0.3);
    border-radius: 10px;
    font-size: 1em;
    background: rgba(15, 15, 25, 0.8);
    color: #e0e0ff;
    transition: all 0.3s ease;
}

.search-container input:focus {
    outline: none;
    border-color: #64d8ff;
    box-shadow: 0 0 20px rgba(100, 216, 255, 0.4);
}

.search-container input::placeholder {
    color: #7a7a9a;
}

.search-clear-btn {
    padding: 14px 18px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-clear-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.5);
}

.search-results-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-results-container .empty-state-small {
    background: rgba(100, 216, 255, 0.1);
    border: 1px dashed rgba(100, 216, 255, 0.3);
}

.cycle-filter-section {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(145deg, rgba(40, 50, 60, 0.8), rgba(30, 40, 50, 0.6));
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(100, 180, 255, 0.3);
}

.cycle-filter-section h2 {
    color: #64b5f6;
    font-size: 1.5em;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(100, 181, 246, 0.4);
}

.cycle-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.cycle-filter-btn {
    padding: 12px 20px;
    background: linear-gradient(145deg, rgba(50, 60, 80, 0.9), rgba(40, 50, 70, 0.9));
    color: #b0bec5;
    border: 2px solid rgba(100, 180, 255, 0.2);
    border-radius: 10px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cycle-filter-btn:hover {
    background: linear-gradient(145deg, rgba(60, 80, 120, 0.9), rgba(50, 70, 100, 0.9));
    border-color: rgba(100, 180, 255, 0.5);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(100, 180, 255, 0.3);
}

.cycle-filter-btn.active {
    background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%);
    color: #ffffff;
    border-color: #64b5f6;
    box-shadow: 0 4px 20px rgba(100, 181, 246, 0.5);
}

.favorites-section {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(145deg, rgba(50, 40, 20, 0.8), rgba(40, 30, 15, 0.6));
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 200, 100, 0.1);
    border: 2px solid rgba(251, 191, 36, 0.3);
}

.favorites-section h2 {
    color: #fbbf24;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

.favorites-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.empty-state-small {
    text-align: center;
    color: #c9c9e0;
    font-size: 1em;
    padding: 30px;
    background: rgba(20, 20, 30, 0.4);
    border-radius: 10px;
}

.boss-card-small {
    background: linear-gradient(145deg, rgba(30, 30, 45, 0.95), rgba(20, 20, 35, 0.95));
    border-radius: 12px;
    padding: 15px;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.2);
    transition: all 0.3s ease;
}

.boss-card-small:hover {
    transform: translateY(-3px);
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(251, 191, 36, 0.4);
}

.boss-card-small.spawned {
    border: 2px solid #6ee7b7;
}

.boss-card-small.critical {
    border: 2px solid #ef4444;
}

.boss-card-small.soon {
    border: 2px solid #fbbf24;
}

.boss-header-small {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.boss-name-small {
    font-size: 1.1em;
    font-weight: bold;
    color: #fbbf24;
}

.favorite-btn-small {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.favorite-btn-small:hover {
    transform: scale(1.2);
}

.boss-info-small {
    font-size: 0.95em;
    color: #a8a8c0;
    margin-bottom: 5px;
}

.boss-info-small strong {
    color: #c9c9e0;
}

.timer-display-small {
    font-size: 1.3em;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
}

.timer-display-small.spawned {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.timer-display-small.critical {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.timer-display-small.soon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.timer-display-small.waiting {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.next-spawn-small {
    text-align: center;
    font-size: 0.85em;
    color: #a8a8ff;
}

.all-bosses-section {
    margin: 40px 0;
}

.all-bosses-section h2 {
    color: #e0e0ff;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(224, 224, 255, 0.3);
}

.boss-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}

.cycle-group {
    background: linear-gradient(145deg, rgba(20, 20, 30, 0.6), rgba(30, 30, 45, 0.6));
    border-radius: 15px;
    padding: 20px;
    border: 1px solid rgba(120, 119, 198, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.urgent-group {
    background: linear-gradient(145deg, rgba(60, 30, 30, 0.8), rgba(50, 20, 20, 0.8));
    border: 2px solid rgba(239, 68, 68, 0.5);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.4);
    animation: urgent-glow 2s ease-in-out infinite;
}

@keyframes urgent-glow {
    0%, 100% {
        box-shadow: 0 6px 25px rgba(239, 68, 68, 0.4);
        border-color: rgba(239, 68, 68, 0.5);
    }
    50% {
        box-shadow: 0 6px 35px rgba(239, 68, 68, 0.6);
        border-color: rgba(239, 68, 68, 0.7);
    }
}

.cycle-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(120, 119, 198, 0.3);
}

.cycle-header {
    color: #a8a8ff;
    font-size: 1.4em;
    margin: 0;
    text-shadow: 0 0 10px rgba(168, 168, 255, 0.4);
}

.cycle-update-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    white-space: nowrap;
}

.cycle-update-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.5);
    filter: brightness(1.1);
}

.urgent-header {
    color: #ff6b6b;
    font-size: 1.5em;
    border-bottom: 2px solid rgba(239, 68, 68, 0.5);
    text-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
}

.boss-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.boss-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(145deg, rgba(30, 30, 45, 0.9), rgba(20, 20, 35, 0.9));
    border-radius: 12px;
    padding: 15px 20px;
    border: 1px solid rgba(120, 119, 198, 0.2);
    transition: all 0.3s ease;
    gap: 20px;
}

.boss-row:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border-color: rgba(120, 119, 198, 0.4);
}

.boss-row.critical {
    border-left: 4px solid #ef4444;
    background: linear-gradient(145deg, rgba(50, 30, 30, 0.9), rgba(40, 20, 20, 0.9));
}

.boss-row.soon {
    border-left: 4px solid #fbbf24;
    background: linear-gradient(145deg, rgba(50, 45, 30, 0.9), rgba(40, 35, 20, 0.9));
}

.boss-row.waiting {
    border-left: 4px solid #3b82f6;
}

.boss-row-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 250px;
}

.favorite-btn-row {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 8px;
    font-size: 1.3em;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
    box-sizing: border-box;
    flex-shrink: 0;
}

.favorite-btn-row:hover {
    transform: scale(1.1);
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.8);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.boss-name-row {
    font-size: 1.2em;
    font-weight: bold;
    color: #e0e0ff;
    min-width: 150px;
}

.boss-location-row {
    font-size: 0.95em;
    color: #a8a8c0;
}

.boss-row-center {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 200px;
}

.boss-detail {
    font-size: 1em;
    color: #c9c9e0;
}

.boss-detail-small {
    font-size: 0.85em;
    color: #a8a8c0;
}

.boss-row-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.timer-display-row {
    font-size: 1.3em;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 8px;
    min-width: 150px;
    text-align: center;
}

.timer-display-row.critical {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    animation: pulse-red 0.8s ease-in-out infinite;
}

.timer-display-row.soon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    animation: pulse-orange 1s ease-in-out infinite;
}

.timer-display-row.waiting {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.update-btn-row {
    padding: 10px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.9em;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.update-btn-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.5);
    filter: brightness(1.1);
}

.favorite-btn {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    transition: transform 0.2s ease;
    padding: 0 10px;
}

.favorite-btn:hover {
    transform: scale(1.2);
}

.boss-card {
    background: linear-gradient(145deg, rgba(30, 30, 45, 0.9), rgba(20, 20, 35, 0.9));
    border-radius: 15px;
    padding: 25px;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(120, 119, 198, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.boss-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-color: rgba(120, 119, 198, 0.4);
}

.boss-card.spawned {
    border: 2px solid #6ee7b7;
    background: linear-gradient(145deg, rgba(30, 50, 40, 0.9), rgba(20, 40, 35, 0.9));
    box-shadow:
        0 8px 20px rgba(110, 231, 183, 0.3),
        inset 0 1px 0 rgba(110, 231, 183, 0.1);
}

.boss-card.critical {
    border: 2px solid #ef4444;
    background: linear-gradient(145deg, rgba(50, 30, 30, 0.9), rgba(40, 20, 20, 0.9));
    box-shadow:
        0 8px 20px rgba(239, 68, 68, 0.3),
        inset 0 1px 0 rgba(239, 68, 68, 0.1);
}

.boss-card.soon {
    border: 2px solid #fbbf24;
    background: linear-gradient(145deg, rgba(50, 45, 30, 0.9), rgba(40, 35, 20, 0.9));
    box-shadow:
        0 8px 20px rgba(251, 191, 36, 0.3),
        inset 0 1px 0 rgba(251, 191, 36, 0.1);
}

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

.boss-name {
    font-size: 1.5em;
    font-weight: bold;
    color: #e0e0ff;
    text-shadow: 0 0 10px rgba(224, 224, 255, 0.3);
}

.delete-btn {
    background: linear-gradient(135deg, #3a1f1f 0%, #2a1a1a 100%);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background: linear-gradient(135deg, #4a2f2f 0%, #3a2a2a 100%);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    border-color: #ff6b6b;
}

.boss-info {
    margin-bottom: 10px;
    color: #a8a8c0;
    font-size: 1.1em;
}

.boss-info strong {
    color: #c9c9e0;
    font-weight: 600;
}

.timer-display {
    font-size: 2em;
    font-weight: bold;
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    margin: 15px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.timer-display.spawned {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow:
        inset 0 2px 10px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(16, 185, 129, 0.4);
    animation: pulse-green 2s ease-in-out infinite;
}

.timer-display.critical {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow:
        inset 0 2px 10px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(239, 68, 68, 0.4);
    animation: pulse-red 0.8s ease-in-out infinite;
}

.timer-display.soon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow:
        inset 0 2px 10px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(245, 158, 11, 0.4);
    animation: pulse-orange 1s ease-in-out infinite;
}

.timer-display.waiting {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow:
        inset 0 2px 10px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(59, 130, 246, 0.3);
}

@keyframes pulse-green {
    0%, 100% { box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 20px rgba(16, 185, 129, 0.4); }
    50% { box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 30px rgba(16, 185, 129, 0.6); }
}

@keyframes pulse-orange {
    0%, 100% { box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 20px rgba(245, 158, 11, 0.4); }
    50% { box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 35px rgba(245, 158, 11, 0.7); }
}

@keyframes pulse-red {
    0%, 100% { box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 20px rgba(239, 68, 68, 0.4); }
    50% { box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 40px rgba(239, 68, 68, 0.8); }
}

.update-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 0.9em;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    margin-top: 10px;
}

.update-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    filter: brightness(1.1);
}

.boss-last-update {
    text-align: center;
    font-size: 0.85em;
    color: #a8a8c0;
    margin-top: 10px;
    padding: 8px;
    background: rgba(20, 20, 30, 0.4);
    border-radius: 6px;
}

.update-btn-small {
    width: 100%;
    padding: 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.8em;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
    margin-top: 8px;
}

.update-btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.5);
    filter: brightness(1.1);
}

.boss-last-update-small {
    text-align: center;
    font-size: 0.75em;
    color: #a8a8c0;
    margin-top: 8px;
    padding: 6px;
    background: rgba(20, 20, 30, 0.4);
    border-radius: 6px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(145deg, rgba(25, 25, 40, 0.95), rgba(20, 20, 35, 0.95));
    margin: 5% auto;
    padding: 35px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(120, 119, 198, 0.3);
}

.close {
    color: #a8a8c0;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover {
    color: #e0e0ff;
    text-shadow: 0 0 10px rgba(224, 224, 255, 0.5);
}

.modal-content h2 {
    margin-bottom: 25px;
    color: #e0e0ff;
    text-shadow: 0 0 10px rgba(224, 224, 255, 0.3);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #c9c9e0;
    font-size: 0.95em;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(120, 119, 198, 0.3);
    border-radius: 8px;
    font-size: 1em;
    background: rgba(15, 15, 25, 0.6);
    color: #e0e0ff;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
    background: rgba(20, 20, 30, 0.8);
}

.form-group input::placeholder {
    color: #6a6a80;
}

.form-buttons {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.btn-submit,
.btn-cancel {
    flex: 1;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 1em;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    filter: brightness(1.1);
}

.btn-cancel {
    background: linear-gradient(135deg, #2d2d3a 0%, #1a1a2e 100%);
    color: #a8a8c0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.btn-cancel:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.2);
}

.empty-state {
    text-align: center;
    color: #c9c9e0;
    font-size: 1.2em;
    padding: 60px 20px;
    background: linear-gradient(145deg, rgba(20, 20, 30, 0.6), rgba(15, 15, 25, 0.6));
    border-radius: 20px;
    border: 1px solid rgba(120, 119, 198, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.boss-table-section {
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(145deg, rgba(20, 20, 30, 0.8), rgba(30, 30, 50, 0.6));
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(120, 119, 198, 0.2);
}

.boss-table-section h2 {
    text-align: center;
    color: #e0e0ff;
    font-size: 2em;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(224, 224, 255, 0.3);
}

.table-wrapper {
    margin-bottom: 40px;
}

.table-wrapper h3 {
    color: #c9c9ff;
    font-size: 1.5em;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(120, 119, 198, 0.3);
}

.boss-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(15, 15, 25, 0.6);
    border-radius: 10px;
    overflow: hidden;
}

.boss-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.boss-table thead th {
    padding: 15px;
    text-align: left;
    color: white;
    font-weight: 600;
    font-size: 1em;
}

.boss-table tbody tr {
    border-bottom: 1px solid rgba(120, 119, 198, 0.2);
    transition: background 0.3s ease;
}

.boss-table tbody tr:hover {
    background: rgba(120, 119, 198, 0.1);
}

.boss-table tbody tr:last-child {
    border-bottom: none;
}

.boss-table tbody td {
    padding: 12px 15px;
    color: #c9c9e0;
    font-size: 0.95em;
}

.boss-table tbody td:first-child {
    color: #a8a8c0;
}

.boss-table tbody td:nth-child(2) {
    color: #e0e0ff;
    font-weight: 600;
}

.boss-table tbody td:last-child {
    color: #a8a8ff;
    font-weight: 500;
}

.table-note {
    text-align: center;
    color: #fbbf24;
    font-size: 1em;
    margin-top: 20px;
    padding: 15px;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* 보스 위치 모달 */
.location-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.location-modal-content {
    background: linear-gradient(145deg, rgba(25, 25, 40, 0.98), rgba(20, 20, 35, 0.98));
    padding: 30px;
    border-radius: 20px;
    max-width: 90%;
    max-height: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(120, 119, 198, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.location-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #a8a8c0;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.location-close:hover {
    color: #e0e0ff;
    text-shadow: 0 0 10px rgba(224, 224, 255, 0.5);
    transform: scale(1.1);
}

.location-modal-title {
    color: #e0e0ff;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(224, 224, 255, 0.3);
    text-align: center;
}

.location-modal-image {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(120, 119, 198, 0.3);
}

.boss-location-row:hover {
    color: #e0e0ff;
    text-decoration: underline;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

    .controls {
        flex-direction: column;
    }

    .btn-add,
    .btn-reset {
        width: 100%;
    }

    .boss-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .boss-row-left,
    .boss-row-center {
        width: 100%;
        min-width: auto;
    }

    .boss-row-right {
        width: 100%;
        justify-content: space-between;
    }

    .timer-display-row {
        flex: 1;
        min-width: auto;
    }
}

/* 맨 위로 버튼 */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5em;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.7);
}

/* 개별 업데이트 버튼 */
.btn-individual-update {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    margin-right: 12px;
    box-shadow:
        0 4px 15px rgba(102, 126, 234, 0.4),
        0 0 20px rgba(118, 75, 162, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-individual-update::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.btn-individual-update:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 8px 25px rgba(102, 126, 234, 0.5),
        0 0 30px rgba(118, 75, 162, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-individual-update:hover::before {
    left: 100%;
}

.btn-individual-update:active {
    transform: translateY(-1px) scale(0.98);
}

/* 즐겨찾기 순서 번호 */
.favorite-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    color: #1a1a2e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1em;
    margin-right: 12px;
    box-shadow:
        0 4px 15px rgba(255, 215, 0, 0.6),
        0 0 20px rgba(255, 140, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    animation: number-glow 2s ease-in-out infinite;
}

@keyframes number-glow {
    0%, 100% {
        box-shadow:
            0 4px 15px rgba(255, 215, 0, 0.6),
            0 0 20px rgba(255, 140, 0, 0.3),
            inset 0 2px 4px rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow:
            0 4px 20px rgba(255, 215, 0, 0.8),
            0 0 30px rgba(255, 140, 0, 0.5),
            inset 0 2px 4px rgba(255, 255, 255, 0.4);
    }
}

/* 즐겨찾기 드래그 스타일 */
.favorites-container .boss-row {
    cursor: grab;
    user-select: none;
    position: relative;
}

.favorites-container .boss-row::before {
    content: '⋮⋮';
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 215, 0, 0.6);
    font-size: 1.2em;
    font-weight: bold;
    letter-spacing: -3px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.favorites-container .boss-row:hover::before {
    color: #ffd700;
    opacity: 1;
    left: -20px;
}

.favorites-container .boss-row:active {
    cursor: grabbing;
}

.favorites-container .boss-row.dragging {
    opacity: 0.6;
    transform: scale(1.03) rotate(1deg);
    box-shadow:
        0 15px 40px rgba(255, 215, 0, 0.4),
        0 0 30px rgba(255, 215, 0, 0.2);
    z-index: 1000;
    border: 2px dashed #ffd700;
    background: linear-gradient(145deg, rgba(60, 50, 30, 0.95), rgba(50, 40, 25, 0.95));
}

.favorites-container .boss-row.drag-over {
    border-top: 4px solid #ffd700;
    padding-top: 20px;
    margin-top: -4px;
    box-shadow: 0 -5px 20px rgba(255, 215, 0, 0.4);
}

/* 즐겨찾기 드래그 안내 문구 */
.favorites-drag-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 140, 0, 0.1) 100%);
    border: 1px dashed rgba(255, 215, 0, 0.4);
    border-radius: 10px;
    margin-bottom: 15px;
    color: #ffd700;
    font-size: 0.95em;
}

.favorites-drag-hint .drag-icon {
    font-size: 1.3em;
    animation: drag-hint-bounce 1.5s ease-in-out infinite;
}

@keyframes drag-hint-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* 모바일에서 개별 업데이트 버튼 */
@media (max-width: 768px) {
    .btn-individual-update {
        padding: 8px 14px;
        font-size: 0.8em;
        margin-right: 8px;
    }

    .favorite-number {
        width: 30px;
        height: 30px;
        min-width: 30px;
        font-size: 0.95em;
        margin-right: 10px;
    }

    .favorites-drag-hint {
        flex-direction: column;
        gap: 5px;
        padding: 10px 15px;
        font-size: 0.85em;
    }

    .favorites-container .boss-row::before {
        left: -18px;
        font-size: 1em;
    }

    .favorites-container .boss-row:hover::before {
        left: -15px;
    }

    .favorite-btn-row {
        padding: 4px 8px;
        font-size: 1.1em;
        min-width: 35px;
    }
}
