.testing-pyramid {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px 0;
}
.pyramid-layer {
    padding: 25px;
    text-align: center;
    color: white;
    font-weight: bold;
    width: 80%;
    position: relative;
    transition: all 0.3s ease;
}
.pyramid-layer:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.e2e-layer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 60%;
    border-radius: 10px 10px 0 0;
}
.integration-layer {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    width: 80%;
    border-radius: 10px 10px 0 0;
}
.unit-layer {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    width: 100%;
    border-radius: 10px 10px 10px 10px;
}
.testing-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}
.tool-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    border: 3px solid;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}
.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
.tool-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}
.testing-demo-area {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
}
.demo-container {
    background: white;
    border-radius: 12px;
    padding: 25px;
    border: 2px solid #dee2e6;
}
.test-runner {
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    max-height: 400px;
    overflow-y: auto;
}
.test-line {
    margin: 5px 0;
    font-size: 14px;
}
.test-pass {
    color: #4CAF50;
}
.test-fail {
    color: #F44336;
}
.test-skip {
    color: #FF9800;
}
.test-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}
.test-visualizer {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    min-height: 200px;
    transition: all 0.3s ease;
}
.coverage-chart {
    height: 200px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}
.coverage-bar {
    position: absolute;
    bottom: 0;
    background: linear-gradient(to top, #4CAF50, #8BC34A);
    border-radius: 4px 4px 0 0;
    transition: width 0.5s ease;
}
.testing-types {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}
.testing-type-card {
    flex: 1;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    border: 3px solid;
}
.testing-timeline {
    position: relative;
    margin: 40px 0;
    padding-left: 40px;
}
.testing-timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding: 25px;
    background: white;
    border-radius: 10px;
    border: 2px solid #dee2e6;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.testing-timeline-item:before {
    content: '';
    position: absolute;
    left: -40px;
    top: 30px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 3px solid #007bff;
    box-shadow: 0 0 0 3px #007bff;
    z-index: 2;
}
.testing-timeline-item:after {
    content: '';
    position: absolute;
    left: -30px;
    top: 50px;
    bottom: -40px;
    width: 2px;
    background: #dee2e6;
    z-index: 1;
}
.testing-timeline-item:last-child:after {
    display: none;
}
.test-examples {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin: 30px 0;
}
.test-example-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    border: 2px solid #dee2e6;
    overflow: hidden;
}
.test-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    display: none;
}
.test-modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}
.test-code-viewer {
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    max-height: 400px;
    overflow-y: auto;
}
.test-checklist {
    background: #e3f2fd;
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    border: 2px solid #2196f3;
}
.checklist-item {
    display: flex;
    align-items: flex-start;
    margin: 15px 0;
    padding: 10px;
    background: white;
    border-radius: 6px;
}
.checklist-item input {
    margin-right: 15px;
    margin-top: 5px;
}
.test-metrics {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}
.metric-card {
    flex: 1;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid;
}
