@import url('style.css');

/* Stats Cards */
.stat-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s;
}

.stat-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-icon.blue {
    background: #dbeafe;
    color: #2563eb;
}

.stat-icon.green {
    background: #dcfce7;
    color: #16a34a;
}

.stat-icon.yellow {
    background: #fef3c7;
    color: #d97706;
}

.stat-icon.red {
    background: #fee2e2;
    color: #dc2626;
}

.stat-info {
    flex: 1;
}

.stat-info h6 {
    font-size: 13px;
    color: #94a3b8;
    margin: 0 0 4px;
    font-weight: 500;
}

.stat-info h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.stat-change {
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.stat-change.positive {
    color: #16a34a;
}

.stat-change.negative {
    color: #dc2626;
}

/* Mini Stats */
.mini-stat {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 16px 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.2s;
}

.mini-stat:hover {
    box-shadow: var(--shadow-hover);
}

.mini-stat i {
    font-size: 28px;
    color: var(--primary);
    width: 40px;
    text-align: center;
}

.mini-stat h6 {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
    font-weight: 500;
}

.mini-stat h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

/* Quick Actions */
.quick-actions {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 16px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    height: 100%;
}

.quick-btn {
    padding: 12px 8px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
    color: #fff;
}

.quick-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.quick-btn i {
    font-size: 16px;
}

.quick-btn.primary {
    background: var(--primary);
}

.quick-btn.info {
    background: var(--secondary);
}

.quick-btn.success {
    background: var(--success);
}

.quick-btn.warning {
    background: var(--warning);
}

.quick-btn.danger {
    background: var(--danger);
}

.quick-btn.secondary {
    background: #64748b;
}

/* Chart */
.chart-container {
    padding: 8px 0;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 200px;
    gap: 8px;
    padding: 0 4px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 4px 4px 0 0;
    position: relative;
    min-height: 12px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.chart-bar:hover {
    opacity: 0.8;
    transform: scaleY(1.02);
    transform-origin: bottom;
}

.chart-bar .bar-label {
    position: absolute;
    bottom: -24px;
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}

.chart-bar .bar-value {
    position: absolute;
    top: -20px;
    font-size: 10px;
    color: #1e293b;
    font-weight: 600;
    opacity: 0.7;
}

/* Timeline */
.timeline {
    padding: 4px 0;
}

.timeline-item {
    display: flex;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.timeline-item:hover {
    background: #f8fafc;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 4px;
    flex-shrink: 0;
}

.timeline-dot.blue {
    background: #2563eb;
}

.timeline-dot.green {
    background: #16a34a;
}

.timeline-dot.yellow {
    background: #d97706;
}

.timeline-dot.red {
    background: #dc2626;
}

.timeline-text {
    font-size: 13px;
    color: #1e293b;
    margin: 0 0 2px;
}

.timeline-time {
    font-size: 11px;
    color: #94a3b8;
}

/* Table Custom */
.table-custom {
    margin: 0;
}

.table-custom thead th {
    background: #f8fafc;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 12px 20px;
    border-bottom: 2px solid #e2e8f0;
}

.table-custom tbody td {
    padding: 12px 20px;
    font-size: 13px;
    vertical-align: middle;
}

.table-custom tbody tr:hover {
    background: #f8fafc;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

.status-badge.success {
    background: #dcfce7;
    color: #16a34a;
}

.status-badge.warning {
    background: #fef3c7;
    color: #d97706;
}

.status-badge.danger {
    background: #fee2e2;
    color: #dc2626;
}

.status-badge.info {
    background: #dbeafe;
    color: #2563eb;
}

/* Notifications */
.notification-list {
    padding: 4px 0;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}

.notification-item:hover {
    background: #f8fafc;
}

.notification-item.unread {
    background: #f0f7ff;
}

.notification-item:last-child {
    border-bottom: none;
}

.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.notif-icon.blue {
    background: #dbeafe;
    color: #2563eb;
}

.notif-icon.green {
    background: #dcfce7;
    color: #16a34a;
}

.notif-icon.yellow {
    background: #fef3c7;
    color: #d97706;
}

.notif-icon.red {
    background: #fee2e2;
    color: #dc2626;
}

.notif-text {
    font-size: 13px;
    color: #1e293b;
    margin: 0 0 2px;
}

.notif-time {
    font-size: 11px;
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
    .stat-card {
        padding: 16px;
    }
    
    .stat-info h2 {
        font-size: 22px;
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chart-bars {
        height: 150px;
        gap: 4px;
    }
    
    .chart-bar .bar-label {
        font-size: 9px;
        bottom: -20px;
    }
    
    .chart-bar .bar-value {
        font-size: 8px;
        top: -16px;
    }
}

@media (max-width: 576px) {
    .stat-card {
        padding: 14px;
        gap: 12px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .stat-info h6 {
        font-size: 11px;
    }
    
    .stat-info h2 {
        font-size: 18px;
    }
    
    .quick-actions {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
    
    .quick-btn {
        font-size: 11px;
        padding: 10px 6px;
    }
    
    .quick-btn i {
        font-size: 14px;
    }
    
    .timeline-item,
    .notification-item {
        padding: 10px 16px;
    }
}