* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.nav-tabs {
    display: flex;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 5px;
    margin-bottom: 30px;
}

.tab-btn {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: transparent;
    color: white;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: rgba(255,255,255,0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.tab-btn:hover {
    background: rgba(255,255,255,0.15);
}

.tab-content {
    display: none;
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: fadeIn 0.5s ease-in;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.pipeline-builder {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.stages-panel {
    flex: 1;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.stages-panel h3 {
    margin-bottom: 15px;
    color: #333;
}

.pipeline-canvas {
    flex: 2;
    background: white;
    border-radius: 10px;
    border: 2px dashed #ddd;
    min-height: 400px;
    padding: 20px;
    position: relative;
}

.stage-item {
    background: linear-gradient(45deg, #FF6B6B, #4ECDC4);
    color: white;
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 8px;
    cursor: grab;
    transition: transform 0.2s ease;
    user-select: none;
}

.stage-item:hover {
    transform: translateX(5px);
}

.stage-item:active {
    cursor: grabbing;
}

.pipeline-stage {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px;
    margin: 10px;
    border-radius: 10px;
    display: inline-block;
    min-width: 150px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
}

.quiz-container {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
}

.question {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.options {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.option {
    padding: 15px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.option.selected {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: #667eea;
}

.btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
}

.correct {
    background: linear-gradient(135deg, #48C9B0, #58D68D);
    color: white;
}

.incorrect {
    background: linear-gradient(135deg, #EC7063, #F39C12);
    color: white;
}

.build-log {
    background: #1a1a1a;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    padding: 20px;
    border-radius: 10px;
    min-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.4;
}

.build-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.status-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-success { 
    background: #28a745; 
}

.status-failure { 
    background: #dc3545; 
}

.status-running { 
    background: #ffc107; 
    animation: pulse 1s infinite; 
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.concept-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 5px solid #667eea;
}

.concept-title {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 10px;
}

.concept-card p {
    line-height: 1.6;
    color: #555;
}

.concept-card strong {
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .pipeline-builder {
        flex-direction: column;
    }
    
    .nav-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    .build-controls {
        flex-wrap: wrap;
    }
}

/* Jenkinsfile Output Styling */
#jenkinsfileOutput h3 {
    color: #667eea;
    margin-bottom: 15px;
}

#jenkinsfileOutput pre {
    background: #f8f9fa !important;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.4;
    border: 1px solid #e9ecef;
}

/* Animation for pipeline stages */
.pipeline-stage {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}