﻿html,
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, 'Microsoft YaHei', sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    background: #0f172a;
    color: #e2e8f0;
}

/* 閫氱敤鏍峰紡 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.page-header .text-muted {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.page-actions {
    display: flex;
    gap: 0.5rem;
}

.filter-section {
    background: #1e293b;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #334155;
}

.content-card {
    background: #1e293b;
    border-radius: 8px;
    padding: 1.5rem;
    border: 1px solid #334155;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.content-card h5 {
    color: #e2e8f0;
    font-weight: 600;
    margin-bottom: 1rem;
}

.form-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #334155;
}

.pagination-wrapper {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #334155;
}

/* 琛ㄦ牸鏍峰紡 */
.table {
    margin-bottom: 0;
    color: #e2e8f0;
}

.table thead th {
    background: #0f172a;
    font-weight: 600;
    color: #cbd5e1;
    border-bottom: 2px solid #334155;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem;
}

.table tbody tr {
    border-bottom: 1px solid #334155;
}

.table tbody tr:hover {
    background: #0f172a;
}

.table tbody td {
    padding: 1rem;
    color: #e2e8f0;
}

/* 鎸夐挳鏍峰紡 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s;
    border: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #9333ea 100%);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
    transform: translateY(-1px);
}

.btn-outline-primary {
    background: transparent;
    color: #a78bfa;
    border: 1px solid #a78bfa;
}

.btn-outline-primary:hover {
    background: #a78bfa;
    color: #fff;
}

.btn-outline-secondary {
    background: transparent;
    color: #94a3b8;
    border: 1px solid #475569;
}

.btn-outline-secondary:hover {
    background: #334155;
    color: #fff;
    border-color: #475569;
}

.btn-link {
    background: transparent;
    color: #a78bfa;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
}

.btn-link:hover {
    color: #c4b5fd;
    text-decoration: underline;
}

.btn i {
    font-size: 1rem;
}

/* 琛ㄥ崟鏍峰紡 */
.form-control {
    background: #0f172a;
    border: 1px solid #334155;
    color: #e2e8f0;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
}

/* form-select 浣跨敤 background-color 浠ヤ繚鐣?Bootstrap 鐨勪笅鎷夌澶?*/
.form-select {
    background-color: #0f172a;
    border: 1px solid #334155;
    color: #e2e8f0;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
}

.form-control:focus,
.form-select:focus {
    background-color: #0f172a;
    border-color: #a78bfa;
    color: #e2e8f0;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
    outline: none;
}

.form-label {
    color: #cbd5e1;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control::placeholder {
    color: #64748b;
}

/* 寰界珷鏍峰紡 */
.badge {
    padding: 0.375rem 0.75rem;
    font-weight: 500;
    border-radius: 4px;
    font-size: 0.75rem;
}

.bg-primary {
    background: #7c3aed !important;
    color: #fff;
}

.bg-success {
    background: #10b981 !important;
    color: #fff;
}

.bg-info {
    background: #3b82f6 !important;
    color: #fff;
}

.bg-warning {
    background: #f59e0b !important;
    color: #fff;
}

/* 瀵艰埅鏍囩椤?*/
.nav-tabs {
    border-bottom: 1px solid #334155;
}

.nav-tabs .nav-link {
    color: #94a3b8;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 0.75rem 1rem;
    background: transparent;
}

.nav-tabs .nav-link:hover {
    color: #cbd5e1;
    border-bottom-color: #475569;
}

.nav-tabs .nav-link.active {
    color: #a78bfa;
    border-bottom-color: #a78bfa;
    background: transparent;
}

.tab-content {
    color: #e2e8f0;
}

/* 鏂囨湰棰滆壊 */
.text-muted {
    color: #94a3b8 !important;
}

.text-center {
    text-align: center;
}

/* 鍝嶅簲寮?*/
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        gap: 1rem;
    }

    .page-actions {
        width: 100%;
    }

    .page-actions .btn {
        flex: 1;
    }
}

/* 婊氬姩鏉℃牱寮?*/
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* 闂ㄥ簵鍗＄墖鏍峰紡 */
.store-card {
    background: #1e293b;
    border-radius: 8px;
    border: 1px solid #334155;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.store-card:hover {
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
    border-color: #475569;
    transform: translateY(-2px);
}

.store-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #334155;
}

.store-card-header h5 {
    margin: 0;
    color: #e2e8f0;
    font-weight: 600;
    font-size: 1.125rem;
}

.store-card-body {
    padding: 1.25rem;
    flex-grow: 1;
    color: #cbd5e1;
    font-size: 0.875rem;
}

.store-card-body p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.store-card-body i {
    color: #94a3b8;
    width: 16px;
}

.store-card-actions {
    padding: 1rem 1.25rem;
    border-top: 1px solid #334155;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.store-card-actions .btn {
    flex: 0 0 auto;
    min-width: 70px;
    font-size: 0.8125rem;
    padding: 0.5rem 0.75rem;
    text-align: center;
}

/* 鍦ㄧ嚎鐢ㄦ埛鍖哄煙鏍峰紡 */
.online-users-section {
    border-top-color: #334155 !important;
}

.online-users-section .border-top {
    border-top: 1px solid #334155 !important;
}

/* 鍦ㄧ嚎鐢ㄦ埛鎿嶄綔鎸夐挳鏍峰紡 */
.online-user-action-btn {
    min-width: auto;
    padding: 0.375rem 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    white-space: nowrap;
    text-align: center;
}

.online-user-action-btn i {
    font-size: 0.875rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
}

.online-user-action-btn span {
    font-size: 0.875rem;
    line-height: 1;
    text-align: center;
    display: inline-block;
}

.online-users-list {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.online-users-list::-webkit-scrollbar {
    width: 4px;
}

.online-users-list::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 2px;
}

.online-user-item {
    background: #0f172a;
    border: 1px solid #334155 !important;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.online-user-item:hover {
    background: #1e293b;
    border-color: #475569 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.online-user-item .btn {
    flex-shrink: 0;
}

/* 鍦ㄧ嚎鐢ㄦ埛澶村儚鍗犱綅绗?*/
.online-user-item .rounded-circle[style*="background"] {
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%) !important;
    color: #fff !important;
    font-weight: 600;
}

/* 鍝嶅簲寮忚皟鏁?*/
@media (max-width: 992px) {
    .store-card-actions .btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* 鍏ㄥ眬绉诲姩绔€傞厤澧炲己 */
@media (max-width: 768px) {

    /* 闃叉iOS杈撳叆妗嗚嚜鍔ㄧ缉鏀?*/
    input[type="text"],
    input[type="number"],
    input[type="email"],
    input[type="password"],
    input[type="date"],
    input[type="datetime-local"],
    textarea,
    select {
        font-size: 16px !important;
    }

    /* 浼樺寲婊氬姩浣撻獙 */
    .content-area {
        padding: 1rem !important;
        /* 瑕嗙洊AdminLayout榛樿鍐呰竟璺?*/
    }

    /* 妯℃€佹鍏ㄥ */
    .modal-dialog {
        margin: 0.5rem;
        max-width: none !important;
    }

    .modal-content {
        border-radius: 12px;
    }

    /* 璋冩暣鏍囬澶у皬 */
    h1,
    .h1 {
        font-size: 1.5rem;
    }

    h2,
    .h2 {
        font-size: 1.25rem;
