/* 代理管理系统主要样式 */

/* 登入页面样式 */
.login-container {
    margin-top: 100px;
}

/* 导航栏调整 */
.navbar .nav-link {
    padding: 0.5rem 1rem;
    transition: all 0.3s;
}

.navbar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* 仪表板卡片效果 */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 表格样式优化 */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table th {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 1;
}

/* 按钮组样式 */
.btn-group .btn {
    margin: 0 2px;
}

/* 代理状态标签 */
.badge {
    padding: 6px 10px;
    border-radius: 15px;
}

/* 模态框样式 */
.modal-content {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-header {
    border-bottom: 1px solid #eee;
}

.modal-footer {
    border-top: 1px solid #eee;
}

/* 分页器样式 */
.pagination {
    margin-top: 20px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .card {
        margin-bottom: 15px;
    }
    
    .btn-group .btn {
        padding: 0.25rem 0.5rem;
    }
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 表单验证视觉提示 */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* 添加开奖球样式 */
.draw-ball {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    margin: 0 2px;
}

/* 开奖号码显示样式 - 与游戏端一致 */
.draw-number-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    margin: 0 3px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 新增开奖号码球样式 */
.number-ball {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #333;
    font-weight: bold;
    margin: 0 1px;
    border: 1px solid #ccc;
    font-size: 12px;
}

.number-ball.bg-danger {
    border-color: #dc3545;
}

.number-ball.bg-primary {
    border-color: #0d6efd;
}

/* 修改颜色与游戏端实际显示一致 */
/* 与游戏前端一致的颜色 */
.color-1 { background-color: #ffcc00; color: #000; } /* 金黄色 */
.color-2 { background-color: #3399ff; color: #fff; } /* 鲜蓝色 */
.color-3 { background-color: #777777; color: #fff; } /* 深灰色 */
.color-4 { background-color: #ff9933; color: #fff; } /* 橙色 */
.color-5 { background-color: #00ccff; color: #fff; } /* 天蓝色 */
.color-6 { background-color: #9966cc; color: #fff; } /* 紫色 */
.color-7 { background-color: #aaaaaa; color: #fff; } /* 灰色 */
.color-8 { background-color: #ff3333; color: #fff; } /* 红色 */
.color-9 { background-color: #990000; color: #fff; } /* 深红色 */
.color-10 { background-color: #33cc33; color: #fff; } /* 绿色 */
.color-0 { background-color: #33cc33; color: #fff; } /* 绿色 (0与10同色) */

/* 投注类型标签 */
.bet-type-badge {
    display: inline-block;
    padding: 0.25em 0.6em;
    font-size: 0.9em;
    font-weight: bold;
    border-radius: 0.25rem;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
}

.bet-number { background-color: #17a2b8; color: white; } /* 号码投注 */
.bet-bs { background-color: #6c757d; color: white; }     /* 大小投注 */
.bet-oe { background-color: #fd7e14; color: white; }     /* 单双投注 */
.bet-dt { background-color: #20c997; color: white; }     /* 龙虎投注 */
.bet-sum { background-color: #6f42c1; color: white; }    /* 冠亚和投注 */

/* 统计表格强调 */
.stats-card {
    transition: all 0.3s;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* 投注记录表格行样式 */
.bet-row-win {
    background-color: rgba(40, 167, 69, 0.1) !important;
}

/* 系统公告样式 */
.notice-item {
    transition: all 0.3s ease;
    background-color: #fff;
}

.notice-item:hover {
    background-color: #f8f9fa !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.notice-item .badge {
    font-size: 0.8em;
    padding: 0.4em 0.8em;
}

.notice-item h5 {
    color: #333;
    font-weight: 600;
}

.notice-item p {
    line-height: 1.6;
    color: #666;
}

/* 公告分类按钮样式 */
.btn-check:checked + .btn-outline-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-check:checked + .btn-outline-info {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
}

.btn-check:checked + .btn-outline-warning {
    background-color: #ffc107;
    border-color: #ffc107;
}

.btn-check:checked + .btn-outline-success {
    background-color: #198754;
    border-color: #198754;
}

/* 公告内容区域 */
.notice-content {
    border-left: 4px solid transparent;
    padding-left: 1rem;
}

.notice-content.category-最新公告 {
    border-left-color: #0dcaf0;
}

.notice-content.category-维修 {
    border-left-color: #ffc107;
}

.notice-content.category-活动 {
    border-left-color: #198754;
}

.bet-row-lose {
    background-color: rgba(220, 53, 69, 0.1) !important;
}

/* 移动适配 */
@media (max-width: 768px) {
    .draw-ball, .number-ball {
        width: 25px;
        height: 25px;
        font-size: 0.8em;
    }
    
    .bet-type-badge {
        font-size: 0.8em;
        padding: 0.2em 0.5em;
    }
}

/* 个人资料模态框样式 */
.profile-modal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.profile-modal .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}

.profile-modal .form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.profile-modal .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.profile-modal .card {
    border-radius: 10px;
    border: none;
    transition: transform 0.3s ease;
}

.profile-modal .card:hover {
    transform: translateY(-5px);
}

.profile-modal h6 {
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f1f3f4;
}

.profile-modal .btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
}

/* 个人资料统计卡片动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-modal .card {
    animation: fadeInUp 0.6s ease-out;
}

.profile-modal .card:nth-child(1) { animation-delay: 0.1s; }
.profile-modal .card:nth-child(2) { animation-delay: 0.2s; }
.profile-modal .card:nth-child(3) { animation-delay: 0.3s; }
.profile-modal .card:nth-child(4) { animation-delay: 0.4s; }

/* 盘口选择器禁用选项样式 */
select option:disabled {
    color: #999 !important;
    background-color: #f8f9fa !important;
    font-style: italic;
    cursor: not-allowed !important;
}

select option:disabled::before {
    content: "🚫 ";
}

/* 盘口选择器整体禁用样式 */
select:disabled {
    background-color: #e9ecef !important;
    opacity: 0.65 !important;
    cursor: not-allowed !important;
}

/* 专门针对创建代理模态框的盘口选择器 */
#createAgentModal select[v-model="newAgent.market_type"]:disabled {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
}

/* 确保限红Modal显示在最上层 */
#adjustBettingLimitModal {
    z-index: 2000 !important;
}

#adjustBettingLimitModal .modal-backdrop {
    z-index: 1999 !important;
}