/* File: erp-academic.css */
/* Academic ERP Article Specific Styles */

/* Hero Section */
.erp-academic-hero {
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 50%, #1976d2 100%);
  color: white;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.erp-academic-hero::before {
  content: '';
  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 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="white" opacity="0.05"/></svg>');
  background-size: cover;
}

.erp-academic-hero .hero-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.ai-verification-tick {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(0, 150, 0, 0.9);
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(5px);
}

/* Requirements Accordion */
.requirements-accordion {
  margin: 2rem 0;
}

.requirement-category {
  background: white;
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
}

.category-toggle {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
  transition: background 0.3s ease;
}

.category-toggle:hover {
  background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
}

.category-toggle h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1a237e;
}

.toggle-icon {
  color: #1a237e;
  transition: transform 0.3s ease;
}

.requirement-category.active .toggle-icon {
  transform: rotate(180deg);
}

.category-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, padding 0.5s ease;
}

.requirement-category.active .category-content {
  padding: 1.5rem;
  max-height: 2000px;
}

.requirement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.req-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #2196f3;
}

.req-item i {
  font-size: 1.5rem;
  color: #2196f3;
  margin-top: 5px;
}

.req-item.critical {
  background: #fff3e0;
  border-left-color: #ff9800;
}

.req-item.critical i {
  color: #ff9800;
}

.critical-badge {
  display: inline-block;
  background: #ff9800;
  color: white;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 5px;
}

/* Software Comparison Matrix */
.software-filter {
  background: #f5f7fa;
  padding: 1.5rem;
  border-radius: 12px;
  margin: 2rem 0;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}

.filter-btn {
  padding: 8px 16px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: #2196f3;
  color: #2196f3;
}

.filter-btn.active {
  background: #2196f3;
  color: white;
  border-color: #2196f3;
}

.software-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.software-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.software-card.hidden {
  opacity: 0;
  transform: scale(0.9);
  position: absolute;
  visibility: hidden;
}

.software-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.software-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
  color: white;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.software-logo {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.software-title {
  flex: 1;
}

.software-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 5px;
}

.software-tag.k12 {
  background: #4caf50;
  color: white;
}

.software-tag.integrated {
  background: #2196f3;
  color: white;
}

.software-tag.enterprise {
  background: #9c27b0;
  color: white;
}

.software-tag.higher-ed {
  background: #ff9800;
  color: white;
}

.software-rating {
  text-align: right;
}

.rating-value {
  font-size: 1.2rem;
  font-weight: bold;
}

.rating-stars {
  color: #ffd700;
  margin-top: 5px;
}

.software-content {
  padding: 1.5rem;
}

.strengths-weaknesses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
  padding: 1.5rem 0;
  border-top: 2px solid #f0f0f0;
  border-bottom: 2px solid #f0f0f0;
}

@media (max-width: 768px) {
  .strengths-weaknesses {
    grid-template-columns: 1fr;
  }
}

.strengths h5, .weaknesses h5 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.strengths h5 {
  color: #4caf50;
}

.weaknesses h5 {
  color: #f44336;
}

.strengths ul, .weaknesses ul {
  list-style: none;
  padding: 0;
}

.strengths li, .weaknesses li {
  padding: 5px 0;
  position: relative;
  padding-left: 20px;
}

.strengths li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #4caf50;
  font-weight: bold;
}

.weaknesses li:before {
  content: '⚠';
  position: absolute;
  left: 0;
  color: #f44336;
}

.compliance-status {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.compliance-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.compliance-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.85rem;
}

.compliance-item.good {
  background: #e8f5e9;
  color: #2e7d32;
}

.compliance-item.excellent {
  background: #e3f2fd;
  color: #1565c0;
}

.compliance-item.partial {
  background: #fff3e0;
  color: #ef6c00;
}

.pricing-estimate {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.pricing-range {
  text-align: center;
  padding: 1rem;
}

.pricing-range span {
  font-size: 1.5rem;
  font-weight: bold;
  color: #1a237e;
  display: block;
}

.pricing-range small {
  color: #666;
  font-size: 0.9rem;
}

/* Selection Guide */
.selection-guide {
  margin: 2rem 0;
}

.guide-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.guide-header {
  background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
  color: white;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.guide-content {
  padding: 1.5rem;
}

.guide-scenario {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 4px solid #4caf50;
}

.guide-scenario:last-child {
  margin-bottom: 0;
}

/* Compliance Checklist */
.compliance-checklist {
  margin: 2rem 0;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.checklist-item {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.checklist-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Assessment Table */
.assessment-table {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
}

.table-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: linear-gradient(135deg, #1a237e 0%, #283593 100%);
  color: white;
  padding: 1rem 1.5rem;
  font-weight: 600;
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  align-items: start;
}

.table-row:last-child {
  border-bottom: none;
}

.table-col {
  padding: 0 1rem;
}

.table-col:not(:first-child) {
  border-left: 1px solid #f0f0f0;
}

.status-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.status-badge.minimum {
  background: #fff3e0;
  color: #ef6c00;
}

.status-badge.ideal {
  background: #e8f5e9;
  color: #2e7d32;
}

/* Contract Clauses */
.contract-clauses {
  margin: 2rem 0;
}

.clauses-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.clauses-header {
  background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
  color: white;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.clauses-content {
  padding: 1.5rem;
}

.clause {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 4px solid #9c27b0;
}

.clause:last-child {
  margin-bottom: 0;
}

/* Implementation Phases */
.phased-approach {
  margin: 2rem 0;
}

.phases-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 1.5rem 0;
}

.phase {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.phase-marker {
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phase-number {
  font-weight: bold;
  font-size: 1.2rem;
}

.phase-duration {
  font-size: 0.9rem;
  opacity: 0.9;
}

.phase-content {
  padding: 1.5rem;
}

.phase-content ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.phase-content li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
}

.phase-content li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #2196f3;
  font-weight: bold;
}

.phase-outcome {
  background: #e8f5e9;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  text-align: center;
  font-weight: 600;
  color: #2e7d32;
}

/* KPIs & Metrics */
.kpis-metrics {
  margin: 2rem 0;
}

.kpis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.kpi-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  gap: 1rem;
}

.kpi-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Risk Mitigation */
.risk-mitigation {
  margin: 2rem 0;
}

.risk-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.risk-header {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  color: white;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.risk-content {
  padding: 1.5rem;
}

.risk-item {
  background: #fff8e1;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 4px solid #ff9800;
}

.risk-item:last-child {
  margin-bottom: 0;
}

/* TCO & ROI */
.tco-breakdown {
  margin: 2rem 0;
}

.tco-visual {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.tco-category {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f0f0f0;
}

.category-percentage {
  background: #2196f3;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: bold;
}

/* ROI Calculator */
.roi-calculator {
  margin: 2rem 0;
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 1.5rem 0;
}

.cost-savings, .investment-cost, .roi-result {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.saving-item, .cost-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed #f0f0f0;
}

.saving-total, .cost-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-top: 2px solid #333;
  margin-top: 10px;
  font-weight: bold;
}

.saving-amount, .cost-amount, .total-amount {
  font-weight: 600;
}

.positive {
  color: #2e7d32;
}

.roi-result .result-header {
  background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
  color: white;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
}

.result-item:last-child {
  border-bottom: none;
}

/* Intangible Benefits */
.intangible-benefits {
  margin: 2rem 0;
}

.benefits-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.benefits-header {
  background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
  color: white;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;
}

.benefit {
  text-align: center;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.benefit i {
  font-size: 2.5rem;
  color: #9c27b0;
  margin-bottom: 1rem;
}

/* Decision Framework */
.decision-framework {
  margin: 2rem 0;
}

.framework-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.framework-step {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  position: relative;
}

.step-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  margin: 0 auto 1rem;
}

/* Sidebar Compliance Widget */
.compliance-widget {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-radius: 12px;
  overflow: hidden;
}

.compliance-header {
  background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.compliance-content {
  padding: 1.5rem;
}

.compliance-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #c8e6c9;
}

.compliance-item:last-child {
  border-bottom: none;
}

.compliance-item i {
  color: #4caf50;
}

.compliance-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2e7d32;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  margin-top: 1rem;
}

/* Final Recommendations */
.final-recommendations {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.recommendation-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recommendation {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.recommendation i {
  color: #4caf50;
  margin-top: 3px;
  flex-shrink: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .table-header, .table-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .table-col:not(:first-child) {
    border-left: none;
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
  }
  
  .assessment-table .table-header,
  .assessment-table .table-row {
    grid-template-columns: 1fr;
  }
  
  .requirement-grid {
    grid-template-columns: 1fr;
  }
  
  .software-matrix {
    grid-template-columns: 1fr;
  }
  
  .calculator-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .filter-buttons {
    flex-direction: column;
  }
  
  .filter-btn {
    width: 100%;
  }
  
  .strengths-weaknesses {
    grid-template-columns: 1fr;
  }
  
  .tco-visual {
    grid-template-columns: 1fr;
  }
  
  .framework-grid {
    grid-template-columns: 1fr;
  }
}