/* Professional Dashboard Styles */
.professional-dashboard {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    padding: 1.5rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="50%" cy="50%" r="50%" fill="url(%23a)"/></svg>');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    padding: 3rem 0;
}

.badge-enterprise {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
}

.hero-title {
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(45deg, #feca57, #ff9ff3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    color: white;
}

.hero-stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

.dashboard-clock {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.clock-face {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.clock-time {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* At-a-Glance Strip */
.glance-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
    background: white;
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
}

.glance-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 0.75rem;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.glance-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.glance-meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.glance-label {
    font-size: 0.72rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.glance-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.bg-primary-soft { background: rgba(59, 130, 246, 0.12); }
.bg-success-soft { background: rgba(34, 197, 94, 0.12); }
.bg-warning-soft { background: rgba(245, 158, 11, 0.12); }
.bg-info-soft { background: rgba(14, 165, 233, 0.12); }
.bg-danger-soft { background: rgba(239, 68, 68, 0.12); }
.bg-purple-soft { background: rgba(111, 66, 193, 0.12); }

.clock-date {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.clock-day {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Enhanced KPI Cards */
.kpi-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.kpi-background {
    position: absolute;
    top: -20px;
    right: -20px;
    opacity: 0.05;
    font-size: 5rem;
    z-index: 1;
}

.kpi-content {
    position: relative;
    z-index: 2;
}

.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.kpi-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.kpi-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

.trend-up {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.trend-down {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.trend-stable {
    background: rgba(156, 163, 175, 0.1);
    color: #9ca3af;
}

.kpi-value {
    margin-bottom: 1rem;
}

.value-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.kpi-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1rem;
    font-weight: 500;
}

.kpi-progress {
    height: 4px;
    background: #f1f5f9;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
    transition: width 0.6s ease;
}

/* Quick Actions Hub */
.quick-actions-hub {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hub-header {
    text-align: center;
    margin-bottom: 2rem;
}

.hub-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.hub-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin: 0;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-card {
    background: #f8fafc;
    border-radius: 15px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 2px solid transparent;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
}

.action-primary:hover { border-color: #3b82f6; background: #eff6ff; }
.action-success:hover { border-color: #22c55e; background: #f0fdf4; }
.action-info:hover { border-color: #06b6d4; background: #f0fdfa; }
.action-warning:hover { border-color: #f59e0b; background: #fffbeb; }
.action-secondary:hover { border-color: #6b7280; background: #f9fafb; }
.action-purple:hover { border-color: #8b5cf6; background: #faf5ff; }

.action-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.action-primary .action-icon { background: linear-gradient(45deg, #3b82f6, #2563eb); }
.action-success .action-icon { background: linear-gradient(45deg, #22c55e, #16a34a); }
.action-info .action-icon { background: linear-gradient(45deg, #06b6d4, #0891b2); }
.action-warning .action-icon { background: linear-gradient(45deg, #f59e0b, #d97706); }
.action-secondary .action-icon { background: linear-gradient(45deg, #6b7280, #4b5563); }
.action-purple .action-icon { background: linear-gradient(45deg, #8b5cf6, #7c3aed); }

.action-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.action-desc {
    font-size: 0.875rem;
    color: #64748b;
}

/* Professional Module Sections */
.professional-module {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
}

.module-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
}

.module-subtitle {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0.25rem 0 0 0;
}

.module-badge .badge {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
}

.professional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.professional-card {
    background: #f8fafc;
    border-radius: 15px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.professional-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    background: white;
    border-color: #e2e8f0;
}

.card-background {
    position: absolute;
    top: -20px;
    right: -20px;
    opacity: 0.03;
    font-size: 4rem;
    z-index: 1;
}

.card-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    position: relative;
    z-index: 2;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.card-info {
    flex: 1;
}

.card-title {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.card-description {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.card-stats {
    font-size: 0.75rem;
    color: #059669;
    font-weight: 600;
}

.card-arrow {
    color: #9ca3af;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.professional-card:hover .card-arrow {
    color: #667eea;
    transform: translateX(3px);
}

/* Specific card color themes */
.sales-card:hover .card-icon { background: linear-gradient(45deg, #3b82f6, #2563eb); }
.inventory-card:hover .card-icon { background: linear-gradient(45deg, #f59e0b, #d97706); }
.customers-card:hover .card-icon { background: linear-gradient(45deg, #22c55e, #16a34a); }
.orders-card:hover .card-icon { background: linear-gradient(45deg, #8b5cf6, #7c3aed); }
.products-card:hover .card-icon { background: linear-gradient(45deg, #06b6d4, #0891b2); }
.suppliers-card:hover .card-icon { background: linear-gradient(45deg, #ef4444, #dc2626); }

/* Professional Sidebar Widgets */
.widget-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #1e293b;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
}

.ai-insight-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.ai-insight-item i { margin-right: 10px; font-size: 1.2rem; }

.activity-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.activity-item i { margin-right: 10px; color: #6c757d; }
.activity-details { flex: 1; }
.activity-text { display: block; }
.activity-time { color: #6c757d; font-size: 0.8rem; }

.health-metric {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.notification-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}
.notification-item i { margin-right: 10px; color: #0d6efd; }
.notification-content { flex: 1; }
.notification-content p { margin: 0 0 5px 0; }

.chart-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}
.chart-container { height: 300px; }

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-stats {
        justify-content: center;
    }

    .professional-grid {
        grid-template-columns: 1fr;
    }

    .actions-grid {
        grid-template-columns: 1fr;
    }

    .glance-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 1rem;
    }

    .module-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .professional-card {
        flex-direction: column;
        text-align: center;
    }

    .card-content {
        flex-direction: column;
        text-align: center;
    }
}

/* Animation Initialization */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* Progress Bar Animation */
.progress-bar[data-progress] {
    width: 0;
    animation: progressLoad 1.5s ease-out forwards;
}

@keyframes progressLoad {
    to {
        width: var(--progress, 0%);
    }
}

/* Additional utility classes */
.bg-purple { background-color: #6f42c1; }
.text-purple { color: #6f42c1; }

/* AOS fallback to prevent invisible content if the library fails to load */
.aos-fallback [data-aos] {
    opacity: 1 !important;
    transform: none !important;
}
