.mainar * {font-family:Tajawal}

    /* Advanced Statistics Dashboard */
    .stats-dashboard {
        background: var(--color-white);
        border-radius: var(--radius-lg);
        padding: var(--space-lg);
        box-shadow: var(--shadow-soft);
        border: 2px solid transparent;
        transition: all var(--transition-base);
    }

    .stats-dashboard:hover {
        border-color: rgba(231, 111, 81, 0.2);
        box-shadow: var(--shadow-warm);
    }

    /* Header */
    .stats-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: var(--space-lg);
        padding-bottom: var(--space-md);
        border-bottom: 2px solid rgba(30, 58, 95, 0.1);
    }

    .stats-label {
        font-size: 0.875rem;
        color: var(--color-navy);
        opacity: 0.7;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .stats-total {
        font-size: 3rem;
        font-weight: 700;
        color: var(--color-navy);
        line-height: 1;
        margin-top: var(--space-xs);
    }

    .trend-indicator {
        font-weight: 600;
        font-size: 1rem;
        text-align: right;
    }

    .trend-label {
        display: block;
        font-size: 0.75rem;
        opacity: 0.6;
        font-weight: normal;
    }

    /* Stats Row - Like contact page layout */
    .stats-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
        margin-bottom: var(--space-lg);
    }

    .stat-block {
        display: flex;
        align-items: center;
        gap: var(--space-sm);
        padding: var(--space-md);
        background: var(--color-light-bg);
        border-radius: var(--radius-md);
        transition: all var(--transition-base);
    }

    .stat-block:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-soft);
    }

    .stat-block-icon {
        width: 44px;
        height: 44px;
        border-radius: var(--radius-md);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }

    .stat-block-value {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--color-navy);
        line-height: 1.2;
    }

    .stat-block-label {
        font-size: 0.75rem;
        color: var(--color-navy);
        opacity: 0.7;
    }

    /* Metrics Grid */
    .metrics-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
        margin-bottom: var(--space-lg);
    }

    .metric-card {
        background: linear-gradient(135deg, rgba(42, 157, 143, 0.05), rgba(231, 111, 81, 0.05));
        border-radius: var(--radius-lg);
        padding: var(--space-md);
        border: 1px solid rgba(42, 157, 143, 0.1);
    }

    .metric-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: var(--space-sm);
    }

    .metric-title {
        font-size: 0.75rem;
        color: var(--color-navy);
        opacity: 0.7;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .metric-icon {
        font-size: 1rem;
    }

    .metric-value {
        font-size: 1.75rem;
        font-weight: 700;
        color: var(--color-navy);
        line-height: 1;
        margin-bottom: var(--space-sm);
    }

    .metric-footer {
        display: flex;
        align-items: center;
        gap: var(--space-xs);
        font-size: 0.75rem;
    }

    .metric-change {
        font-weight: 600;
        padding: 2px 6px;
        border-radius: var(--radius-sm);
    }

    .metric-change.positive {
        background: rgba(42, 157, 143, 0.1);
        color: var(--color-teal);
    }

    .metric-change.negative {
        background: rgba(231, 111, 81, 0.1);
        color: var(--color-orange);
    }

    .metric-label {
        color: var(--color-navy);
        opacity: 0.6;
    }

    .metric-progress {
        height: 4px;
        background: rgba(30, 58, 95, 0.1);
        border-radius: var(--radius-sm);
        margin: var(--space-sm) 0;
        overflow: hidden;
    }

    .metric-progress-bar {
        height: 100%;
        background: var(--gradient-sunrise);
        border-radius: var(--radius-sm);
    }

    /* Goal Section */
    .goal-section {
        background: var(--color-navy);
        border-radius: var(--radius-lg);
        padding: var(--space-lg);
        margin-bottom: var(--space-lg);
        position: relative;
        overflow: hidden;
    }

    .goal-section::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 100px;
        height: 100px;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        border-radius: 50%;
    }

    .goal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: var(--space-md);
    }

    .goal-title {
        color: var(--color-white);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-size: 0.875rem;
    }

    .goal-value {
        color: var(--color-gold);
        font-weight: 700;
    }

    .goal-progress {
        height: 8px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: var(--radius-sm);
        margin-bottom: var(--space-sm);
        position: relative;
        overflow: hidden;
    }

    .goal-progress-fill {
        height: 100%;
        background: var(--gradient-sunrise);
        border-radius: var(--radius-sm);
        transition: width 0.3s ease;
    }

    .goal-badge {
        position: absolute;
        top: 50%;
        right: var(--space-lg);
        transform: translateY(-50%);
        background: var(--color-teal);
        color: var(--color-white);
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 600;
        animation: pulse 2s infinite;
    }

    .goal-stats {
        display: flex;
        justify-content: space-between;
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.875rem;
    }

    /* Violations Section */
    .violations-section {
        margin-bottom: var(--space-lg);
    }

    .section-subtitle {
        color: var(--color-navy);
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: var(--space-md);
    }

    .donut-preview {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: var(--color-light-bg);
        position: relative;
        overflow: hidden;
        margin-right: var(--space-md);
        float: left;
        shape-outside: circle();
    }

    .donut-segment {
        position: absolute;
        width: 100%;
        height: 100%;
        clip: rect(0, 60px, 60px, 30px);
        transform-origin: center;
    }

    .violation-list {
        display: flex;
        flex-direction: column;
        gap: var(--space-sm);
    }

    .violation-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: var(--space-xs) 0;
        border-bottom: 1px dashed rgba(30, 58, 95, 0.1);
    }

    .violation-info {
        display: flex;
        align-items: center;
        gap: var(--space-sm);
        flex: 1;
    }

    .violation-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        flex-shrink: 0;
    }

    .violation-label {
        font-size: 0.875rem;
        color: var(--color-navy);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px;
    }

    .violation-stats {
        display: flex;
        align-items: center;
        gap: var(--space-xs);
        font-size: 0.8125rem;
    }

    .violation-count {
        font-weight: 600;
        color: var(--color-navy);
    }

    .violation-percentage {
        color: var(--color-orange);
        font-weight: 500;
    }

    /* Activity Stream */
    .activity-section {
        margin-bottom: var(--space-lg);
    }

    .activity-stream {
        display: flex;
        flex-direction: column;
        gap: var(--space-sm);
    }

    .activity-stream-item {
        display: flex;
        align-items: center;
        gap: var(--space-sm);
        padding: var(--space-sm);
        background: var(--color-light-bg);
        border-radius: var(--radius-md);
        transition: all var(--transition-base);
        border-left: 3px solid transparent;
    }

    .activity-stream-item:hover {
        border-left-color: var(--color-teal);
        transform: translateX(4px);
        background: white;
        box-shadow: var(--shadow-soft);
    }

    .activity-avatar {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--color-white);
        font-weight: 600;
        font-size: 0.875rem;
        flex-shrink: 0;
    }

    .activity-stream-content {
        flex: 1;
        min-width: 0;
    }

    .activity-stream-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2px;
    }

    .activity-stream-name {
        font-weight: 600;
        color: var(--color-navy);
        font-size: 0.875rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .activity-stream-time {
        font-size: 0.6875rem;
        color: var(--color-navy);
        opacity: 0.5;
    }

    .activity-stream-location {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 0.6875rem;
        color: var(--color-teal);
    }

    .activity-stream-badge {
        width: 20px;
        height: 20px;
        background: var(--color-teal);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--color-white);
        font-size: 0.75rem;
        flex-shrink: 0;
    }

    /* Compact Footer */
    .stats-footer-compact {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        align-items: center;
        padding-top: var(--space-md);
        border-top: 2px solid rgba(30, 58, 95, 0.1);
        text-align: center;
    }

    .footer-stat-item {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .footer-stat-value {
        font-size: 1.125rem;
        font-weight: 700;
        color: var(--color-navy);
    }

    .footer-stat-label {
        font-size: 0.625rem;
        color: var(--color-navy);
        opacity: 0.6;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .footer-stat-divider {
        width: 1px;
        height: 30px;
        background: rgba(30, 58, 95, 0.2);
        margin: 0 auto;
    }

    /* Animations */
    @keyframes pulse {
        0% { transform: translateY(-50%) scale(1); }
        50% { transform: translateY(-50%) scale(1.05); }
        100% { transform: translateY(-50%) scale(1); }
    }

    /* Responsive */
    @media (max-width: 768px) {
        .stats-row {
            grid-template-columns: 1fr;
        }
        
        .stat-block {
            width: 100%;
        }
        
        .metrics-grid {
            grid-template-columns: 1fr;
        }
        
        .stats-header {
            flex-direction: column;
            gap: var(--space-sm);
        }
        
        .trend-indicator {
            text-align: left;
        }
    }