/*!
 * Theme Name: Default
 * Package : DashLite
 * Author: Softnio
 * Author URI: http://themeforest.net/user/softnio
 * Version	 :	1.0.0
 * Updated	 :	07.23.2020
**/
:root {
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-warning: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-info: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    --gradient-danger: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-dark: linear-gradient(135deg, #0c0c1d 0%, #1a1a3e 100%);
    --glass-bg: rgba(255,255,255,0.85);
    --glass-border: rgba(255,255,255,0.3);
    --glass-shadow: 0 8px 32px rgba(31,38,135,0.12);
    --card-hover-transform: translateY(-4px);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.dashboard-hero {
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.dashboard-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroGlow 8s ease-in-out infinite alternate;
}
.dashboard-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: heroGlow 10s ease-in-out infinite alternate-reverse;
}
@keyframes heroGlow {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}
.dashboard-hero .hero-content {
    position: relative;
    z-index: 1;
}
.dashboard-hero h1 {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.dashboard-hero p {
    color: rgba(255,255,255,0.65);
    font-size: 0.9rem;
}
.dashboard-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
}


.dashboard-hero .hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 4px 14px;
    border-radius: 5px;
    font-size: 0.78rem;
    font-weight: 500;
    margin-right:10px
}

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
    transition: var(--transition-smooth);
}
.glass-card:hover {
    transform: var(--card-hover-transform);
    box-shadow: 0 12px 40px rgba(31,38,135,0.18);
}

/* KPI Cards */
.kpi-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: none;
}
.kpi-card:hover {
    transform: var(--card-hover-transform);
}
.kpi-card .kpi-bg-icon {
    position: absolute;
    right: -10px;
    bottom: -10px;
    font-size: 5rem;
    opacity: 0.08;
    transform: rotate(-10deg);
}
.kpi-card .kpi-inner {
    padding: 20px 24px;
    position: relative;
    z-index: 1;
}
.kpi-card .kpi-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}
.kpi-card .kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 4px 0;
    font-variant-numeric: tabular-nums;
}
.kpi-card .kpi-trend {
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.kpi-card .kpi-spark {
    margin-top: 8px;
}

/* Summary Bar */
.summary-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(148,163,184,0.15);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
}
.summary-bar .summary-item {
    flex: 1;
    min-width: 140px;
    padding: 16px 20px;
    text-align: center;
    border-right: 1px solid rgba(148,163,184,0.12);
    transition: var(--transition-smooth);
}
.summary-bar .summary-item:last-child { border-right: none; }
.summary-bar .summary-item:hover {
    background: rgba(102,126,234,0.04);
}
.summary-bar .summary-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #8890a4;
    margin-bottom: 2px;
}
.summary-bar .summary-value {
    font-size: 1.15rem;
    font-weight: 700;
}

/* Chart Containers */
.chart-card {
    border-radius: 16px;
    border: 1px solid rgba(148,163,184,0.1);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: var(--transition-smooth);
}
.chart-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}
.chart-card .chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 0;
    flex-wrap: wrap;
    gap: 8px;
}
.chart-card .chart-header h6 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}
.chart-card .chart-header p {
    font-size: 0.78rem;
    color: #8890a4;
    margin: 0;
}
.chart-card .chart-body {
    padding: 12px 20px 16px;
}

/* Fix: constrain Sales Overview and Visit charts height */
#salesChart, #visitChart {
    width: 100% !important;
    height: 290px !important;
    max-height: 300px;
    display: block;
}

/* Alert Items */
.alert-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(148,163,184,0.1);
}
.alert-item:last-child { border-bottom: none; }
.alert-item .alert-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.alert-item .alert-text { flex: 1; min-width: 0; }
.alert-item .alert-text .alert-title {
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.alert-item .alert-text .alert-desc {
    font-size: 0.72rem;
    color: #8890a4;
}
.alert-item .alert-action {
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Pulse animation */
.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
    70% { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
    100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.status-dot.online { background: #10b981; }
.status-dot.offline { background: #ef4444; }
.status-dot.warning { background: #f59e0b; }

/* Transaction Row */
.tx-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(148,163,184,0.08);
    transition: var(--transition-smooth);
}
.tx-row:hover { background: rgba(102,126,234,0.04); margin: 0 -8px; padding: 10px 8px; border-radius: 8px; }
.tx-row:last-child { border-bottom: none; }
.tx-row .tx-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.tx-row .tx-info { flex: 1; min-width: 0; }
.tx-row .tx-info .tx-name {
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tx-row .tx-info .tx-meta {
    font-size: 0.7rem;
    color: #8890a4;
}
.tx-row .tx-amount {
    font-size: 0.85rem;
    font-weight: 700;
    text-align: right;
}

/* Staff rank */
.staff-rank {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(148,163,184,0.08);
}
.staff-rank:last-child { border-bottom: none; }
.staff-rank .rank-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}
.staff-rank .staff-name {
    flex: 1;
    font-size: 0.82rem;
    font-weight: 600;
}
.staff-rank .staff-stat {
    font-size: 0.75rem;
    color: #8890a4;
}

/* Progress ring */
.progress-ring-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.progress-ring {
    position: relative;
    width: 80px;
    height: 80px;
}
.progress-ring svg {
    transform: rotate(-90deg);
}
.progress-ring .ring-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1rem;
    font-weight: 700;
}
.progress-ring .ring-label {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    color: #8890a4;
    white-space: nowrap;
}

/* Time filter buttons */
.time-filter {
    display: inline-flex;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 2px;
}
.time-filter .tf-btn {
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.time-filter .tf-btn.active {
    background: #fff;
    color: #667eea;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.time-filter .tf-btn:hover:not(.active) { color: #334155; }

/* Refresh indicator */
.refresh-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    color: #8890a4;
}
.refresh-indicator .spinner { animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Animated counter */
.count-up { display: inline-block; }

/* Fade in */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-in {
    animation: fadeInUp 0.5s ease forwards;
}

/* Custom scrollbar for sidebar */
.custom-scroll::-webkit-scrollbar { width: 4px; }
.custom-scroll::-webkit-scrollbar-track { background: transparent; }
.custom-scroll::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 4px; }
.custom-scroll::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* Data list compact */
.data-list-compact {
    max-height: 340px;
    overflow-y: auto;
}
.data-list-compact::-webkit-scrollbar { width: 3px; }
.data-list-compact::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }

/* Badge styles for KPIs */
.trend-up { color: #10b981; }
.trend-down { color: #ef4444; }
.trend-neutral { color: #f59e0b; }

/* Responsive tweaks */
@media (max-width: 768px) {
    .dashboard-hero { padding: 20px; }
    .dashboard-hero h1 { font-size: 1.3rem; }
    .kpi-card .kpi-value { font-size: 1.4rem; }
    .summary-bar .summary-item { min-width: 100px; padding: 12px 14px; }
    .summary-bar .summary-value { font-size: 1rem; }
}
@media (max-width: 576px) {
    .summary-bar .summary-item { min-width: 50%; border-right: none; border-bottom: 1px solid rgba(148,163,184,0.12); }
}

.nk-content { padding-bottom: 40px; }

.dark-mode .summary-bar{
    background: #141c26;
    border-color: #1d2d40;
}

.dark-mode .glass-card {
    background: rgb(20, 28, 38);
}

.dark-mode .analytic-ov-data , .dark-mode .analytic-au-data{
    background:#0e1521 !important;
}