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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    background-attachment: fixed;
    color: #eee;
    min-height: 100vh;
}

/* 背景動畫 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(155, 89, 182, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(243, 156, 18, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.screen {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hidden {
    display: none !important;
}

/* 玻璃效果基礎 */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Auth Screen */
.auth-container {
    text-align: center;
    padding: 40px;
}

.auth-container h1 {
    font-size: 3em;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 0 30px rgba(78, 205, 196, 0.8);
}

.subtitle {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
    font-size: 1.1em;
}

.auth-box {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: 380px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn::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: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-google {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-google img {
    width: 22px;
}

.btn-google:hover {
    background: white;
}

.divider {
    margin: 25px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.divider::before { left: 0; }
.divider::after { right: 0; }

.divider span {
    background: rgba(30, 30, 50, 0.8);
    padding: 0 15px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9em;
}

#email-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#email-form input {
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 1em;
    transition: all 0.3s;
}

#email-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

#email-form input:focus {
    outline: none;
    border-color: rgba(78, 205, 196, 0.5);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.5);
}

/* Captcha 驗證碼 */
.captcha-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.captcha-question {
    font-size: 1.4em;
    font-weight: bold;
    color: #4ecdc4;
    text-align: center;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

#captcha-answer {
    text-align: center;
    font-size: 1.2em;
}

/* Game Screen - Split Layout */
#game-screen {
    display: flex;
    height: 100vh;
    position: relative;
}

/* Left Sidebar */
#sidebar {
    width: 380px;
    min-width: 280px;
    max-width: 600px;
    height: 100vh;
    background: rgba(20, 20, 40, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: width 0.3s ease;
    box-shadow: 4px 0 30px rgba(0, 0, 0, 0.3);
}

#sidebar > * {
    flex-shrink: 0;
}

#sidebar.collapsed {
    width: 60px;
    min-width: 60px;
}

#sidebar.collapsed > *:not(.toggle-btn) {
    display: none;
}

#sidebar.collapsed .toggle-btn {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Resize Handle */
.resize-handle {
    position: absolute;
    right: 0;
    top: 0;
    width: 6px;
    height: 100%;
    cursor: col-resize;
    background: transparent;
    transition: background 0.2s;
    z-index: 10;
}

.resize-handle:hover {
    background: linear-gradient(180deg, 
        rgba(78, 205, 196, 0.8) 0%, 
        rgba(155, 89, 182, 0.8) 50%,
        rgba(78, 205, 196, 0.8) 100%);
}

/* Toggle Button */
.toggle-btn {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 11;
    font-size: 1em;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

#sidebar.collapsed .toggle-btn {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    height: 100%;
    border-radius: 0;
}

/* User Panel */
.user-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#user-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid rgba(78, 205, 196, 0.5);
    box-shadow: 0 0 15px rgba(78, 205, 196, 0.3);
}

#user-name {
    flex: 1;
    font-weight: 600;
    font-size: 1.05em;
}

.btn-small {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: rgba(231, 76, 60, 0.8);
    color: white;
    font-size: 0.85em;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.btn-small:hover {
    background: rgba(231, 76, 60, 1);
    transform: scale(1.05);
}

/* Info Panel */
.info-panel {
    padding: 20px;
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Multiplier Display */
.multiplier-display {
    text-align: center;
    margin-bottom: 18px;
    padding: 15px;
    background: rgba(243, 156, 18, 0.15);
    border-radius: 15px;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.multiplier-label {
    color: rgba(243, 156, 18, 0.9);
    font-size: 0.85em;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.multiplier-value {
    font-size: 2.2em;
    font-weight: 700;
    color: #f39c12;
    text-shadow: 0 0 20px rgba(243, 156, 18, 0.6);
}

.time-display, .points-display {
    text-align: center;
    margin-bottom: 15px;
}

.time-display:last-child, .points-display:last-child {
    margin-bottom: 0;
}

.time-label, .points-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85em;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.time-value {
    font-size: 2em;
    font-weight: 700;
    color: #4ecdc4;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 15px rgba(78, 205, 196, 0.5);
}

.points-value {
    font-size: 2.8em;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

.points-rate {
    color: #2ecc71;
    font-size: 1em;
    margin-top: 5px;
}

/* Boost Indicator */
.boost-indicator {
    text-align: center;
    padding: 12px;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.25) 0%, rgba(142, 68, 173, 0.25) 100%);
    border-radius: 12px;
    margin-top: 12px;
    font-weight: 600;
    color: #bb86fc;
    border: 1px solid rgba(155, 89, 182, 0.4);
}

.boost-indicator.hidden {
    display: none;
}

/* Panel Title */
.panel-title {
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.25);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.95em;
    letter-spacing: 0.5px;
}

/* Location Panel */
.location-panel {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.location-info {
    padding: 15px 18px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.1);
}

.location-info div {
    margin-bottom: 5px;
}

.location-info span {
    color: #4ecdc4;
}

/* Message Panel */
.message-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 180px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.messages-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    background: rgba(0, 0, 0, 0.1);
}

.message-item {
    padding: 12px 15px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    font-size: 0.9em;
    border-left: 3px solid #4ecdc4;
    transition: all 0.2s;
}

.message-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(3px);
}

.message-time {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75em;
    margin-top: 6px;
}

/* Leaderboard Panel */
.leaderboard-panel {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.leaderboard-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

.leaderboard-toggle:hover {
    background: rgba(0, 0, 0, 0.3);
}

.leaderboard-toggle .panel-title {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
}

.leaderboard-toggle .arrow {
    transition: transform 0.3s;
    color: rgba(255, 255, 255, 0.5);
}

.leaderboard-toggle.active .arrow {
    transform: rotate(180deg);
    color: #f39c12;
}

.leaderboard-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(0, 0, 0, 0.15);
}

.leaderboard-content.open {
    max-height: 350px;
    overflow-y: auto;
}

.leaderboard-list {
    padding: 12px;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    font-size: 0.85em;
    transition: all 0.2s;
}

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(3px);
}

.rank {
    width: 28px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
}

.rank.gold { color: #f1c40f; text-shadow: 0 0 10px rgba(241, 196, 15, 0.5); }
.rank.silver { color: #bdc3c7; text-shadow: 0 0 10px rgba(189, 195, 199, 0.5); }
.rank.bronze { color: #e67e22; text-shadow: 0 0 10px rgba(230, 126, 34, 0.5); }

.leaderboard-name {
    flex: 1;
    margin-left: 12px;
    font-weight: 500;
}

.leaderboard-points {
    color: #f39c12;
    font-weight: 600;
}

/* Event Banner - 固定在頁面頂部 */
.event-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 25px;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.95) 0%, rgba(192, 57, 43, 0.95) 100%);
    backdrop-filter: blur(15px);
    animation: pulseBanner 2s infinite;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.event-banner.active {
    display: flex;
}

#game-screen {
    padding-top: 50px;
}

.event-icon {
    font-size: 2em;
}

.event-info {
    flex: 1;
}

.event-name {
    font-weight: 700;
    font-size: 1.1em;
}

.event-desc {
    font-size: 0.85em;
    opacity: 0.9;
}

.event-timer {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1.1em;
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

@keyframes pulseBanner {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

/* Right Map Area */
#map-container {
    flex: 1;
    position: relative;
    height: 100vh;
}

#map {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

/* Custom marker */
.player-marker {
    background: #4ecdc4;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.9);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 15px rgba(78, 205, 196, 0.8); }
    50% { box-shadow: 0 0 30px rgba(78, 205, 196, 1); }
    100% { box-shadow: 0 0 15px rgba(78, 205, 196, 0.8); }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
    #game-screen {
        flex-direction: column;
        padding-top: 60px;
    }
    
    #sidebar {
        width: 100%;
        height: 45vh;
        min-width: 100%;
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    #map-container {
        height: 55vh;
    }
    
    .resize-handle {
        display: none;
    }
}

/* Admin Button */
.btn-admin {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.btn-admin:hover {
    background: linear-gradient(135deg, #a569bd 0%, #9b59b6 100%);
}

/* Admin Panel */
.admin-panel {
    position: absolute;
    top: 0;
    left: 60px;
    width: 400px;
    max-height: 100vh;
    background: rgba(20, 20, 40, 0.98);
    backdrop-filter: blur(25px);
    border-right: 1px solid rgba(155, 89, 182, 0.3);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.5);
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: rgba(155, 89, 182, 0.2);
    border-bottom: 1px solid rgba(155, 89, 182, 0.3);
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-header h3 {
    color: #bb86fc;
    font-size: 1.1em;
}

.btn-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2em;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.2s;
}

.btn-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.admin-section {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-section h4 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85em;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 搜尋區塊 */
.admin-search-group {
    display: flex;
    gap: 10px;
    width: 100%;
}

.admin-search-group input {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 0.95em;
}

.admin-search-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.admin-search-group input:focus {
    outline: none;
    border-color: rgba(155, 89, 182, 0.5);
}

.btn-search {
    flex-shrink: 0;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
}

/* 搜尋結果 */
.search-results {
    margin-top: 12px;
    max-height: 200px;
    overflow-y: auto;
}

.user-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.user-result-item:hover {
    background: rgba(155, 89, 182, 0.2);
    border-color: rgba(155, 89, 182, 0.3);
    transform: translateX(3px);
}

.user-result-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.user-result-info {
    flex: 1;
}

.user-result-name {
    font-weight: 600;
    font-size: 0.95em;
}

.user-result-points {
    font-size: 0.8em;
    color: #f39c12;
}

/* 已選擇玩家 */
.selected-player {
    margin-bottom: 15px;
}

.selected-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(155, 89, 182, 0.15);
    border-radius: 12px;
    border: 1px solid rgba(155, 89, 182, 0.3);
}

.selected-user-card img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(155, 89, 182, 0.5);
}

.selected-name {
    font-weight: 600;
    font-size: 1.1em;
}

.selected-points {
    color: #f39c12;
    font-size: 0.9em;
}

/* 動作按鈕 */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn:hover {
    background: rgba(78, 205, 196, 0.2);
    border-color: rgba(78, 205, 196, 0.4);
    transform: translateY(-3px);
}

.action-btn-danger:hover {
    background: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.4);
}

.action-icon {
    font-size: 1.5em;
}

/* 動作表單 */
.action-content {
    margin-top: 10px;
}

.action-form {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.action-form h5 {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    font-size: 0.95em;
}

.action-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 1em;
    margin-bottom: 12px;
}

.action-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.action-form input:focus {
    outline: none;
    border-color: rgba(78, 205, 196, 0.5);
}

.action-form-btns {
    display: flex;
    gap: 10px;
}

.btn-confirm {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.4);
}

.btn-confirm.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.btn-confirm.btn-danger:hover {
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.btn-cancel {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-ban:hover {
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

/* Banned List */
.banned-list {
    max-height: 200px;
    overflow-y: auto;
}

.banned-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 10px;
    margin-bottom: 8px;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.banned-info {
    flex: 1;
}

.banned-info strong {
    color: #e74c3c;
}

.banned-reason, .banned-by {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.btn-unban {
    padding: 8px 15px;
    border: none;
    border-radius: 8px;
    background: rgba(46, 204, 113, 0.8);
    color: white;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-unban:hover {
    background: rgba(46, 204, 113, 1);
}

/* Search Result */
.search-result {
    margin-top: 12px;
}

.user-info-card {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info-card div {
    margin-bottom: 8px;
    font-size: 0.9em;
}

.user-info-card div:last-child {
    margin-bottom: 0;
}

.user-info-card strong {
    color: #4ecdc4;
}

.no-result {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9em;
    padding: 10px;
    text-align: center;
}

.loading {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9em;
    padding: 10px;
    text-align: center;
}

/* Modal 彈窗 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal.hidden {
    display: none !important;
}

.glass-modal {
    background: rgba(20, 20, 40, 0.95);
    backdrop-filter: blur(25px);
    padding: 40px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.glass-modal h2 {
    color: #fff;
    font-size: 1.8em;
    margin-bottom: 10px;
}

.modal-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9em;
    margin-bottom: 25px;
}

.glass-modal input {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.glass-modal input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.glass-modal input:focus {
    outline: none;
    border-color: rgba(78, 205, 196, 0.5);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.2);
}

.nickname-error {
    color: #e74c3c;
    font-size: 0.85em;
    margin-bottom: 15px;
    min-height: 20px;
}

.glass-modal .btn {
    margin-top: 10px;
}
