/* Analytics Platform Details Page Styles - Grafana-inspired styling, inherits from erp.css */

:root {
    /* Grafana-inspired color palette */
    --grafana-primary: #FF6E2D;       /* Main Grafana orange */
    --grafana-primary-dark: #EB4323;  /* Dark orange */
    --grafana-primary-light: #FF8E5C; /* Light orange */
    --grafana-secondary: #3D71D9;     /* Grafana blue */
    --grafana-dark: #141619;          /* Dark background */
    --grafana-darker: #0B0C0E;        /* Darker background */
    --grafana-panel: #181B1F;         /* Panel background */
    --grafana-purple-dark: #161240;   /* Dark purple for gradient */
    --grafana-purple-light: #39235A;  /* Light purple for gradient */
    --grafana-light: #D8D9DA;         /* Light text */
    --grafana-text: #C7D0D9;          /* Secondary text */
    --grafana-grid: #1F1F20;          /* Grid lines */
    --grafana-gradient: linear-gradient(135deg, var(--grafana-purple-dark), var(--grafana-purple-light));
    --grafana-glow: 0 0 15px rgba(255, 110, 45, 0.5); /* Subtle glow effect */
}

/* Body and background customization */
.analytics-details-body {
    /* Inherits from erp-body but with Grafana-specific tweaks */
    background: linear-gradient(135deg, var(--grafana-darker), var(--grafana-purple-dark));
    color: var(--grafana-light);
}

.analytics-background-feature {
    /* Custom background for Analytics page with subtle grid pattern */
    background: radial-gradient(circle, rgba(255, 110, 45, 0.1) 0%, rgba(61, 113, 217, 0.05) 40%, rgba(0, 0, 0, 0) 70%);
    position: relative;
    overflow: hidden;
}

.analytics-background-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(41, 41, 64, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(41, 41, 64, 0.3) 1px, transparent 1px);
    background-size: 25px 25px;
    pointer-events: none;
    z-index: -1;
}

/* Header customization */
.analytics-header {
    position: relative;
    background: linear-gradient(135deg, rgba(22, 18, 64, 0.95), rgba(57, 35, 90, 0.95)), url('../images/data-pattern.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.analytics-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 110, 45, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(61, 113, 217, 0.2) 0%, transparent 40%);
    z-index: -1;
}

.analytics-header h1 {
    color: var(--grafana-light);
    position: relative;
}

.analytics-header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--grafana-primary);
    border-radius: 2px;
}

.analytics-header .tagline {
    color: var(--grafana-text);
    max-width: 700px;
    margin: 25px auto 0;
}

/* Button styling */
.analytics-btn-primary {
    background: var(--grafana-primary);
    border: none;
    color: white;
    font-weight: 500;
}

.analytics-btn-primary:hover {
    background: var(--grafana-primary-light);
    transform: translateY(-2px);
    box-shadow: var(--grafana-glow);
}

.analytics-btn-secondary {
    border: 2px solid var(--grafana-text);
    color: var(--grafana-text);
}

.analytics-btn-secondary:hover {
    background-color: rgba(255, 110, 45, 0.1);
    border-color: var(--grafana-primary);
    color: var(--grafana-primary);
    transform: translateY(-2px);
}

/* Section styling */
.analytics-overview-section {
    padding-top: var(--space-xl);
}

.analytics-benefits-section {
    background: var(--grafana-gradient);
    position: relative;
    z-index: 0;
}

.analytics-benefits-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 90%, rgba(255, 110, 45, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(61, 113, 217, 0.1) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

.analytics-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.analytics-feature {
    display: flex;
    align-items: flex-start;
    background: rgba(24, 27, 31, 0.7);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-left: 2px solid transparent;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.analytics-feature:hover {
    transform: translateY(-5px);
    background: rgba(24, 27, 31, 0.9);
    border-left: 2px solid var(--grafana-primary);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25), 0 0 15px rgba(255, 110, 45, 0.2);
}

.analytics-feature p {
    margin: 0;
    margin-left: var(--space-sm);
    color: var(--grafana-text);
}

/* Dashboard section styling */
.analytics-dashboard-section {
    background: rgba(20, 22, 25, 0.9);
    position: relative;
}

.analytics-dashboard-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(to right, transparent 24px, var(--grafana-grid) 25px, transparent 26px),
        linear-gradient(to bottom, transparent 24px, var(--grafana-grid) 25px, transparent 26px);
    background-size: 50px 50px;
    opacity: 0.05;
    z-index: -1;
}

.dashboard-preview {
    position: relative;
    margin-top: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.dashboard-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    transition: transform 0.5s ease;
}

.dashboard-image:hover {
    transform: scale(1.02);
}

.dashboard-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.overlay-item {
    position: absolute;
    transform: translate(-50%, -50%);
}

.overlay-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--grafana-primary);
    box-shadow: 0 0 0 4px rgba(255, 110, 45, 0.3), 0 0 15px rgba(255, 110, 45, 0.5);
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.overlay-tooltip {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: var(--grafana-panel);
    border-radius: var(--radius-sm);
    padding: var(--space-sm);
    width: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    border-left: 3px solid var(--grafana-primary);
    z-index: 1;
}

.overlay-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid var(--grafana-panel);
}

.overlay-item:hover .overlay-dot {
    transform: scale(1.2);
    box-shadow: 0 0 0 6px rgba(255, 110, 45, 0.3), 0 0 20px rgba(255, 110, 45, 0.6);
}

.overlay-item:hover .overlay-tooltip {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    bottom: 35px;
}

.overlay-tooltip h4 {
    margin: 0 0 5px;
    color: var(--grafana-primary);
    font-size: 0.9rem;
}

.overlay-tooltip p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--grafana-text);
}

/* Modules section styling */
.analytics-modules-section {
    background: linear-gradient(135deg, rgba(22, 18, 64, 0.8), rgba(20, 22, 25, 0.8));
    position: relative;
}

.modules-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.module-item {
    display: flex;
    align-items: flex-start;
    background: rgba(24, 27, 31, 0.7);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.module-item:hover {
    transform: translateY(-3px);
    background: rgba(24, 27, 31, 0.9);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-left: 3px solid var(--grafana-primary);
}

.module-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--grafana-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: var(--space-md);
    flex-shrink: 0;
    position: relative;
}

.module-icon::before {
    font-family: "Material Icons";
    content: "";
    color: white;
    font-size: 24px;
}

.sales-icon::before {
    content: "trending_up";
}

.finance-icon::before {
    content: "account_balance";
}

.inventory-icon::before {
    content: "inventory_2";
}

.production-icon::before {
    content: "precision_manufacturing";
}

.module-content {
    flex: 1;
}

.module-content h3 {
    margin: 0 0 var(--space-xs);
    color: var(--grafana-primary);
    font-size: 1.1rem;
}

.module-content p {
    margin: 0;
    color: var(--grafana-text);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Visualization panel styling */
.module-visualization {
    display: flex;
    align-items: center;
    justify-content: center;
}

.visualization-panel {
    width: 100%;
    max-width: 450px;
    background: var(--grafana-panel);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-header {
    padding: var(--space-sm) var(--space-md);
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--grafana-light);
}

.panel-controls {
    color: var(--grafana-text);
    cursor: pointer;
}

.panel-controls:hover {
    color: var(--grafana-primary);
}

.panel-body {
    padding: var(--space-md);
    height: 250px;
    position: relative;
}

.chart-placeholder {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    padding-bottom: 30px;
    position: relative;
}

.chart-placeholder::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--grafana-primary), var(--grafana-primary-light));
    border-radius: 3px 3px 0 0;
    position: relative;
    min-height: 20px;
    transition: height 0.3s ease;
}

.chart-bar:hover {
    background: linear-gradient(to top, var(--grafana-primary-light), var(--grafana-primary));
    box-shadow: 0 0 15px rgba(255, 110, 45, 0.3);
    transform: scaleY(1.05);
    transform-origin: bottom;
}

/* Technical specifications */
.analytics-technical-section {
    background: rgba(20, 22, 25, 0.9);
    position: relative;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.spec-group {
    background: var(--grafana-panel);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-top: 2px solid transparent;
}

.spec-group:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    border-top: 2px solid var(--grafana-primary);
}

.spec-group h3 {
    color: var(--grafana-primary);
    margin-top: 0;
    margin-bottom: var(--space-sm);
    font-size: 1.1rem;
}

.spec-list {
    margin: 0;
    padding-left: var(--space-md);
    list-style-type: none;
}

.spec-list li {
    margin-bottom: var(--space-xs);
    line-height: 1.5;
    position: relative;
    color: var(--grafana-text);
}

.spec-list li::before {
    content: "•";
    color: var(--grafana-primary);
    position: absolute;
    left: -15px;
    font-weight: bold;
}

/* Use cases section */
.analytics-use-cases-section {
    background: var(--grafana-gradient);
    position: relative;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.use-case-card {
    background: rgba(24, 27, 31, 0.7);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.use-case-card:hover {
    transform: translateY(-5px);
    background: rgba(24, 27, 31, 0.9);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    border-left: 3px solid var(--grafana-primary);
}

.use-case-card h3 {
    color: var(--grafana-primary);
    margin-top: 0;
    margin-bottom: var(--space-sm);
    font-size: 1.1rem;
}

.use-case-card p {
    margin: 0;
    color: var(--grafana-text);
    line-height: 1.5;
    flex: 1;
}

/* Implementation section */
.analytics-implementation-section {
    background: rgba(20, 22, 25, 0.9);
    position: relative;
}

.implementation-flow {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: var(--space-lg);
    position: relative;
}

.implementation-flow::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: linear-gradient(to right, var(--grafana-primary), var(--grafana-secondary));
    z-index: 0;
}

.implementation-step {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    text-align: center;
    position: relative;
    z-index: 1;
    margin-bottom: var(--space-lg);
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--grafana-panel);
    border: 2px solid var(--grafana-primary);
    color: var(--grafana-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0 auto var(--space-md);
    box-shadow: 0 0 0 5px rgba(20, 22, 25, 0.9), 0 0 15px rgba(255, 110, 45, 0.3);
}

.implementation-step:hover .step-number {
    background: var(--grafana-primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 0 5px rgba(20, 22, 25, 0.9), 0 0 20px rgba(255, 110, 45, 0.5);
}

.step-content h3 {
    color: var(--grafana-primary);
    margin-top: 0;
    margin-bottom: var(--space-xs);
    font-size: 1.1rem;
}

.step-content p {
    color: var(--grafana-text);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Testimonial section */
.analytics-testimonial-section {
    background: linear-gradient(135deg, rgba(22, 18, 64, 0.9), rgba(20, 22, 25, 0.9));
    padding: var(--space-xl) 0;
    position: relative;
    overflow: hidden;
}

.analytics-testimonial-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 90%, rgba(255, 110, 45, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 90% 10%, rgba(61, 113, 217, 0.15) 0%, transparent 30%);
    z-index: -1;
}

.testimonial {
    background: var(--grafana-panel);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin: 0 auto;
    max-width: 800px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--grafana-primary);
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 5rem;
    line-height: 1;
    color: rgba(255, 110, 45, 0.2);
    font-family: Georgia, serif;
    z-index: -1;
}

.testimonial p {
    font-size: 1.25rem;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: var(--space-md);
    position: relative;
    z-index: 1;
    color: var(--grafana-light);
}

.testimonial cite {
    font-style: normal;
    font-weight: 600;
    display: block;
    text-align: right;
    color: var(--grafana-primary);
}

/* CTA section override */
.cta-section {
    background: linear-gradient(135deg, rgba(22, 18, 64, 0.9), rgba(57, 35, 90, 0.9));
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 110, 45, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(61, 113, 217, 0.2) 0%, transparent 40%);
    z-index: -1;
}

.cta-section .section-title {
    color: var(--grafana-light);
}

.cta-section .tagline {
    color: var(--grafana-text);
}

/* Icon styles */
.icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--grafana-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 0 10px rgba(255, 110, 45, 0.3);
}

.icon::before {
    font-family: "Material Icons";
    content: "";
    position: absolute;
    color: white;
    font-size: 1.25rem;
}

/* Specific icons */
.dashboard-icon::before {
    content: "dashboard";
}

.trend-icon::before {
    content: "trending_up";
}

.alert-icon::before {
    content: "notifications";
}

.visual-icon::before {
    content: "bar_chart";
}

.customize-icon::before {
    content: "tune";
}

.share-icon::before {
    content: "share";
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .split-content {
        flex-direction: column;
    }
    
    .module-visualization {
        margin-top: var(--space-lg);
    }
    
    .implementation-flow::before {
        display: none;
    }
    
    .implementation-step {
        margin-bottom: var(--space-lg);
        max-width: 100%;
    }
    
    .testimonial {
        padding: var(--space-md);
    }
    
    .testimonial p {
        font-size: 1.1rem;
    }
    
    .overlay-item {
        display: none;
    }
}

@media (max-width: 768px) {
    .analytics-features {
        grid-template-columns: 1fr;
    }
    
    .specs-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-preview {
        margin-top: var(--space-md);
    }
    
    .testimonial {
        padding: var(--space-sm);
    }
    
    .overlay-item {
        display: none;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
} 