/* 钱包相关样式 */

/* 成员选择列表 */
.member-select-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
}

.member-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.2s;
}

.member-checkbox:hover {
    background: #f0f0f0;
}

.member-checkbox input[type="checkbox"] {
    cursor: pointer;
}

/* 群红包样式 */
.message-red-packet {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
}

.message-red-packet:hover {
    transform: scale(1.05);
}

.red-packet-icon {
    font-size: 24px;
}

.red-packet-text {
    font-weight: bold;
}

.wallet-card {
    width: 100%;
    max-width: 320px;
    min-width: 0;
    padding: 16px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s;
    box-sizing: border-box;
}

.wallet-card:hover {
    transform: translateY(-2px);
}

.wallet-card.clickable {
    cursor: pointer;
}

.wallet-card-main {
    display: flex;
    gap: 12px;
    align-items: center;
}

.wallet-card-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.wallet-card-info {
    flex: 1;
}

.wallet-card-title {
    font-size: 15px;
    font-weight: 600;
}

.wallet-card-amount {
    font-size: 22px;
    font-weight: 700;
    margin-top: 4px;
}

.wallet-card-sub {
    font-size: 12px;
    margin-top: 4px;
    opacity: 0.9;
}

.wallet-card-footer {
    font-size: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 6px;
    opacity: 0.85;
}

.red-packet-card {
    background: linear-gradient(135deg, #ff8146 0%, #ff3a6a 100%);
}

.transfer-accept-btn {
    margin-top: 8px;
    padding: 6px 16px;
    background: #07c160;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.transfer-accept-btn:hover {
    background: #06ad56;
    transform: scale(1.05);
}

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

.transfer-card.pending .wallet-card-sub {
    color: #ff9500;
}

.transfer-card.completed .wallet-card-sub {
    color: #07c160;
}

.transfer-card {
    background: linear-gradient(135deg, #0bb97b 0%, #079d64 100%);
}

.transfer-card.in {
    background: linear-gradient(135deg, #1aa0ff 0%, #0d7fe0 100%);
}

.transfer-card.out {
    background: linear-gradient(135deg, #0bb97b 0%, #079d64 100%);
}

.red-packet-detail {
    text-align: center;
}

.red-packet-header {
    margin-bottom: 20px;
}

.red-packet-sender {
    font-size: 16px;
    color: #666;
    margin-bottom: 5px;
}

.red-packet-message {
    font-size: 14px;
    color: #999;
}

.red-packet-amount {
    margin: 20px 0;
}

.total-amount {
    font-size: 36px;
    font-weight: bold;
    color: #ff6b6b;
    margin-bottom: 10px;
}

.total-count {
    font-size: 14px;
    color: #999;
}

.received-amount {
    font-size: 24px;
    font-weight: bold;
    color: #07c160;
}

.red-packet-progress {
    margin: 20px 0;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: #07c160;
    transition: width 0.3s;
}

.progress-text {
    font-size: 12px;
    color: #999;
}

.red-packet-records {
    margin-top: 30px;
    text-align: left;
}

.red-packet-records h4 {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.records-list {
    max-height: 300px;
    overflow-y: auto;
}

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

.record-name {
    flex: 1;
    color: #333;
}

.record-amount {
    font-weight: bold;
    color: #ff6b6b;
    margin: 0 15px;
}

.record-time {
    font-size: 12px;
    color: #999;
}

/* 钱包相关样式 */

/* 余额信息 */
.balance-info {
    padding: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: bold;
    color: #07c160;
}

/* 表单组 */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-tip {
    margin: 15px 0;
    padding: 10px;
    background: #fffaf0;
    border: 1px solid #ffe0b2;
    border-radius: 8px;
    font-size: 12px;
    color: #b25c00;
}

/* 收款人名称 */
.receiver-name {
    padding: 10px;
    background: #f0f0f0;
    border-radius: 5px;
    font-weight: bold;
}

.wallet-actions-grid {
    margin: 20px 0 10px;
    padding: 16px;
    background: #f8f9fb;
    border-radius: 16px;
    display: flex;
    gap: 12px;
    flex-wrap: nowrap;
}

.wallet-actions-grid .wallet-action-btn {
    flex: 1;
}

@media (max-width: 600px) {
    .wallet-actions-grid {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .wallet-actions-grid .wallet-action-btn {
        flex: 1 1 calc(50% - 10px);
    }
}

.wallet-action-btn {
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.wallet-action-btn .wallet-action-icon {
    font-size: 18px;
}

.wallet-action-btn.payment {
    background: linear-gradient(135deg, #ff8f70 0%, #ff3d68 100%);
}

.wallet-action-btn.receive {
    background: linear-gradient(135deg, #07c160 0%, #06a250 100%);
}

.wallet-action-btn.recharge {
    background: linear-gradient(135deg, #4d7cff 0%, #2154ff 100%);
}

.wallet-action-btn.withdraw {
    background: linear-gradient(135deg, #ffaa4e 0%, #ff7b64 100%);
}

.wallet-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
}

.wallet-action-btn:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

/* 管理员后台 */
.admin-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.admin-panel-content {
    background: #ffffff;
    width: 92%;
    max-width: 1100px;
    max-height: 92vh;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: adminPanelIn 0.25s ease;
}

@keyframes adminPanelIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-header {
    padding: 20px;
    background: linear-gradient(135deg, #1f2933 0%, #2f4858 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.admin-header-text h2 {
    margin: 0;
    font-size: 24px;
}

.admin-header-text p {
    margin: 5px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

.admin-header h2 {
    margin: 0;
}

.admin-close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-tabs {
    display: flex;
    background: #f0f0f0;
    border-bottom: 1px solid #ddd;
}

.admin-tab {
    flex: 1;
    padding: 15px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    color: #666;
    font-weight: 500;
}

.admin-tab:hover {
    background: #e0e0e0;
}

.admin-tab.active {
    background: white;
    border-bottom-color: #07c160;
    color: #07c160;
    font-weight: bold;
}

.admin-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f9f9f9;
}

.admin-tab-content h3 {
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 20px;
    color: #1f2933;
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.admin-section-header p {
    margin: 4px 0 0;
    color: #6b7280;
    font-size: 13px;
}

.admin-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #d1d5db;
    background: white;
    color: #4b5563;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: #07c160;
    color: #07c160;
}

.filter-btn.active {
    background: #07c160;
    border-color: #07c160;
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(7, 193, 96, 0.25);
}

/* 申请列表项 */
.admin-request-item {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background: white;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.request-info {
    flex: 1;
}

.request-user {
    font-weight: bold;
    margin-bottom: 5px;
}

.request-amount {
    font-size: 18px;
    color: #07c160;
    font-weight: bold;
    margin: 10px 0;
}

.request-status {
    padding: 5px 10px;
    border-radius: 3px;
    display: inline-block;
    font-size: 12px;
    margin: 5px 0;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

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

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

.request-time {
    font-size: 12px;
    color: #999;
    margin: 5px 0;
}

.request-note {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

.request-actions {
    display: flex;
    gap: 10px;
}

.btn-approve,
.btn-reject {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.btn-approve {
    background: #07c160;
    color: white;
}

.btn-approve:hover {
    background: #06ad56;
}

.btn-reject {
    background: #ff4444;
    color: white;
}

.btn-reject:hover {
    background: #cc0000;
}

/* 统计信息 */
.statistics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-item {
    padding: 20px;
    background: white;
    border-radius: 14px;
    text-align: left;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.stat-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(7, 193, 96, 0.15), rgba(7, 193, 96, 0));
    opacity: 0;
    transition: opacity 0.2s;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.12);
}

.stat-item:hover::after,
.stat-item.active::after {
    opacity: 1;
}

.stat-item.active {
    border-color: #07c160;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(7, 193, 96, 0.1) 0%, rgba(7, 193, 96, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #07c160;
    margin-bottom: 14px;
    transition: all 0.2s;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.stat-item:hover .stat-icon {
    background: linear-gradient(135deg, rgba(7, 193, 96, 0.2) 0%, rgba(7, 193, 96, 0.1) 100%);
    transform: scale(1.05);
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #07c160;
}

.statistics-detail-panel {
    margin-top: 24px;
    background: white;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.statistics-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid #f1f5f9;
}

.statistics-detail-header h4 {
    margin: 0;
    font-size: 18px;
    color: #111827;
}

.statistics-detail-header p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #6b7280;
}

.stat-detail-close {
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s;
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.stat-detail-close:hover {
    color: #111827;
    background: #f3f4f6;
}

.statistics-detail-body {
    max-height: 360px;
    overflow-y: auto;
    position: relative;
}

/* 管理员明细筛选 */
.admin-detail-filters {
    padding: 16px 22px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-search-wrapper {
    position: relative;
    width: 100%;
}

.admin-detail-search {
    width: 100%;
    padding: 10px 36px 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    background: white;
    transition: all 0.2s;
    box-sizing: border-box;
}

.admin-detail-search:focus {
    outline: none;
    border-color: #07c160;
    box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.1);
}

.admin-search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #999;
    opacity: 0.6;
    pointer-events: none;
    transition: all 0.2s;
}

.admin-detail-search:focus + .admin-search-icon {
    opacity: 0.8;
    color: #07c160;
}

.admin-time-filter-wrapper {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-time-filter-btn {
    padding: 6px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    background: white;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-weight: 400;
}

.admin-time-filter-btn:hover {
    background: #f0f0f0;
    border-color: #07c160;
    color: #07c160;
}

.admin-time-filter-btn.active {
    background: #07c160;
    border-color: #07c160;
    color: white;
    font-weight: 500;
}

/* 自定义日期选择器 */
.admin-custom-date-picker {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    flex-wrap: wrap;
}

.admin-date-input {
    padding: 6px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    background: white;
    color: #333;
}

.admin-date-input:focus {
    outline: none;
    border-color: #07c160;
}

.admin-date-confirm-btn {
    padding: 6px 16px;
    background: #07c160;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-date-confirm-btn:hover {
    background: #06ad56;
}

.load-more-hint {
    text-align: center;
    padding: 16px;
    color: #999;
    font-size: 13px;
}

.stat-detail-table {
    width: 100%;
    border-collapse: collapse;
}

.stat-detail-table thead {
    background: #f9fafb;
    position: sticky;
    top: 0;
    z-index: 1;
}

.stat-detail-table th,
.stat-detail-table td {
    padding: 12px 18px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    color: #374151;
}

.stat-detail-table th {
    font-weight: 600;
    color: #1f2937;
}

.stat-detail-empty {
    padding: 30px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

/* 管理员按钮 */
.admin-btn {
    margin-top: 10px;
    padding: 8px 16px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    width: 100%;
}

.admin-btn:hover {
    background: #cc0000;
}

/* ==================== 交易记录样式 ==================== */

.transaction-modal-content {
    max-width: 500px;
    width: 90%;
    max-height: 85vh;
}

.transaction-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #f7f7f7;
}

.transaction-balance-header {
    background: linear-gradient(135deg, #07c160 0%, #06ad56 100%);
    color: white;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(7, 193, 96, 0.2);
}

.balance-label {
    font-size: 13px;
    color: white;
    opacity: 1;
    margin-bottom: 10px;
    font-weight: 400;
}

.balance-amount {
    font-size: 36px;
    font-weight: bold;
    letter-spacing: -0.5px;
    color: white;
}

/* 收支统计 */
.transaction-stats {
    display: flex;
    background: white;
    margin: 0;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e5e5;
    gap: 12px;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 12px;
    background: #f8f8f8;
    transition: all 0.2s;
    cursor: default;
}

.stat-item.clickable {
    cursor: pointer;
    position: relative;
}

.stat-item.clickable:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-item.clickable.active {
    background: linear-gradient(135deg, rgba(7, 193, 96, 0.1) 0%, rgba(7, 193, 96, 0.05) 100%);
    border: 1px solid rgba(7, 193, 96, 0.3);
}

.stat-item.income-stat.clickable.active {
    background: linear-gradient(135deg, rgba(7, 193, 96, 0.15) 0%, rgba(7, 193, 96, 0.08) 100%);
}

.stat-item.outcome-stat.clickable.active {
    background: linear-gradient(135deg, rgba(51, 51, 51, 0.1) 0%, rgba(51, 51, 51, 0.05) 100%);
    border-color: rgba(51, 51, 51, 0.2);
}

.stat-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
    font-weight: 400;
}

.stat-value {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 4px;
}

.stat-value.income {
    color: #06a050;
}

.stat-value.outcome {
    color: #666;
}

.stat-hint {
    font-size: 10px;
    color: #999;
    opacity: 0;
    transition: opacity 0.2s;
    margin-top: 4px;
}

.stat-item.clickable:hover .stat-hint {
    opacity: 0.7;
}

.stat-item.clickable.active .stat-hint {
    opacity: 1;
    color: #07c160;
    font-weight: 500;
}

/* 搜索和时间筛选 */
.transaction-filters {
    background: white;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e5e5;
}

.search-box-wrapper {
    position: relative;
    margin-bottom: 12px;
}

.transaction-search {
    width: 100%;
    padding: 10px 36px 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    background: #f5f5f5;
    transition: all 0.2s;
    box-sizing: border-box;
}

.transaction-search:focus {
    outline: none;
    background: white;
    border-color: #07c160;
    box-shadow: 0 0 0 2px rgba(7, 193, 96, 0.1);
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #999;
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.2s;
}

.transaction-search:focus + .search-icon {
    opacity: 0.8;
    color: #07c160;
}

.time-filter-wrapper {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.time-filter-btn {
    padding: 6px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    background: #f5f5f5;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-weight: 400;
}

.time-filter-btn:hover {
    background: #eeeeee;
    border-color: #07c160;
    color: #07c160;
}

.time-filter-btn.active {
    background: #07c160;
    border-color: #07c160;
    color: white;
    font-weight: 500;
}

.custom-time-btn {
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-time-btn svg {
    width: 14px;
    height: 14px;
}

/* 自定义时间选择器 */
.custom-time-picker {
    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: 10000;
    backdrop-filter: blur(4px);
}

.custom-time-content {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

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

.custom-time-header {
    padding: 18px 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f8f8;
}

.custom-time-header span {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.custom-time-header button {
    background: transparent;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.custom-time-header button:hover {
    background: #f0f0f0;
    color: #333;
}

.custom-time-body {
    padding: 20px;
}

.date-input-group {
    margin-bottom: 16px;
}

.date-input-group label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 500;
}

.date-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    box-sizing: border-box;
}

.date-input:focus {
    outline: none;
    border-color: #07c160;
    box-shadow: 0 0 0 3px rgba(7, 193, 96, 0.1);
}

.custom-time-footer {
    padding: 16px 20px;
    border-top: 1px solid #e5e5e5;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: #f8f8f8;
}

.custom-time-footer button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.custom-time-footer .btn-secondary {
    background: #f0f0f0;
    color: #666;
}

.custom-time-footer .btn-secondary:hover {
    background: #e0e0e0;
}

.custom-time-footer .btn-primary {
    background: #07c160;
    color: white;
}

.custom-time-footer .btn-primary:hover {
    background: #06ad56;
}

/* ==================== 用户管理样式 ==================== */

.admin-user-filters {
    display: flex;
    gap: 12px;
    align-items: center;
}

.admin-user-search-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
}

.admin-user-search-input:focus {
    outline: none;
    border-color: #07c160;
}

.admin-user-status-select {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.admin-user-status-select:focus {
    outline: none;
    border-color: #07c160;
}

.admin-users-list {
    margin-top: 16px;
}

.admin-user-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.admin-user-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.admin-user-item.user-inactive {
    opacity: 0.6;
    background: #f9f9f9;
}

.admin-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.admin-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.admin-user-name {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.admin-user-nickname {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.admin-user-username {
    font-size: 13px;
    color: #999;
}

.admin-user-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.admin-user-badge.admin {
    background: #07c160;
    color: white;
}

.admin-user-badge.inactive {
    background: #f56c6c;
    color: white;
}

.admin-user-stats {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #666;
}

.admin-user-stats .frozen {
    color: #f56c6c;
}

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

.admin-user-action-btn {
    padding: 6px 14px;
    border: 1px solid #07c160;
    background: white;
    color: #07c160;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}


.admin-user-action-btn.danger {
    border-color: #f56c6c;
    color: #f56c6c;
}

.admin-user-action-btn.danger:hover {
    background: #f56c6c;
    color: white;
}

.admin-user-action-btn.success {
    border-color: #67c23a;
    color: #67c23a;
}

.admin-user-action-btn.success:hover {
    background: #67c23a;
    color: white;
}

.admin-user-action-btn.warning {
    border-color: #faad14;
    color: #faad14;
}

.admin-user-action-btn.warning:hover {
    background: #faad14;
    color: white;
}
/* 分页样式 */
.admin-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 16px;
    background: white;
    border-radius: 8px;
}

.pagination-info {
    font-size: 14px;
    color: #666;
}

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

.pagination-btn {
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    background: white;
    color: #333;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-btn:hover {
    border-color: #07c160;
    color: #07c160;
}

.pagination-btn.active {
    background: #07c160;
    border-color: #07c160;
    color: white;
}

.pagination-ellipsis {
    padding: 6px 8px;
    color: #999;
}

/* 用户详情模态框 */
.user-detail-modal-content {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.user-detail-content {
    padding: 20px;
}

.user-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 20px;
}

.user-detail-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.user-detail-info h4 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: #333;
}

.user-detail-info p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #999;
}

.user-detail-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
}

.user-detail-badge.admin {
    background: #07c160;
    color: white;
}

.user-detail-badge.active {
    background: #67c23a;
    color: white;
}

.user-detail-badge.inactive {
    background: #f56c6c;
    color: white;
}

.user-detail-section {
    margin-bottom: 24px;
}

.user-detail-section h5 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #333;
}

.user-detail-balance {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.balance-item {
    padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
    text-align: center;
}

.balance-label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.balance-value {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

/* 总余额：标签和金额都是深色 */
.balance-item.total-balance .balance-label,
.balance-item:first-child .balance-label {
    color: #333;
}

.balance-item.total-balance .balance-value,
.balance-item:first-child .balance-value {
    color: #333;
}

/* 冻结余额：标签和金额都是红色 */
.balance-item.frozen-balance .balance-label,
.balance-item:nth-child(2) .balance-label {
    color: #f56c6c;
}

.balance-item.frozen-balance .balance-value,
.balance-value.frozen {
    color: #f56c6c;
}

/* 可用余额：标签和金额都是绿色 */
.balance-item.available-balance .balance-label,
.balance-item:nth-child(3) .balance-label {
    color: #07c160;
}

.balance-item.available-balance .balance-value,
.balance-value.available {
    color: #07c160;
}

.user-detail-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.user-action-btn {
    padding: 10px 16px;
    border: 1px solid #07c160;
    background: white;
    color: #07c160;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.user-action-btn:hover {
    background: #07c160;
    color: white;
}

.user-action-btn.danger {
    border-color: #f56c6c;
    color: #f56c6c;
}

.user-action-btn.danger:hover {
    background: #f56c6c;
    color: white;
}

.user-action-btn.success {
    border-color: #67c23a;
    color: #67c23a;
}

.user-action-btn.success:hover {
    background: #67c23a;
    color: white;
}

.user-action-btn.warning {
    border-color: #faad14;
    color: #faad14;
}

.user-action-btn.warning:hover {
    background: #faad14;
    color: white;
}
.user-operation-logs {
    max-height: 300px;
    overflow-y: auto;
}

.admin-dialog-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1300000; /* 提升到最高层，确保在所有模态框之上 */
}

.admin-dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
}

.admin-dialog-content {
    position: relative;
    background: #fff;
    border-radius: 14px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: adminDialogIn 0.25s ease;
    display: flex;
    flex-direction: column;
}

@keyframes adminDialogIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.admin-dialog-header {
    padding: 18px 22px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-dialog-header h3 {
    margin: 0;
    font-size: 18px;
    color: #111;
}

.admin-dialog-close {
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    color: #999;
    width: 32px;
    height: 32px;
}

.admin-dialog-body {
    padding: 20px 22px 10px;
}

.admin-dialog-input {
    width: 100%;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    padding: 12px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
}

.admin-dialog-input:focus {
    outline: none;
    border-color: #07c160;
    box-shadow: 0 0 0 2px rgba(7, 193, 96, 0.15);
}

.admin-dialog-error {
    margin-top: 8px;
    font-size: 13px;
    color: #ff4d4f;
}

.admin-dialog-footer {
    padding: 16px 22px 22px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #f0f0f0;
}

.admin-dialog-btn {
    padding: 8px 18px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.admin-dialog-btn.secondary {
    background: #f5f5f5;
    color: #555;
}

.admin-dialog-btn.secondary:hover {
    background: #e9e9e9;
}

.admin-dialog-btn.primary {
    background: #07c160;
    color: #fff;
    min-width: 80px;
}

.admin-dialog-btn.primary:hover {
    background: #06ad56;
}

.operation-log-item {
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    margin-bottom: 8px;
}

.log-type {
    font-size: 13px;
    font-weight: 500;
    color: #07c160;
    margin-bottom: 4px;
}

.log-detail {
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
}

.log-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

.empty-logs {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* 系统设置样式 */
.admin-settings-list {
    margin-top: 16px;
}

.admin-setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 12px;
}

.admin-setting-info h4 {
    margin: 0 0 6px 0;
    font-size: 16px;
    color: #333;
}

.admin-setting-info p {
    margin: 0;
    font-size: 13px;
    color: #999;
}

/* 开关样式 */
.admin-setting-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.admin-setting-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.admin-setting-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 28px;
}

.admin-setting-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.admin-setting-switch input:checked + .admin-setting-slider {
    background-color: #07c160;
}

.admin-setting-switch input:checked + .admin-setting-slider:before {
    transform: translateX(22px);
}

/* 输入框和按钮样式 */
.admin-setting-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 300px;
}

/* 图标上传组样式 */
.admin-setting-favicon-group {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    min-width: 400px;
}

.admin-setting-favicon-preview {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
}

.admin-setting-favicon-upload {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-setting-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background: white;
    transition: border-color 0.2s;
}

.admin-setting-input:focus {
    outline: none;
    border-color: #07c160;
}

.admin-setting-btn {
    padding: 8px 16px;
    background: #07c160;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.admin-setting-btn:hover {
    background: #06ad56;
}

.admin-setting-btn:active {
    background: #059648;
}

.admin-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 14px;
}

/* 分类标签（固定顶部） */
.transaction-tabs-wrapper {
    position: sticky;
    top: 0;
    z-index: 10;
    background: white;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.transaction-tabs {
    display: flex;
    background: white;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.transaction-tab {
    flex: 1;
    padding: 14px 12px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    transition: all 0.2s;
    font-weight: 500;
    min-width: 60px;
}

.transaction-tab:hover {
    background: #f5f5f5;
    color: #07c160;
}

.transaction-tab.active {
    background: white;
    border-bottom-color: #07c160;
    color: #07c160;
    font-weight: 600;
}

.transaction-list {
    flex: 1;
    overflow-y: auto;
    background: #f7f7f7;
    min-height: 200px;
}

/* 日期分组标题 */
.transaction-date-header {
    padding: 12px 20px;
    background: #f0f0f0;
    font-size: 13px;
    color: #666;
    font-weight: 500;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 5;
}

.transaction-item {
    display: flex;
    gap: 14px;
    padding: 14px 20px;
    background: white;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
    cursor: pointer;
    margin: 0;
}

.transaction-item:hover {
    background: #f9f9f9;
}

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

.transaction-item-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f5f5f5 0%, #eeeeee 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.transaction-item-content {
    flex: 1;
    min-width: 0;
}

.transaction-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.transaction-item-type {
    font-size: 15px;
    font-weight: 500;
    color: #555;
}

.transaction-item-amount {
    font-size: 16px;
    font-weight: bold;
}

.transaction-item-amount.income {
    color: #06a050;
    font-weight: 600;
}

.transaction-item-amount.outcome {
    color: #666;
    font-weight: 600;
}

.transaction-item-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
    font-size: 13px;
}

.transaction-item-counterpart {
    color: #888;
}

.transaction-item-status {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.transaction-item-status.status-completed {
    background: #e8f5e9;
    color: #4a7c4e;
}

.transaction-item-status.status-pending {
    background: #fff3e0;
    color: #b8860b;
}

.transaction-item-status.status-rejected {
    background: #ffebee;
    color: #a52a2a;
}

.transaction-item-footer {
    font-size: 12px;
    color: #aaa;
}

.transaction-empty,
.transaction-error {
    padding: 60px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.transaction-error {
    color: #ff4444;
}

.loading-spinner {
    padding: 40px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.load-more-hint {
    padding: 16px;
    text-align: center;
    color: #999;
    font-size: 12px;
    background: #f5f5f5;
    border-top: 1px solid #e5e5e5;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .admin-panel-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .admin-tabs {
        flex-direction: column;
    }
    
    .admin-tab {
        border-bottom: 1px solid #ddd;
        border-left: 3px solid transparent;
    }
    
    .admin-tab.active {
        border-left-color: #07c160;
        border-bottom-color: #ddd;
    }
    
    .admin-request-item {
        flex-direction: column;
    }
    
    .request-actions {
        margin-top: 15px;
        width: 100%;
    }
    
    .btn-approve,
    .btn-reject {
        flex: 1;
    }
    
    .statistics-grid {
        grid-template-columns: 1fr;
    }
}

/* 数据清理相关样式 */
.admin-data-cleanup-form {
    padding: 20px;
}

/* 管理员聊天记录模态框 */
.admin-chatlog-modal {
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    background: #111;
}

.admin-chatlog-body {
    padding: 0;
}

.admin-chatlog-layout {
    display: flex;
    height: 70vh;
}

.admin-chatlog-sidebar {
    width: 260px;
    border-right: 1px solid #222;
    background: #141414;
    display: flex;
    flex-direction: column;
}

.admin-chatlog-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #111;
}

.admin-chatlog-tabs {
    display: flex;
    border-bottom: 1px solid #222;
}

.admin-chatlog-tab {
    flex: 1;
    padding: 8px 0;
    background: transparent;
    border: none;
    color: #888;
    font-size: 13px;
    cursor: pointer;
}

.admin-chatlog-tab.active {
    color: #fff;
    border-bottom: 2px solid #1890ff;
}

.admin-chatlog-conv-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.admin-chatlog-conv-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.admin-chatlog-conv-item:hover {
    background: #1f1f1f;
}

.admin-chatlog-conv-item.active {
    background: #262626;
}

.admin-chatlog-conv-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: #222;
    flex-shrink: 0;
    margin-right: 8px;
}

.admin-chatlog-conv-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-chatlog-conv-info {
    flex: 1;
    min-width: 0;
}

.admin-chatlog-conv-name {
    font-size: 14px;
    color: #eee;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-chatlog-conv-last {
    font-size: 12px;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-chatlog-conv-time {
    font-size: 11px;
    color: #666;
    margin-left: 6px;
}

.admin-chatlog-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 14px;
}

.admin-chatlog-list {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #111;
}

.admin-chatlog-item {
    display: flex;
    margin-bottom: 12px;
}

.admin-chatlog-item.self {
    justify-content: flex-end;
}

.admin-chatlog-item.group {
    justify-content: flex-start;
}

.admin-chatlog-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 8px;
    flex-shrink: 0;
    background: #222;
}

.admin-chatlog-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-chatlog-bubble {
    max-width: 72%;
    background: #1d1d1d;
    color: #eee;
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    line-height: 1.5;
}

.admin-chatlog-item.self .admin-chatlog-bubble {
    background: #95ec69;
    color: #333;
}

.admin-chatlog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
}

.admin-chatlog-scope {
    background: #333;
    color: #ccc;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 12px;
}

.admin-chatlog-item.self .admin-chatlog-scope {
    background: rgba(0,0,0,0.08);
    color: #222;
}

.admin-chatlog-content {
    font-size: 14px;
    white-space: pre-wrap;
    word-break: break-word;
}

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

.admin-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.admin-form-group input[type="date"],
.admin-form-group input[type="text"],
.admin-form-group input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

.admin-form-group input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.admin-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.admin-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.admin-btn.primary {
    background: linear-gradient(135deg, #ff4d4f 0%, #ff7875 100%);
    color: white;
}

.admin-btn.primary:hover {
    background: linear-gradient(135deg, #ff7875 0%, #ff4d4f 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 77, 79, 0.3);
}

.admin-btn.secondary {
    background: #f0f0f0;
    color: #333;
}

.admin-btn.secondary:hover {
    background: #e0e0e0;
}

.admin-stats-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.admin-stats-card h4 {
    margin: 0 0 16px;
    color: #333;
    font-size: 16px;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.admin-stat-item {
    background: white;
    padding: 16px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    text-align: center;
}

.admin-stat-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.admin-stat-value {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.admin-success-card {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    border-radius: 8px;
    padding: 20px;
}

.admin-success-card h4 {
    margin: 0 0 16px;
    color: #52c41a;
    font-size: 16px;
}

.admin-error {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    border-radius: 6px;
    padding: 12px;
    color: #ff4d4f;
    font-size: 14px;
}

.admin-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

