/* Module 8 - Predictive Analytics & Forecasting Specific Styles */

/* Sky Blue Header Theme */
.header-blue {
    background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
}

:root {
    --module8-primary: #0EA5E9;
    --module8-primary-dark: #0284C7;
    --module8-primary-light: #7DD3FC;
    
    /* Stage Colors */
    --stage-sky: #0EA5E9;
    --stage-indigo: #6366F1;
    --stage-cyan: #06B6D4;
}

/* Badge Styles */
.badge-blue {
    background: rgba(14, 165, 233, 0.2);
    color: #0284C7;
    font-weight: 700;
}

.badge-link {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.badge-link:hover {
    background: white;
    color: var(--module8-primary);
}

/* ===================================
   USER GOALS
   =================================== */

.goals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 1200px) {
    .goals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .goals-grid {
        grid-template-columns: 1fr;
    }
}

.goal-card {
    background: white;
    border-radius: 12px;
    padding: 1.75rem !important;
    border-left: 4px solid var(--module8-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.goal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.15);
}

.goal-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.goal-card h4 {
    color: #1F2937;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.5;
}

.goal-card p {
    color: #6B7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

/* ===================================
   USER ROLES
   =================================== */

.roles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 968px) {
    .roles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .roles-grid {
        grid-template-columns: 1fr;
    }
}

.role-item {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    border-left: 4px solid var(--module8-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.role-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.12);
}

.role-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.role-badge.primary {
    background: #DBEAFE;
    color: #1E40AF;
}

.role-badge.secondary {
    background: #FEF3C7;
    color: #92400E;
}

.role-item h4 {
    color: #1F2937;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.role-item p {
    color: #6B7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

/* ===================================
   FORECAST DASHBOARD
   =================================== */

.forecast-dashboard {
    margin: 3rem 0;
}

.section-description {
    color: #6B7280;
    font-size: 1rem;
    text-align: center;
    margin-bottom: 2rem;
}

.forecast-preview {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--module8-primary);
}

.forecast-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.timeframe-selector {
    display: flex;
    gap: 0.5rem;
}

.timeframe-btn {
    padding: 0.75rem 1.25rem;
    border: 2px solid #E5E7EB;
    background: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeframe-btn:hover {
    border-color: var(--module8-primary);
    color: var(--module8-primary);
}

.timeframe-btn.active {
    background: var(--module8-primary);
    border-color: var(--module8-primary);
    color: white;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: #F3F4F6;
    padding: 0.25rem;
    border-radius: 8px;
}

.toggle-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: white;
    color: var(--module8-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.forecast-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 968px) {
    .forecast-metrics {
        grid-template-columns: 1fr;
    }
}

.metric-box {
    background: #F9FAFB;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.forecast-confidence {
    border-left: 4px solid #10B981;
}

.forecast-accuracy {
    border-left: 4px solid var(--module8-primary);
}

.forecast-alerts {
    border-left: 4px solid #F59E0B;
}

.metric-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6B7280;
    margin-bottom: 0.75rem;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

.metric-note {
    color: #9CA3AF;
    font-size: 0.75rem;
    margin: 0;
}

.confidence-bar {
    width: 100%;
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 0.75rem;
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, #10B981 0%, #059669 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* ===================================
   WORKFLOW STAGES
   =================================== */

.stage-sky {
    border-left-color: var(--stage-sky) !important;
}

.stage-sky .stage-number {
    background: var(--stage-sky) !important;
}

.stage-sky .stage-header h3 {
    color: var(--stage-sky) !important;
}

.stage-indigo {
    border-left-color: var(--stage-indigo) !important;
}

.stage-indigo .stage-number {
    background: var(--stage-indigo) !important;
}

.stage-indigo .stage-header h3 {
    color: var(--stage-indigo) !important;
}

.stage-cyan {
    border-left-color: var(--stage-cyan) !important;
}

.stage-cyan .stage-number {
    background: var(--stage-cyan) !important;
}

.stage-cyan .stage-header h3 {
    color: var(--stage-cyan) !important;
}

/* ===================================
   ML MODEL DETAILS
   =================================== */

.ml-model {
    margin: 3rem 0;
}

.ml-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 968px) {
    .ml-details-grid {
        grid-template-columns: 1fr;
    }
}

.ml-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid var(--module8-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.ml-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.15);
}

.ml-card h4 {
    color: var(--module8-primary);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.ml-card p {
    color: #374151;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.ml-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ml-list li {
    color: #6B7280;
    font-size: 0.875rem;
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.ml-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--module8-primary);
    font-weight: 700;
    font-size: 1.2rem;
}

/* ===================================
   EVENT IMPACT CARDS
   =================================== */

.event-impact {
    margin: 3rem 0;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 968px) {
    .events-grid {
        grid-template-columns: 1fr;
    }
}

.event-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.event-high {
    border-left: 4px solid #10B981;
}

.event-medium {
    border-left: 4px solid #F59E0B;
}

.event-low {
    border-left: 4px solid #0EA5E9;
}

.event-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.event-card h4 {
    color: #1F2937;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.event-impact-value {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.event-high .event-impact-value {
    color: #10B981;
}

.event-medium .event-impact-value {
    color: #F59E0B;
}

.event-low .event-impact-value {
    color: #0EA5E9;
}

.event-description {
    color: #6B7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.event-affected {
    background: #F9FAFB;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #374151;
}

.event-affected strong {
    color: #1F2937;
}

/* ===================================
   SYSTEM LOGIC
   =================================== */

.logic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 968px) {
    .logic-grid {
        grid-template-columns: 1fr;
    }
}

.logic-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid var(--module8-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.logic-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.15);
}

.logic-card h4 {
    color: #1F2937;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.logic-card code {
    display: block;
    background: #F3F4F6;
    color: #374151;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
    margin-bottom: 1rem;
    font-weight: 600;
}

.logic-example {
    color: #6B7280;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

.logic-example strong {
    color: #1F2937;
}

/* ===================================
   DATA DEPENDENCIES
   =================================== */

.dependencies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 968px) {
    .dependencies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .dependencies-grid {
        grid-template-columns: 1fr;
    }
}

.dependency-card {
    background: white;
    border-radius: 10px;
    padding: 1.25rem;
    border-left: 4px solid var(--module8-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.dependency-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.12);
}

.dependency-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.dependency-card h4 {
    color: #1F2937;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dependency-card p {
    color: #6B7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

/* ===================================
   UI ELEMENTS
   =================================== */

.ui-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 968px) {
    .ui-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .ui-grid {
        grid-template-columns: 1fr;
    }
}

.ui-item {
    background: white;
    border-radius: 10px;
    padding: 1.25rem;
    border-left: 4px solid var(--module8-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.ui-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.12);
}

.ui-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.ui-item h4 {
    color: #1F2937;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.ui-item p {
    color: #6B7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

/* ===================================
   UX DESIGN GUIDELINES
   =================================== */

.ux-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 968px) {
    .ux-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .ux-cards-grid {
        grid-template-columns: 1fr;
    }
}

.ux-card {
    background: white;
    border-radius: 12px !important;
    padding: 1.5rem !important;
    border-left: 4px solid var(--module8-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.ux-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.15);
}

.ux-card h4 {
    color: var(--module8-primary);
    font-size: 1rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.5;
}

.ux-card p {
    color: #6B7280;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

/* ===================================
   PROCESS FLOW
   =================================== */

.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

@media (max-width: 968px) {
    .flow-diagram {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
}

.flow-step {
    flex: 1;
    min-width: 150px;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid var(--module8-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.flow-number {
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--module8-primary);
    color: white;
    font-weight: 700;
    line-height: 32px;
    margin-bottom: 0.75rem;
}

.flow-step h4 {
    color: var(--module8-primary);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.flow-step p {
    color: #6B7280;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

.flow-arrow {
    color: var(--module8-primary);
    font-size: 1.5rem;
    font-weight: 700;
}

/* ===================================
   RESPONSIVE ADJUSTMENTS
   =================================== */

@media (max-width: 768px) {
    .forecast-preview {
        padding: 1.5rem;
    }
    
    .timeframe-selector {
        width: 100%;
        justify-content: space-between;
    }
    
    .timeframe-btn {
        flex: 1;
        padding: 0.6rem 0.75rem;
        font-size: 0.8rem;
    }
}
