/* 기본 스타일 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 공통 유틸리티 클래스 */
.hidden {
    display: none !important;
}

body {
    font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

/* 앱 컨테이너 */
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* 헤더 */
.header {
    text-align: center;
    color: white;
    padding: 20px 0 30px;
}

.header h1 {
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
}

.header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.today-date {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-top: 5px;
}

/* 사용자 정보 표시 */
.user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.current-user {
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
}

.current-user::before {
    content: '👤 ';
}

.btn-logout {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 메인 콘텐츠 - 2열 그리드 (메뉴 패널은 오버레이) */
.main-content {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 20px;
    align-items: start;
}

/* 공통 섹션 스타일 */
.menu-panel,
.roulette-section,
.bingo-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.menu-panel h2,
.roulette-section h2,
.bingo-section h2 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

/* ===== 토글 버튼 - 오른쪽 하단 고정 ===== */
.menu-toggle-btn,
.settings-toggle-btn {
    position: fixed;
    right: 20px;
    width: 50px;
    height: 50px;
    padding: 0;
    background: rgba(102, 126, 234, 0.95);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle-btn {
    bottom: 20px;
}

.settings-toggle-btn {
    bottom: 80px;
    background: rgba(118, 75, 162, 0.95);
}

.menu-toggle-btn:hover {
    background: rgba(102, 126, 234, 1);
    transform: scale(1.1);
}

.settings-toggle-btn:hover {
    background: rgba(118, 75, 162, 1);
    transform: scale(1.1);
}

/* ===== 개인 설정 패널 ===== */
.settings-panel {
    position: fixed;
    right: 20px;
    bottom: 140px;
    width: 360px;
    z-index: 999;
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.settings-panel.hidden {
    display: none;
}

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

.settings-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.settings-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.settings-name-display {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
}

.settings-name-display #settingsCurrentName::before {
    content: '👤 ';
}

/* 관리자 잠금 버튼 */
.btn-admin-lock {
    background: none;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    margin-left: auto;
}

.btn-admin-lock:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.btn-admin-lock.unlocked {
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.settings-name-change {
    display: flex;
    gap: 8px;
}

.settings-name-change input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.settings-name-change input:focus {
    border-color: #667eea;
}

.settings-name-change button {
    flex: 0 0 auto;
    width: auto !important;
    padding: 8px 16px !important;
    white-space: nowrap;
}

.btn-sm {
    padding: 6px 12px !important;
    font-size: 0.85rem;
}

.btn-full {
    width: 100%;
    padding: 12px;
}

.settings-logout {
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* ===== 메뉴 관리 패널 ===== */
.menu-panel {
    position: fixed;
    right: 20px;
    bottom: 80px;
    width: 480px;
    max-height: 75vh;
    overflow-y: auto;
    z-index: 999;
    transition: all 0.3s ease;
}

.menu-panel.hidden {
    display: none;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.panel-header h2 {
    margin: 0;
    padding: 0;
    border: none;
}

.btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 0 5px;
    line-height: 1;
}

.btn-close:hover {
    color: #333;
}

.menu-input {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 10px;
}

.menu-input input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.menu-input input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-add {
    padding: 10px 16px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    font-weight: bold;
    transition: background 0.2s;
}

.btn-add:hover {
    background: #5a6fd6;
}

/* 드롭다운 컨테이너 */
.dropdown-container {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

/* 추가메뉴 버튼 */
.btn-extra {
    padding: 10px 12px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.btn-extra:hover {
    background: #219a52;
}

.btn-extra.active {
    background: #219a52;
    border-radius: 8px 8px 0 0;
}

/* 드롭다운 메뉴 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 100%;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 100;
    overflow: hidden;
}

.dropdown-menu.hidden {
    display: none;
}

/* 드롭다운 아이템 */
.dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 0.85rem;
    color: #333;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: #f0f0f0;
}

.dropdown-item:not(:last-child) {
    border-bottom: 1px solid #eee;
}

.dropdown-item-danger {
    color: #e74c3c;
}

.dropdown-item-danger:hover {
    background: #fdeaea;
}

/* Dropdown separator */
.dropdown-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, #ddd, transparent);
    margin: 5px 0;
}

/* Debug menu items */
.dropdown-item-debug {
    color: #9b59b6;
    font-style: italic;
    background: rgba(155, 89, 182, 0.05);
}

.dropdown-item-debug:hover {
    background: rgba(155, 89, 182, 0.15);
    color: #8e44ad;
}

.menu-count {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 10px;
}

.menu-list {
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.menu-list:empty::after {
    content: '등록된 메뉴가 없습니다';
    display: block;
    padding: 30px;
    text-align: center;
    color: #999;
    font-size: 0.9rem;
}

.menu-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.menu-list li:last-child {
    border-bottom: none;
}

.menu-list li:hover {
    background: #f8f9fa;
}

.menu-list li span {
    font-size: 0.95rem;
}

.btn-delete {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s;
}

.btn-delete:hover {
    background: #ee5a5a;
}

.control-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 빙고 실행 기록 */
.last-bingo-info {
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    cursor: default;
}

.last-bingo-info.hidden {
    display: none;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-danger {
    width: 100%;
    padding: 12px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s;
}

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

.btn-warning {
    width: 100%;
    padding: 10px;
    background: #f39c12;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.btn-warning:hover {
    background: #d68910;
}

/* ===== 돌림판 섹션 ===== */
.roulette-section {
    text-align: center;
}

.roulette-container {
    width: 100%;
    height: 400px;
    margin: 20px 0;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
}

.btn-spin {
    padding: 18px 60px;
    font-size: 1.5rem;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    border: none;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-spin:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.btn-spin:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-spin.spinning {
    animation: pulse 0.5s infinite;
}

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

.selected-result {
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 15px;
    font-size: 1.3rem;
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selected-result:empty::after {
    content: '돌림판을 돌려 메뉴를 선정하세요!';
    color: #888;
    font-size: 1rem;
}

.selected-result strong {
    color: #2e7d32;
    font-size: 1.5rem;
}

/* ===== 빙고판 섹션 ===== */
.bingo-section {
    position: sticky;
    top: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 600px;
}

.bingo-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1rem;
}

.bingo-info strong {
    color: #667eea;
    font-size: 1.3rem;
}

.bingo-status {
    display: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
}

.bingo-status.complete {
    display: block;
    background: linear-gradient(45deg, #ffd700, #ffaa00);
    color: #333;
    animation: glow 1s infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 5px #ffd700; }
    to { box-shadow: 0 0 20px #ffd700; }
}

.bingo-board {
    display: grid;
    gap: 3px;
    background: #333;
    padding: 5px;
    border-radius: 10px;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    box-sizing: border-box;
    flex: 1;
}

.bingo-placeholder {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #888;
    text-align: center;
    line-height: 1.6;
    font-size: 0.95rem;
    border-radius: 8px;
    padding: 40px;
}

.bingo-cell {
    background: white;
    padding: 6px 4px;
    text-align: center;
    font-size: 0.75rem;
    word-break: break-all;
    display: flex;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    aspect-ratio: 1;
    line-height: 1.3;
    cursor: default;
    border-radius: 4px;
}

.bingo-cell.checked {
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: white;
    font-weight: bold;
    transform: scale(0.95);
}

.bingo-cell.checked::before {
    content: '✓ ';
}

/* 오늘 선정된 메뉴 */
.bingo-cell.checked.checked-today {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    animation: today-pulse 1.5s ease-in-out infinite;
    transform: scale(0.95);
}

.bingo-cell.checked.checked-today::before {
    content: '★ ';
}

@keyframes today-pulse {
    0%, 100% {
        box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.7);
    }
}

.bingo-cell.line-complete {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #333;
}

/* ===== 반응형 디자인 ===== */
@media (max-width: 1024px) {
    .main-content {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .roulette-section {
        order: 1;
    }

    .bingo-section {
        order: 2;
        position: static;
    }

    .roulette-container {
        height: 350px;
    }

    .menu-list {
        max-height: 200px;
    }
}

@media (max-width: 600px) {
    .header h1 {
        font-size: 1.8rem;
    }

    .today-date {
        font-size: 1rem;
    }

    .roulette-container {
        height: 280px;
    }

    .btn-spin {
        padding: 14px 40px;
        font-size: 1.2rem;
    }

    .bingo-cell {
        font-size: 0.65rem;
        padding: 4px 3px;
        -webkit-line-clamp: 2;
    }

    .menu-panel {
        width: calc(100vw - 40px);
        left: 20px;
        right: 20px;
    }

    .menu-toggle-btn {
        right: 15px;
        bottom: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

/* 스크롤바 스타일 */
.menu-list::-webkit-scrollbar {
    width: 6px;
}

.menu-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.menu-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.menu-list::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

/* ===== 빙고 기록 버튼 ===== */
.btn-history {
    margin-top: 15px;
    padding: 8px 16px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}

.btn-history:hover:not(:disabled) {
    background: #5a6268;
}

.btn-history:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ===== 모달 스타일 ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

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

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

/* ===== 메뉴 추가/수정 모달 ===== */
.menu-edit-content {
    max-width: 400px;
}

.modal-body {
    padding: 20px;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: #667eea;
}

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

.btn-secondary {
    padding: 10px 20px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* 메뉴 액션 버튼 컨테이너 */
.menu-actions {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

/* 수정 버튼 */
.btn-edit {
    background: #667eea;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s;
}

.btn-edit:hover {
    background: #5a6fd6;
}

/* ===== 로그인 모달 스타일 ===== */
.login-modal {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
}

.login-modal .modal-content,
.login-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-header {
    margin-bottom: 30px;
}

.login-header h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
}

.login-subtitle {
    color: #666;
    font-size: 1rem;
}

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

.login-form input {
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s;
    text-align: center;
}

.login-form input:focus {
    border-color: #667eea;
}

.btn-login {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 12px;
    margin-top: 10px;
}

.login-hint {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #999;
}

/* ===== 빙고 기록 목록 ===== */
.history-list {
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
}

.history-list:empty::after {
    content: '저장된 빙고 기록이 없습니다';
    display: block;
    padding: 40px;
    text-align: center;
    color: #999;
}

.history-item {
    margin: 8px 0;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    overflow: hidden;
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.history-item-header:hover {
    background: #e9ecef;
}

.history-item-header.expanded {
    background: #e3e8f0;
    border-bottom: 1px solid #ddd;
}

.toggle-icon {
    display: inline-block;
    width: 16px;
    font-size: 0.75rem;
    color: #667eea;
    margin-right: 6px;
    transition: transform 0.2s;
}

.history-item-info {
    flex: 1;
}

.history-item-info .date {
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
}

.history-item-info .details {
    font-size: 0.85rem;
    color: #666;
    margin-left: 22px;
}

.history-item .btn-delete-history {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-left: 10px;
    transition: background 0.2s;
}

.history-item .btn-delete-history:hover {
    background: #ee5a5a;
}

/* 토글 콘텐츠 영역 */
.history-item-content {
    padding: 15px;
    background: #fff;
    border-top: 1px solid #eee;
}

.history-item-content.hidden {
    display: none;
}

.no-board-info {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    padding: 20px;
    font-style: italic;
}

/* 미니 빙고 보드 스타일 */
.mini-bingo-container {
    display: flex;
    justify-content: center;
    padding: 10px;
}

.mini-bingo-board {
    display: grid;
    gap: 2px;
    background: #333;
    padding: 3px;
    border-radius: 6px;
    max-width: 280px;
    width: 100%;
}

.mini-bingo-cell {
    background: white;
    padding: 6px 3px;
    text-align: center;
    font-size: 0.55rem;
    word-break: break-all;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    line-height: 1.1;
    cursor: default;
    overflow: hidden;
    border-radius: 2px;
}

.mini-bingo-cell.checked {
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: white;
    font-weight: bold;
}

.mini-bingo-cell.line-complete {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #333;
}

/* ===== 슬롯 머신 스타일 ===== */
.slot-machine {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #2c3e50, #1a252f);
    border-radius: 15px;
    padding: 20px;
    box-shadow:
        inset 0 5px 15px rgba(0,0,0,0.3),
        0 10px 30px rgba(0,0,0,0.4);
}

/* 상단 장식 조명 */
.slot-machine-top {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.slot-light {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #ffd700;
    box-shadow: 0 0 10px #ffd700, 0 0 20px #ffd700;
    animation: slot-blink 0.8s ease-in-out infinite alternate;
}

.slot-light:nth-child(2) { animation-delay: 0.2s; }
.slot-light:nth-child(3) { animation-delay: 0.4s; }

@keyframes slot-blink {
    from { opacity: 0.5; box-shadow: 0 0 5px #ffd700; }
    to { opacity: 1; box-shadow: 0 0 15px #ffd700, 0 0 30px #ffd700; }
}

/* 메인 디스플레이 영역 */
.slot-display {
    position: relative;
    width: 300px;
    height: 300px;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    border: 4px solid #c9a227;
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
        inset 0 0 30px rgba(0,0,0,0.5),
        0 0 20px rgba(201, 162, 39, 0.3);
}

/* 슬롯 윈도우 (마스크) */
.slot-window {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

/* 슬롯 릴 (스크롤되는 리스트) */
.slot-reel {
    position: absolute;
    width: 100%;
    will-change: transform;
}

/* 개별 메뉴 아이템 */
.slot-item {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 0 20px;
    text-align: center;
    word-break: keep-all;
}

/* 아이템 색상 변화 (인덱스별) */
.slot-item:nth-child(odd) {
    background: linear-gradient(90deg,
        rgba(102, 126, 234, 0.3) 0%,
        rgba(102, 126, 234, 0.1) 50%,
        rgba(102, 126, 234, 0.3) 100%);
}

.slot-item:nth-child(even) {
    background: linear-gradient(90deg,
        rgba(118, 75, 162, 0.3) 0%,
        rgba(118, 75, 162, 0.1) 50%,
        rgba(118, 75, 162, 0.3) 100%);
}

/* 선택 표시선 */
.slot-selector {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}

.selector-line {
    flex: 1;
    height: 100%;
    border-top: 3px solid #ffd700;
    border-bottom: 3px solid #ffd700;
    background: rgba(255, 215, 0, 0.1);
    box-shadow:
        inset 0 0 20px rgba(255, 215, 0, 0.2),
        0 0 15px rgba(255, 215, 0, 0.3);
}

.selector-arrow {
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
}

.selector-arrow.left {
    border-right: 20px solid #ffd700;
}

.selector-arrow.right {
    border-left: 20px solid #ffd700;
}

/* 상하 그라데이션 페이드 */
.slot-fade-top,
.slot-fade-bottom {
    position: absolute;
    left: 0;
    right: 0;
    height: 100px;
    pointer-events: none;
    z-index: 5;
}

.slot-fade-top {
    top: 0;
    background: linear-gradient(180deg,
        rgba(26, 26, 46, 1) 0%,
        rgba(26, 26, 46, 0) 100%);
}

.slot-fade-bottom {
    bottom: 0;
    background: linear-gradient(0deg,
        rgba(22, 33, 62, 1) 0%,
        rgba(22, 33, 62, 0) 100%);
}

/* 빈 상태 메시지 */
.slot-empty-message {
    color: #888;
    font-size: 1.2rem;
    text-align: center;
    padding: 40px;
}

/* 회전 중 효과 */
.slot-machine.spinning .slot-light {
    animation: spinning-light 0.15s linear infinite;
}

@keyframes spinning-light {
    0% { background: #ff6b6b; box-shadow: 0 0 15px #ff6b6b; }
    33% { background: #ffd700; box-shadow: 0 0 15px #ffd700; }
    66% { background: #4ecdc4; box-shadow: 0 0 15px #4ecdc4; }
    100% { background: #ff6b6b; box-shadow: 0 0 15px #ff6b6b; }
}

/* 선택 완료 효과 */
.slot-item.selected {
    background: linear-gradient(90deg,
        rgba(255, 215, 0, 0.4) 0%,
        rgba(255, 215, 0, 0.2) 50%,
        rgba(255, 215, 0, 0.4) 100%) !important;
    color: #ffd700;
    font-size: 1.6rem;
    animation: selected-pulse 0.5s ease-in-out;
}

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

/* 파티클 컨테이너 */
.particle-container {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 1000;
}

/* 개별 파티클 */
.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #ffd700 0%, #ffed4e 50%, #ffd700 100%);
    border-radius: 50%;
    box-shadow: 0 0 8px #ffd700, 0 0 12px #ffd700;
    animation: particle-burst 0.6s ease-out forwards;
}

/* 파티클 폭발 애니메이션 */
@keyframes particle-burst {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(0.3);
        opacity: 0;
    }
}

/* 오늘의 선택 표시 */
.slot-last-selected {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 6px 15px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.15));
    border: 1px solid #ffd700;
    border-radius: 20px;
}

.last-selected-label {
    font-size: 0.7rem;
    color: #ffd700;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.last-selected-menu {
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* 오늘 이미 돌린 버튼 스타일 */
.btn-spin.already-spun {
    background: linear-gradient(45deg, #6c757d, #495057);
    cursor: default;
}

.btn-spin.already-spun:hover {
    transform: none;
    box-shadow: none;
}

/* 투표 모드 버튼 스타일 */
.btn-spin.voting-mode {
    background: linear-gradient(45deg, #28a745, #20c997);
    animation: pulse-voting 2s infinite;
}

.btn-spin.voting-mode:hover {
    background: linear-gradient(45deg, #218838, #1aa179);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

@keyframes pulse-voting {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(40, 167, 69, 0.3);
    }
    50% {
        box-shadow: 0 5px 30px rgba(40, 167, 69, 0.6);
    }
}

/* 슬롯 머신 반응형 */
@media (max-width: 600px) {
    .slot-display {
        width: 260px;
        height: 260px;
    }

    .slot-item {
        height: 52px;
        font-size: 1.2rem;
    }

    .selector-line {
        height: 56px;
    }

    .slot-fade-top,
    .slot-fade-bottom {
        height: 80px;
    }

    .slot-last-selected {
        padding: 5px 12px;
    }

    .last-selected-menu {
        font-size: 0.9rem;
    }
}

/* ===== 투표 시스템 스타일 ===== */

/* 투표 모달 */
.voting-modal {
    z-index: 2000;
}

.voting-modal .modal-content {
    max-width: 700px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.voting-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 투표 헤더 */
.voting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 2px solid #eee;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    flex-shrink: 0;
}

.voting-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.voting-header .btn-close {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 1.5rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.voting-header .btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ===== 투표 탭 시스템 ===== */
.voting-tab-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.voting-tab-container.hidden {
    display: none;
}

/* 탭 버튼 */
.voting-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #eee;
    flex-shrink: 0;
}

.voting-tab {
    flex: 1;
    padding: 10px 6px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: all 0.2s;
    color: #666;
    position: relative;
    min-width: 0;
}

.voting-tab:hover {
    background: #eee;
}

.voting-tab.active {
    color: #667eea;
    background: white;
}

.voting-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 비시즌 투표 탭 활성화 시 주황색 */
.voting-tab[data-tab="offSeasonVote"].active {
    color: #f39c12;
}

.voting-tab[data-tab="offSeasonVote"].active::after {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.voting-tab.completed {
    color: #28a745;
}

.voting-tab.completed .tab-icon::after {
    content: '✓';
    font-size: 0.7rem;
    margin-left: 2px;
}

.voting-tab.locked {
    color: #ccc;
    cursor: not-allowed;
}

.tab-icon {
    font-size: 1.1rem;
}

.tab-label {
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
}

/* 탭 콘텐츠 */
.voting-tab-content {
    display: none;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.voting-tab-content.active {
    display: flex;
}

.tab-header {
    padding: 20px 20px 15px;
    flex-shrink: 0;
}

.tab-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.tab-header-row h4 {
    margin: 0;
}

.btn-refresh {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s, transform 0.3s;
}

.btn-refresh:hover {
    background: rgba(102, 126, 234, 0.1);
}

.btn-refresh.spinning {
    animation: spin 0.5s linear;
}

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

.tab-header h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 8px;
}

.tab-header .stage-description {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.tab-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    flex-shrink: 0;
}

.tab-footer .btn-primary {
    width: 100%;
}

/* 배치 컨트롤 (탭 내) */
.voting-tab-content .batch-controls {
    padding: 0 20px 15px;
    flex-shrink: 0;
}

/* 메뉴 리스트 (탭 내) */
.voting-tab-content .voting-menu-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px;
    margin: 0;
    max-height: none;
}

/* 결과 섹션 (탭 내) */
.voting-tab-content .results-summary {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px 20px;
}

/* 투표 단계 (Stage 0용) */
.voting-stage {
    padding: 30px;
}

.voting-stage.hidden {
    display: none;
}

.voting-stage h4 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 10px;
}

.stage-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Stage 0: 이름 입력 */
.name-entry-container {
    text-align: center;
}

.name-entry-container h4 {
    margin-bottom: 20px;
    color: #333;
}

/* 로딩 스피너 */
.voting-loading {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.voting-status {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.voting-status p {
    margin: 0;
    color: #666;
}

/* 투표 메뉴 리스트 */
.voting-menu-list {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.voting-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.voting-menu-item:hover {
    background: #e9ecef;
}

.voting-menu-item .menu-name {
    font-weight: 600;
    font-size: 1rem;
    color: #333;
}

.vote-buttons {
    display: flex;
    gap: 8px;
}

/* 일괄 선택 컨트롤 */
.batch-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f0f2f5;
    border-radius: 10px;
    border: 2px dashed #cbd5e0;
}

.btn-batch {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-batch:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-batch:active {
    transform: scale(0.98);
}

.btn-batch-like {
    background: linear-gradient(135deg, #28a745, #34ce57);
    color: white;
}

.btn-batch-like:hover {
    background: linear-gradient(135deg, #34ce57, #28a745);
}

.btn-batch-dislike {
    background: linear-gradient(135deg, #dc3545, #e85463);
    color: white;
}

.btn-batch-dislike:hover {
    background: linear-gradient(135deg, #e85463, #dc3545);
}

.btn-batch-keep {
    background: linear-gradient(135deg, #17a2b8, #20c0d7);
    color: white;
}

.btn-batch-keep:hover {
    background: linear-gradient(135deg, #20c0d7, #17a2b8);
}

.btn-batch-remove {
    background: linear-gradient(135deg, #dc3545, #e85463);
    color: white;
}

.btn-batch-remove:hover {
    background: linear-gradient(135deg, #e85463, #dc3545);
}

/* 일괄 적용 애니메이션 */
.voting-menu-item.batch-applied {
    animation: batch-flash 0.4s ease;
}

@keyframes batch-flash {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); background: #fff3cd; }
    100% { transform: scale(1); }
}

/* 투표 버튼 */
.btn-like,
.btn-dislike,
.btn-keep,
.btn-remove {
    padding: 8px 16px;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-like {
    background: #e7f5e7;
    color: #28a745;
    border-color: #c3e6cb;
}

.btn-like:hover {
    background: #d4edda;
}

.btn-like.selected {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.btn-dislike {
    background: #f8d7da;
    color: #dc3545;
    border-color: #f5c6cb;
}

.btn-dislike:hover {
    background: #f1b0b7;
}

.btn-dislike.selected {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.btn-like.voted {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.btn-dislike.voted {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.btn-keep {
    background: #d1ecf1;
    color: #17a2b8;
    border-color: #bee5eb;
}

.btn-keep:hover {
    background: #b8daff;
}

.btn-keep.selected {
    background: #17a2b8;
    color: white;
    border-color: #17a2b8;
}

.btn-remove {
    background: #f8d7da;
    color: #dc3545;
    border-color: #f5c6cb;
}

.btn-remove:hover {
    background: #f1b0b7;
}

.btn-remove.selected {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

/* 투표자 현황 섹션 */
.voter-summary {
    padding: 0 20px 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.voter-section h5 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eee;
}

.voter-list-display {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
}

.voter-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.voter-stat {
    font-size: 0.9rem;
    color: #555;
}

.voter-stat strong {
    color: #333;
}

.voter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.voter-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.voter-badge.completed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.voter-badge.in-progress {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.no-voters {
    color: #888;
    text-align: center;
    font-size: 0.9rem;
    margin: 0;
}

/* 결과 표시 */
.results-summary {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.result-section h5 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eee;
}

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

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #6c757d;
}

.result-item.status-keep {
    border-left-color: #28a745;
    background: #e7f5e7;
}

.result-item.status-remove {
    border-left-color: #dc3545;
    background: #f8d7da;
}

.result-item.trophy-winner {
    background: linear-gradient(to right, #fff9e6 0%, #ffffff 100%);
    border-left: 3px solid #ffd700;
    padding-left: 8px;
}

.result-item .menu-name {
    font-weight: 600;
    color: #333;
}

.vote-bars {
    display: flex;
    width: 200px;
    height: 30px;
    border-radius: 6px;
    overflow: hidden;
    background: #e9ecef;
}

.like-bar,
.dislike-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    transition: width 0.3s;
}

.like-bar {
    background: #28a745;
}

.dislike-bar {
    background: #dc3545;
}

/* New side-by-side vote comparison layout */
.vote-comparison {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: flex-end;
    min-height: 120px;
    padding: 10px 0;
}

.vote-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 100px;
}

.vote-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
}

.vote-bar-container {
    width: 60px;
    height: 80px;
    background: #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
}

.vote-fill {
    width: 100%;
    transition: height 0.3s ease;
    border-radius: 0 0 8px 8px;
}

.like-fill {
    background: linear-gradient(to top, #28a745, #34d058);
}

.dislike-fill {
    background: linear-gradient(to top, #dc3545, #f85a5a);
}

.vote-count {
    font-size: 0.9rem;
    font-weight: 700;
    color: #212529;
}

.like-side .vote-count {
    color: #28a745;
}

.dislike-side .vote-count {
    color: #dc3545;
}

.vote-counts {
    display: flex;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.keep-count {
    color: #17a2b8;
}

.remove-count {
    color: #dc3545;
}

.no-results {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-size: 1rem;
}

/* 메뉴 패널의 투표 마감 버튼 */
.btn-danger {
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    margin-bottom: 10px;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

/* 투표 상태 표시 */
.voting-status-display {
    background: #e7f5e7;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 10px;
}

.voting-status-display span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #28a745;
}

/* 투표 완료 표시 호버 스타일 */
#voterCountText,
#voterCountDisplay {
    cursor: help;
}

#voterCountText:hover,
#voterCountDisplay:hover {
    opacity: 0.85;
}

/* 메뉴 목록의 투표 결과 뱃지 */
.menu-voting-badges {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.menu-voting-badges .badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.menu-voting-badges .like-badge {
    background: #d4edda;
    color: #28a745;
}

.menu-voting-badges .dislike-badge {
    background: #f8d7da;
    color: #dc3545;
}

.menu-voting-badges .keep-badge {
    background: #d1ecf1;
    color: #17a2b8;
}

.menu-voting-badges .remove-badge {
    background: #f5c6cb;
    color: #721c24;
}

.menu-voting-badges .trophy-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #b8860b;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(184, 134, 11, 0.3);
    border: 1px solid #daa520;
}

/* 메뉴 아이템 색상 코딩 */
.menu-list li[data-vote-status="kept"] {
    border-left: 4px solid #28a745;
    background: #e7f5e7;
}

.menu-list li[data-vote-status="removed"] {
    border-left: 4px solid #dc3545;
    background: #f8d7da;
}

/* 투표 모달 반응형 */
@media (max-width: 768px) {
    .voting-modal .modal-content {
        max-width: 95%;
        margin: 10px;
    }

    .voting-stage {
        padding: 20px;
    }

    .voting-menu-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .vote-buttons {
        width: 100%;
        justify-content: space-between;
    }

    .vote-bars {
        width: 150px;
    }

    .batch-controls {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .btn-batch {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}

/* 일괄 선택 알림 애니메이션 */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
}

/* ===== 신규 가게 등록 탭 스타일 ===== */

.newstore-add-section {
    padding: 0 20px 15px;
    flex-shrink: 0;
    display: flex;
    gap: 8px;
}

.newstore-add-section .btn-add-newstore {
    flex: 1;
}

.btn-add-newstore {
    padding: 14px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-add-newstore:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.btn-add-newstore:active {
    transform: translateY(0);
}

/* 신규 가게 추가 옵션 버튼 (...) */
.btn-newstore-extra {
    padding: 10px 14px;
    background: #20c997;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 2px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.btn-newstore-extra:hover {
    background: #17a085;
}

.btn-newstore-extra.active {
    background: #17a085;
    border-radius: 10px 10px 0 0;
}

/* 신규 가게 드롭다운 컨테이너 */
.newstore-dropdown-container {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
}

/* 신규 가게 드롭다운 메뉴 */
.newstore-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 150px;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    z-index: 100;
    overflow: hidden;
}

.newstore-dropdown .dropdown-item {
    display: block;
    width: 100%;
    padding: 12px 16px;
    text-align: left;
    background: white;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.newstore-dropdown .dropdown-item:hover {
    background: #f0f8ff;
}

.newstore-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px;
    max-height: 350px;
}

.newstore-item {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 12px;
    border-left: 4px solid #28a745;
    transition: all 0.2s;
}

.newstore-item:hover {
    background: #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.newstore-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.newstore-name,
.newstore-name-link {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
}

.newstore-name-link {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s;
}

.newstore-name-link:hover {
    color: #5a67d8;
    text-decoration: underline;
}

.newstore-registrant {
    font-size: 0.85rem;
    color: #888;
    background: #e9ecef;
    padding: 2px 8px;
    border-radius: 4px;
}

.newstore-actions {
    display: flex;
    gap: 6px;
    margin-left: 10px;
}

.btn-newstore-edit,
.btn-newstore-delete {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.btn-newstore-edit {
    background: #ffc107;
    color: #333;
}

.btn-newstore-edit:hover {
    background: #e0a800;
}

.btn-newstore-delete {
    background: #dc3545;
    color: white;
}

.btn-newstore-delete:hover {
    background: #c82333;
}

.newstore-vote-buttons {
    display: flex;
    gap: 10px;
}

.btn-newstore-like,
.btn-newstore-dislike {
    padding: 8px 16px;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-newstore-like {
    background: #e7f5e7;
    color: #28a745;
    border-color: #c3e6cb;
}

.btn-newstore-like:hover {
    background: #d4edda;
    border-color: #28a745;
}

.btn-newstore-like.voted {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.btn-newstore-dislike {
    background: #f8d7da;
    color: #dc3545;
    border-color: #f5c6cb;
}

.btn-newstore-dislike:hover {
    background: #f5c6cb;
    border-color: #dc3545;
}

.btn-newstore-dislike.voted {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.newstore-vote-count {
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.newstore-footer {
    background: #f0f8ff;
    border-top: 1px solid #cce5ff;
    padding: 15px 20px !important;
}

.newstore-info {
    font-size: 0.85rem;
    color: #004085;
    text-align: center;
    margin: 0;
}

.no-proposals {
    text-align: center;
    color: #888;
    padding: 40px 20px;
    font-size: 1rem;
}

/* 신규 탭 반응형 */
@media (max-width: 768px) {
    .newstore-item {
        padding: 12px;
    }

    .newstore-vote-buttons {
        width: 100%;
        justify-content: flex-end;
    }

    .btn-newstore-like,
    .btn-newstore-dislike {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

/* 메뉴 URL 링크 스타일 */
.menu-link, .result-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.menu-link:hover, .result-link:hover {
    text-decoration: underline;
    color: #007bff;
}

.result-link {
    color: #2e7d32;
}

.result-link:hover {
    color: #1b5e20;
}

/* 빙고 셀 URL 링크 스타일 */
.bingo-cell.has-url {
    cursor: pointer;
}

.bingo-cell.has-url::after {
    content: ' 🔗';
    font-size: 0.7em;
}

/* ===== 이전 투표 결과 버튼 ===== */
.previous-result-toggle-btn {
    position: fixed;
    right: 20px;
    bottom: 140px;
    width: 50px;
    height: 50px;
    padding: 0;
    background: rgba(255, 152, 0, 0.95);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.previous-result-toggle-btn:hover {
    background: rgba(255, 152, 0, 1);
    transform: scale(1.1);
}

.previous-result-toggle-btn.hidden {
    display: none !important;
}

/* ===== 이전 투표 결과 모달 ===== */
.previous-voting-modal {
    z-index: 2000;
}

.previous-voting-modal .modal-content {
    max-width: 700px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.previous-voting-content {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.previous-voting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 2px solid #eee;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    flex-shrink: 0;
}

.previous-voting-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.previous-voting-header .btn-close {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 1.5rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.previous-voting-header .btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 이전 투표 결과 탭 컨테이너 */
.previous-voting-tab-container {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.previous-voting-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid #eee;
    flex-shrink: 0;
}

.previous-voting-tab {
    flex: 1;
    padding: 12px 15px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
    color: #666;
    position: relative;
}

.previous-voting-tab:hover {
    background: #eee;
}

.previous-voting-tab.active {
    color: #ff9800;
    background: white;
}

.previous-voting-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
}

/* 이전 투표 결과 탭 콘텐츠 */
.previous-voting-tab-content {
    display: none;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.previous-voting-tab-content.active {
    display: flex;
}

/* 투표 현황 탭 스타일 */
.prev-voter-summary {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.prev-voter-summary h5 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 12px;
}

.prev-voter-list-display {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.prev-results-summary {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.prev-result-section h5 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eee;
}

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

/* 새 가게 탭 스타일 */
.prev-newstore-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.prev-newstore-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #6c757d;
}

.prev-newstore-item.approved {
    border-left-color: #28a745;
    background: #f0fff0;
}

.prev-newstore-item.rejected {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.prev-newstore-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.prev-newstore-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
}

.prev-newstore-status {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
}

.prev-newstore-item.approved .prev-newstore-status {
    background: #d4edda;
    color: #155724;
}

.prev-newstore-item.rejected .prev-newstore-status {
    background: #f8d7da;
    color: #721c24;
}

.prev-newstore-votes {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 6px;
}

.prev-newstore-registrant {
    font-size: 0.85rem;
    color: #888;
}

/* 최종 결과 탭 스타일 */
.prev-final-result-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.prev-final-section h5 {
    font-size: 1rem;
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 6px;
}

.prev-final-section:nth-child(1) h5 {
    background: #e7f5e7;
    color: #28a745;
}

.prev-final-section:nth-child(2) h5 {
    background: #f8d7da;
    color: #dc3545;
}

.prev-final-section:nth-child(3) h5 {
    background: #d1ecf1;
    color: #17a2b8;
}

.prev-final-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.prev-final-item {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.prev-final-item.kept {
    background: #d4edda;
    color: #155724;
}

.prev-final-item.removed {
    background: #f8d7da;
    color: #721c24;
    text-decoration: line-through;
}

.prev-final-item.added {
    background: #d1ecf1;
    color: #0c5460;
}

/* 과반수 기준 요약 박스 */
.prev-majority-summary {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
    border-left: 4px solid #2196f3;
}

.prev-majority-summary .summary-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1565c0;
    margin-bottom: 10px;
}

.prev-majority-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prev-majority-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #333;
    flex-wrap: wrap;
}

.prev-majority-badge {
    background: #2196f3;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
}

/* 선정 이유 포함 메뉴 아이템 */
.prev-final-item-with-reason {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 14px;
    border-radius: 10px;
    margin-bottom: 8px;
    width: 100%;
}

.prev-final-item-with-reason .menu-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.prev-final-item-with-reason .menu-reason {
    font-size: 0.8rem;
    font-style: italic;
}

.prev-final-item-with-reason.kept {
    background: #d4edda;
    border-left: 3px solid #28a745;
}

.prev-final-item-with-reason.kept .menu-reason {
    color: #155724;
}

.prev-final-item-with-reason.removed {
    background: #f8d7da;
    border-left: 3px solid #dc3545;
}

.prev-final-item-with-reason.removed .menu-name {
    text-decoration: line-through;
}

.prev-final-item-with-reason.removed .menu-reason {
    color: #721c24;
}

.prev-final-item-with-reason.promoted {
    background: #fff3cd;
    border-left: 3px solid #ffc107;
}

.prev-final-item-with-reason.promoted .menu-reason {
    color: #856404;
}

.prev-final-item-with-reason.added {
    background: #d1ecf1;
    border-left: 3px solid #17a2b8;
}

.prev-final-item-with-reason.added .menu-reason {
    color: #0c5460;
}

.prev-final-item-with-reason.remained {
    background: #e2e3e5;
    border-left: 3px solid #6c757d;
}

.prev-final-item-with-reason.remained .menu-reason {
    color: #495057;
}

/* 비시즌 승격 섹션 스타일 */
.prev-final-section:nth-child(3) h5 {
    background: #fff3cd;
    color: #856404;
}

/* 비시즌 유지 섹션 스타일 */
.prev-final-section:nth-child(4) h5 {
    background: #e2e3e5;
    color: #495057;
}

/* 신규 가게 섹션 스타일 */
.prev-final-section:nth-child(5) h5 {
    background: #d1ecf1;
    color: #17a2b8;
}

/* 미승인 신규 가게 섹션 스타일 */
.prev-final-section:nth-child(6) h5 {
    background: #f5c6cb;
    color: #721c24;
}

/* 미승인 아이템 스타일 */
.prev-final-item-with-reason.rejected {
    background: #f5c6cb;
    border-left: 3px solid #dc3545;
}

.prev-final-item-with-reason.rejected .menu-reason {
    color: #721c24;
}

/* 비시즌 투표 결과 색상 구분 */
.result-item.offseason-promoted {
    background: #d4edda;
    border-left: 3px solid #28a745;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 6px;
}

.result-item.offseason-remained {
    background: #fff3cd;
    border-left: 3px solid #ffc107;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 6px;
}

.result-item .status-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.result-item.offseason-promoted .status-badge {
    background: #28a745;
    color: white;
}

.result-item.offseason-remained .status-badge {
    background: #ffc107;
    color: #856404;
}

.prev-no-items {
    color: #888;
    font-size: 0.9rem;
    font-style: italic;
}

/* 최종 결과 메뉴 태그 */
.menu-tag {
    display: inline-block;
    padding: 4px 10px;
    margin: 3px;
    border-radius: 15px;
    font-size: 0.85rem;
    background: #e9ecef;
    color: #495057;
}

.menu-tag.season {
    background: #d4edda;
    color: #155724;
}

.menu-tag.offseason {
    background: #fff3cd;
    color: #856404;
}

/* 신규 가게 결과 아이템 */
.newstore-result-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.newstore-result-item.approved {
    background: #d4edda;
    border-left: 3px solid #28a745;
}

.newstore-result-item.rejected {
    background: #f8d7da;
    border-left: 3px solid #dc3545;
}

.newstore-result-item .store-icon {
    font-size: 1.1rem;
}

.newstore-result-item .store-name {
    font-weight: 600;
    flex: 1;
}

.newstore-result-item .store-votes {
    font-size: 0.9rem;
    color: #666;
}

/* 최종 결과 섹션 스타일 */
.prev-final-section:nth-child(1) h5 {
    background: #d4edda;
    color: #155724;
}

.prev-final-section:nth-child(2) h5 {
    background: #fff3cd;
    color: #856404;
}

.prev-final-section:nth-child(3) h5 {
    background: #d1ecf1;
    color: #0c5460;
}

/* 이전 투표 결과 반응형 */
@media (max-width: 768px) {
    .previous-result-toggle-btn {
        bottom: 130px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

@media (max-width: 600px) {
    .previous-voting-modal .modal-content {
        max-width: 95%;
        margin: 10px;
    }
}

/* ===== 메뉴 시즌/비시즌 탭 ===== */
.menu-season-tabs {
    display: flex;
    gap: 4px;
    margin: 0 15px 15px;
    background: #f0f0f0;
    border-radius: 8px;
    padding: 4px;
}

.menu-season-tab {
    flex: 1;
    padding: 10px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    transition: all 0.2s;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.menu-season-tab:hover {
    background: #e0e0e0;
}

.menu-season-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.menu-season-tab[data-season="offSeason"].active {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.menu-season-tab .tab-count {
    background: rgba(255,255,255,0.3);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.menu-season-tab.active .tab-count {
    background: rgba(255,255,255,0.3);
}

/* 비시즌 메뉴 아이템 스타일 */
.menu-list li.off-season {
    border-left: 4px solid #f39c12;
    background: #fff9e6;
}

.menu-list li.off-season:hover {
    background: #fff3cd;
}

/* 시즌 전환 버튼 */
.btn-toggle-season {
    padding: 4px 8px;
    font-size: 0.75rem;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 8px;
}

.btn-toggle-season:hover {
    background: #5a6268;
}

.btn-toggle-season.to-season {
    background: #28a745;
}

.btn-toggle-season.to-season:hover {
    background: #218838;
}

.btn-toggle-season.to-offseason {
    background: #f39c12;
}

.btn-toggle-season.to-offseason:hover {
    background: #e67e22;
}

/* ===== 투표 서브탭 ===== */
.vote-sub-tabs {
    display: flex;
    margin: 0 0 15px 0;
    border-bottom: 2px solid #eee;
}

.vote-sub-tab {
    flex: 1;
    padding: 10px 15px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    transition: all 0.2s;
    position: relative;
}

.vote-sub-tab:hover {
    color: #333;
    background: #f8f9fa;
}

.vote-sub-tab.active {
    color: #667eea;
}

.vote-sub-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px 3px 0 0;
}

.vote-sub-tab[data-tab="offSeason"].active {
    color: #f39c12;
}

.vote-sub-tab[data-tab="offSeason"].active::after {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.vote-sub-tab .tab-badge {
    background: #e9ecef;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.75rem;
    margin-left: 6px;
}

.vote-sub-tab.active .tab-badge {
    background: rgba(102, 126, 234, 0.2);
}

.vote-sub-tab[data-tab="offSeason"].active .tab-badge {
    background: rgba(243, 156, 18, 0.2);
}

.vote-sub-tab.completed .tab-badge {
    background: #d4edda;
    color: #155724;
}

/* 비시즌 투표 버튼 스타일 */
.btn-promote {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.btn-promote:hover {
    background: #c8e6c9;
}

.btn-promote.voted {
    background: #2e7d32;
    color: white;
    border-color: #2e7d32;
}

.btn-offseason-keep {
    background: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc80;
}

.btn-offseason-keep:hover {
    background: #ffe0b2;
}

.btn-offseason-keep.voted {
    background: #e65100;
    color: white;
    border-color: #e65100;
}

/* 비시즌 일괄 버튼 */
.btn-batch-promote {
    background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
    color: white;
}

.btn-batch-promote:hover {
    background: linear-gradient(135deg, #43a047 0%, #7cb342 100%);
}

.btn-batch-offseason-keep {
    background: linear-gradient(135deg, #ff9800 0%, #ffc107 100%);
    color: white;
}

.btn-batch-offseason-keep:hover {
    background: linear-gradient(135deg, #f57c00 0%, #ffb300 100%);
}

/* ===== 신규 탭 비시즌 섹션 ===== */
.offseason-section {
    margin-top: 20px;
    padding: 15px 20px;
    border-top: 2px dashed #f39c12;
    background: #fffbf0;
}

.offseason-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.offseason-section-header h5 {
    margin: 0;
    color: #e67e22;
    font-size: 1rem;
}

.offseason-section-header .offseason-count {
    background: #f39c12;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

.offseason-menu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

.offseason-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: white;
    border-radius: 8px;
    border-left: 3px solid #f39c12;
}

.offseason-menu-item .menu-name {
    font-weight: 500;
    color: #333;
}

.offseason-menu-item .menu-url-icon {
    color: #999;
    font-size: 0.9rem;
    margin-left: 6px;
}

/* 비시즌 섹션이 비어있을 때 */
.offseason-empty {
    text-align: center;
    color: #999;
    padding: 20px;
    font-size: 0.9rem;
}

/* =============================================
   투표 시스템 스타일
   ============================================= */

/* 투표 화면 컨테이너 */
.voting-screen {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
}

/* 투표 헤더 */
.voting-header {
    text-align: center;
    color: white;
    padding: 20px 0 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.voting-header h1 {
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.voting-header-top {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-refresh {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-refresh:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(180deg);
}

.btn-refresh:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 상태 배지 */
.voting-status-badge {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.voting-status-badge.status-idle {
    background: #6c757d;
    color: white;
}

.voting-status-badge.status-preparing {
    background: #ffc107;
    color: #333;
}

.voting-status-badge.status-voting {
    background: #28a745;
    color: white;
}

.voting-status-badge.status-closed {
    background: #dc3545;
    color: white;
}

/* 탭 네비게이션 */
.voting-tabs {
    display: flex;
    background: white;
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.voting-tab {
    flex: 1;
    padding: 15px 10px;
    border: none;
    background: #f8f9fa;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

.voting-tab:hover:not(.disabled) {
    background: #e9ecef;
}

.voting-tab.active {
    background: white;
    color: #667eea;
    border-bottom-color: #667eea;
}

.voting-tab.disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* 탭 콘텐츠 컨테이너 */
.voting-content {
    background: white;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    min-height: 400px;
}

.voting-tab-content {
    display: none;
    padding: 25px;
}

.voting-tab-content.active {
    display: block;
}

/* 탭 헤더 */
.tab-header {
    margin-bottom: 20px;
}

.tab-header h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 8px;
}

.tab-description {
    color: #666;
    font-size: 0.9rem;
}

/* 탭 액션 버튼 영역 */
.tab-actions {
    margin-bottom: 20px;
}

/* 신규 식당 목록 */
.restaurant-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 400px;
    overflow-y: auto;
}

.restaurant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: background 0.2s;
}

.restaurant-item:hover {
    background: #e9ecef;
}

.restaurant-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.restaurant-name {
    font-weight: 500;
    color: #333;
}

.restaurant-name a {
    color: #667eea;
    text-decoration: none;
}

.restaurant-name a:hover {
    text-decoration: underline;
}

.restaurant-registrant {
    font-size: 0.8rem;
    color: #999;
}

.restaurant-actions {
    display: flex;
    gap: 8px;
}

.btn-edit-restaurant,
.btn-delete-restaurant {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-edit-restaurant {
    background: #667eea;
    color: white;
}

.btn-edit-restaurant:hover {
    background: #5a6fd6;
}

.btn-delete-restaurant {
    background: #dc3545;
    color: white;
}

.btn-delete-restaurant:hover {
    background: #c82333;
}

/* 빈 메시지 */
.empty-message {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-size: 0.95rem;
}

/* 일괄 버튼 영역 */
.batch-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-batch {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-batch-like {
    background: #d4edda;
    color: #155724;
}

.btn-batch-like:hover:not(:disabled) {
    background: #c3e6cb;
}

.btn-batch-dislike {
    background: #f8d7da;
    color: #721c24;
}

.btn-batch-dislike:hover:not(:disabled) {
    background: #f5c6cb;
}

.btn-batch:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 투표 아이템 목록 */
.vote-item-list {
    max-height: 350px;
    overflow-y: auto;
}

.vote-category {
    margin-top: 20px;
    margin-bottom: 10px;
}

.vote-category:first-child {
    margin-top: 0;
}

.vote-category h4 {
    font-size: 0.9rem;
    color: #666;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.vote-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 8px;
}

.vote-item-name {
    font-weight: 500;
    color: #333;
}

.vote-item-name a {
    color: #667eea;
    text-decoration: none;
}

.vote-item-name a:hover {
    text-decoration: underline;
}

/* 투표 버튼 */
.vote-buttons {
    display: flex;
    gap: 8px;
}

.btn-vote {
    width: 45px;
    height: 45px;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-vote:hover:not(:disabled) {
    transform: scale(1.1);
}

.btn-vote:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-like.selected {
    background: #d4edda;
    border-color: #28a745;
}

.btn-dislike.selected {
    background: #f8d7da;
    border-color: #dc3545;
}

/* 투표 제출 영역 */
.vote-submit-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

#voteProgress {
    color: #666;
    font-size: 0.9rem;
}

/* 현황 영역 */
.status-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

#voterCount {
    font-weight: 600;
    color: #333;
}

.voter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.voter-tag {
    padding: 5px 12px;
    background: #e9ecef;
    border-radius: 15px;
    font-size: 0.85rem;
    color: #333;
}

/* 투표 현황 목록 */
.vote-status-list {
    max-height: 300px;
    overflow-y: auto;
}

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

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

.status-item-name {
    font-weight: 500;
    color: #333;
    flex: 1;
}

.status-bar-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 2;
}

.status-bar {
    flex: 1;
    height: 20px;
    background: #f8d7da;
    border-radius: 10px;
    overflow: hidden;
}

.like-bar {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #5cb85c);
    border-radius: 10px 0 0 10px;
    transition: width 0.3s;
}

.status-counts {
    font-size: 0.8rem;
    color: #666;
    white-space: nowrap;
}

/* 관리자 컨트롤 */
.voting-admin-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* 결과 화면 */
.voting-results {
    margin-top: 20px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.voting-results h3 {
    font-size: 1.5rem;
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.results-summary {
    margin-bottom: 20px;
}

.results-info {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
}

.results-section {
    margin-bottom: 25px;
}

.results-section h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #667eea;
}

.results-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

.results-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 8px;
}

.results-list.off-season li {
    background: #fff3cd;
}

.result-name {
    font-weight: 500;
    color: #333;
}

.result-votes {
    font-size: 0.85rem;
    color: #666;
}

/* 토스트 메시지 */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 15px 30px;
    background: #333;
    color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* 투표 화면 반응형 */
@media (max-width: 600px) {
    .voting-screen {
        padding: 15px;
    }

    .voting-header h1 {
        font-size: 1.5rem;
    }

    .voting-tab {
        font-size: 0.8rem;
        padding: 12px 8px;
    }

    .voting-tab-content {
        padding: 15px;
    }

    .batch-buttons {
        flex-direction: column;
    }

    .btn-vote {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .vote-submit-area {
        flex-direction: column;
        gap: 15px;
    }

    .status-bar-container {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }
}
