/* 管理后台主样式 */

body {
    font-family: 'Rajdhani', sans-serif;
}

/* 玻璃卡片效果 */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 统计卡片 */
.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(233, 69, 96, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 表格样式 */
.table-header {
    padding: 1rem;
    text-align: left;
    color: #9ca3af;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.table-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
    cursor: pointer;
}

.table-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.table-row.selected {
    background: rgba(233, 69, 96, 0.1);
    border-left: 3px solid #e94560;
}

.table-cell {
    padding: 1rem;
    vertical-align: middle;
}

/* 路图样式 - 水平排列 */
.road-grid {
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    gap: 2px;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 8px;
}

/* 路图样式 - 竖列排列（官网风格） */
.road-grid-vertical {
    display: grid;
    grid-template-rows: repeat(6, 1fr);
    grid-auto-columns: minmax(40px, 40px);
    grid-auto-flow: column;
    gap: 4px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
    border-radius: 8px;
    max-width: 100%;
    overflow-x: auto;
    min-height: 260px;
}

.road-cell {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    touch-action: manipulation; /* 优化移动端触摸 */
}

/* 对子标记 */
.road-cell.has-pair::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    top: -2px;
    right: -2px;
}

.road-cell.banker-pair::before {
    background: #ef4444;  /* 庄对 - 红色 */
    box-shadow: 0 0 4px #ef4444;
}

.road-cell.player-pair::before {
    background: #3b82f6;  /* 闲对 - 蓝色 */
    box-shadow: 0 0 4px #3b82f6;
}

.road-cell.both-pair::before {
    background: linear-gradient(135deg, #ef4444 50%, #3b82f6 50%);  /* 庄对红+闲对蓝 */
}

.road-cell:hover {
    transform: scale(1.2);
    z-index: 10;
}

.road-cell[data-selected="true"] {
    box-shadow: 0 0 0 3px #ffd700;
}

/* 庄 - 红色 */
.road-cell.banker {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* 幸运6 - 红底白字 */
.road-cell.lucky6 {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* 幸运7/超级7 - 蓝底白字 */
.road-cell.lucky7 {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* 闲 - 蓝色 */
.road-cell.player {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* 和 - 绿色 */
.road-cell.tie {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

/* 龙 - 红色 */
.road-cell.dragon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* 虎 - 蓝色 */
.road-cell.tiger {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

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

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

/* 通知样式 */
.notification {
    background: rgba(30, 30, 50, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    max-width: 400px;
}

.notification.success {
    border-left: 4px solid #10b981;
}

.notification.error {
    border-left: 4px solid #ef4444;
}

.notification.warning {
    border-left: 4px solid #f59e0b;
}

.notification.info {
    border-left: 4px solid #3b82f6;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* 脉冲动画 */
.pulse {
    animation: pulse 2s infinite;
}

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

/* 选择框样式 */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%239ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

select option {
    background: #16213e;
    color: white;
}

/* 监控弹窗用户信息条 */
.monitor-user-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 投注卡片 */
.bet-card {
    transition: all 0.2s ease;
}

.bet-card:hover {
    transform: translateY(-2px);
    border-color: rgba(233, 69, 96, 0.3);
}

/* 弹窗内容区滚动 */
.modal-content-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

/* 用户选择器下拉框 */
.user-selector {
    min-width: 200px;
}

