* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    overflow-x: auto;
}

.pipeline-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 1400px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.title {
    text-align: center;
    font-size: 2.5em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.pipeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

.stage {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.box {
    padding: 20px;
    border-radius: 15px;
    color: white;
    font-weight: bold;
    text-align: center;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    position: relative;
    transition: transform 0.3s ease;
}

.box:hover {
    transform: translateY(-5px);
}

.developer { background: linear-gradient(45deg, #3498db, #2980b9); }
.review { background: linear-gradient(45deg, #f39c12, #e67e22); }
.automated { background: linear-gradient(45deg, #27ae60, #229954); }
.testing { background: linear-gradient(45deg, #8e44ad, #7d3c98); }
.deployment { background: linear-gradient(45deg, #e74c3c, #c0392b); }
.qa-manual { background: linear-gradient(45deg, #16a085, #138d75); }

.decision {
    background: linear-gradient(45deg, #ff6b6b, #ee5253);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    min-width: 150px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.arrow {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 20px solid #34495e;
    margin: 0 10px;
}

.arrow-right {
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 20px solid #34495e;
    margin: 0 10px;
}

.return-arrow {
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 2px;
    background: #e74c3c;
}

.return-arrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: -5px;
    width: 0;
    height: 0;
    border-right: 10px solid #e74c3c;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.stage-number {
    background: #2c3e50;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    margin-right: 10px;
}

.requirements {
    font-size: 0.9em;
    margin-top: 10px;
    opacity: 0.9;
}

.flow-section {
    border-left: 4px solid #3498db;
    padding-left: 20px;
    margin: 20px 0;
}

.parallel-flows {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.flow-branch {
    flex: 1;
}

.success-path {
    border-left: 4px solid #27ae60;
    padding-left: 20px;
}

.failure-path {
    border-left: 4px solid #e74c3c;
    padding-left: 20px;
}

.legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 5px;
}

/* Back to white papers link */
.back-link-container {
    text-align: right;
    margin-bottom: 20px;
}

.back-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    border: 2px solid #2c3e50;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background-color: #2c3e50;
    color: white;
}

/* Security monitoring section */
.security-monitoring {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    border: 3px solid #e91e63;
}

.security-monitoring h2 {
    text-align: center;
    color: #880e4f;
    margin-bottom: 15px;
    font-size: 1.5em;
}

.security-boxes {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Security monitoring boxes */
.security-dependabot {
    background: linear-gradient(45deg, #6a1b9a, #8e24aa);
    min-width: 250px;
}

.security-snyk {
    background: linear-gradient(45deg, #d32f2f, #f44336);
    min-width: 250px;
}

/* Documentation boxes */
.documentation {
    background: linear-gradient(45deg, #795548, #6d4c41);
}

/* Failure boxes */
.failure {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

/* Legend color classes */
.legend-color.documentation-color {
    background: linear-gradient(45deg, #795548, #6d4c41);
}

.legend-color.security-color {
    background: linear-gradient(45deg, #ff9a9e, #fecfef);
}