/* Base */
:root {
    --primary-color: #3b82f6;
    --secondary-color: #1e40af;
    --accent-color: #60a5fa;
    --dark-color: #1e293b;
    --light-color: #f1f5f9;
    --text-color: #334155;
    --border-radius: 0.5rem;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-bg {
    background-image: url('images/hero-bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    position: absolute;
    inset: 0;
}

/* Table of Contents */
.toc-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    text-align: center;
}

.toc-item:hover {
    background-color: #f1f5f9;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-right: 1rem;
    color: #1e293b;
    position: relative;
    margin-right: 0.5rem;
    margin-left: 0.75rem;
}

/* Benefit Cards */
.benefit-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.benefit-card h4 {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

/* Solution Components */
.solution-component {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.solution-component:hover {
    transform: translateY(-3px);
}

.solution-component h4 {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: #1e293b;
}

.icon-wrapper {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
}

.blue { background-color: #3b82f6; }
.indigo { background-color: #6366f1; }
.teal { background-color: #14b8a6; }
.purple { background-color: #8b5cf6; }
.red { background-color: #ef4444; }
.amber { background-color: #f59e0b; }
.green { background-color: #22c55e; }
.pink { background-color: #ec4899; }
.orange { background-color: #f97316; }

.solution-icon-container {
    width: 128px;
    height: 128px;
    background-color: rgba(226, 232, 240, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.solution-icon {
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Methodology Steps */
.methodology-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.methodology-step {
    display: flex;
    align-items: flex-start;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid #e2e8f0;
}

.step-number {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-left: 1rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #1e293b;
}

/* Architecture Diagram */
.architecture-diagram {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.architecture-layer {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 1rem;
    transition: all 0.3s ease;
}

.architecture-layer:hover {
    background-color: #f1f5f9;
    box-shadow: var(--shadow);
}

.architecture-layer h4 {
    font-weight: 600;
    color: #1e293b;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.layer-components {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.arch-component {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

/* Design Principles */
.design-principle {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
}

.design-principle:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.design-principle h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

/* Technologies */
.tech-category {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

.tech-card {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

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

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

/* Features */
.feature-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
}

.feature-card h3 {
    font-weight: 600;
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: #1e293b;
}

/* Requirements */
.requirement-card {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 1.25rem;
    transition: all 0.3s ease;
    height: 100%;
}

.requirement-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.requirement-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.req-number {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background-color: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-left: 0.75rem;
    flex-shrink: 0;
}

.requirement-card.non-functional .req-number {
    background-color: #8b5cf6;
}

.requirement-header h4 {
    font-weight: 600;
    color: #1e293b;
}

/* Project Plan */
.phase-card {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.phase-card:hover {
    box-shadow: var(--shadow);
}

.phase-header {
    background-color: #f1f5f9;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
}

.phase-header h5 {
    font-weight: 600;
    color: #1e293b;
}

.phase-header .duration {
    font-size: 0.875rem;
    background-color: #3b82f6;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.phase-content {
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

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

.activities, .deliverables {
    background-color: #f8fafc;
    border-radius: 0.375rem;
    padding: 0.75rem;
}

.activities h6, .deliverables h6 {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.activities ul, .deliverables ul {
    padding-right: 1.25rem;
    list-style-type: disc;
}

.activities li, .deliverables li {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.support-activities {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.support-activity {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    transition: all 0.3s ease;
}

.support-activity:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.support-activity h5 {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.support-activity p {
    font-size: 0.875rem;
    color: #64748b;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 6rem 1fr;
    gap: 1.5rem;
}

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

.timeline-date {
    background-color: #1e293b;
    color: white;
    padding: 0.5rem;
    border-radius: 0.375rem;
    text-align: center;
    font-weight: 500;
    height: fit-content;
}

.timeline-content {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 1rem;
}

.timeline-content h4 {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.timeline-milestones {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timeline-milestone {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.milestone-date {
    background-color: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    width: 8rem;
    text-align: center;
}

.milestone-name {
    font-size: 0.875rem;
    color: #64748b;
}

.timeline-support {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem;
}

.support-type {
    background-color: #f8fafc;
    border-radius: 0.375rem;
    padding: 0.5rem;
    text-align: center;
}

.support-type h5 {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.support-period {
    font-size: 0.75rem;
    color: #64748b;
}

.gantt-chart {
    margin-top: 2rem;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.gantt-header {
    display: grid;
    grid-template-columns: 10rem 1fr;
    background-color: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}

.gantt-task-label {
    padding: 0.5rem;
    font-weight: 600;
    color: #1e293b;
    border-left: 1px solid #e2e8f0;
}

.gantt-timeline {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    text-align: center;
}

.gantt-timeline div {
    padding: 0.5rem;
    border-left: 1px solid #e2e8f0;
    font-size: 0.875rem;
    color: #64748b;
}

.gantt-task {
    display: grid;
    grid-template-columns: 10rem 1fr;
    border-bottom: 1px solid #e2e8f0;
}

.gantt-task:last-child {
    border-bottom: none;
}

.gantt-bar {
    height: 1.25rem;
    margin: 0.25rem 0;
    border-radius: 0.25rem;
}

/* Deliverables */
.deliverables-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.deliverables-list li {
    display: flex;
    gap: 0.75rem;
    background-color: #f8fafc;
    border-radius: var(--border-radius);
    padding: 1rem;
    transition: all 0.3s ease;
    align-items: flex-start;
}

.deliverables-list li:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.deliverables-list h4 {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.deliverables-list p {
    font-size: 0.875rem;
    color: #64748b;
}

.training-deliverable {
    background-color: #f8fafc;
    border-radius: var(--border-radius);
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
}

.training-deliverable:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.icon-container {
    width: 3rem;
    height: 3rem;
    background-color: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.training-deliverable h4 {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.training-deliverable p {
    font-size: 0.875rem;
    color: #64748b;
}

/* Suggested Features */
.suggested-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.suggested-feature-category h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.suggested-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.feature-suggestion {
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    padding: 1rem;
    transition: all 0.3s ease;
}

.feature-suggestion:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.feature-suggestion h5 {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.feature-suggestion p {
    font-size: 0.875rem;
    color: #64748b;
}

/* Assumptions */
.assumptions-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.assumption-item {
    display: flex;
    gap: 1rem;
    background-color: #f8fafc;
    border-radius: var(--border-radius);
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.assumption-item:hover {
    box-shadow: var(--shadow);
}

.assumption-number {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: #3b82f6;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.assumption-content h4 {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

/* Risks */
.risks-table {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.risk-row {
    display: grid;
    grid-template-columns: 2.5rem 2fr 2fr 3fr;
    gap: 0.75rem;
}

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

.risk-row.header {
    font-weight: 600;
    color: #1e293b;
    background-color: #f1f5f9;
    padding: 0.5rem;
    border-radius: 0.375rem;
    align-items: center;
}

.risk-cell {
    padding: 0.75rem;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
}

.risk-cell h4 {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.mitigation-list {
    padding-right: 1.25rem;
    list-style-type: disc;
    font-size: 0.875rem;
}

.mitigation-list li {
    margin-bottom: 0.25rem;
}

.clarification-questions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.question-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    background-color: #f8fafc;
    border-radius: var(--border-radius);
    padding: 1rem;
    transition: all 0.3s ease;
}

.question-item:hover {
    box-shadow: var(--shadow);
}

.font-geist-mono {
    font-family: 'Geist Mono', monospace;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .risk-row {
        grid-template-columns: 1fr;
    }
    
    .phase-content {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        grid-template-columns: 1fr;
    }
}
