/* Interview Questions Styling */
.interview-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.interview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

.accordion-button {
    font-weight: 500;
    padding: 1.25rem;
}

.accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.accordion-body {
    padding: 1.5rem;
}

.question-content, .answer-content, .question-text, .answer-text {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.95rem;
    line-height: 1.4;
}

.answer-text {
    background: #f8f9fa !important;
    border: 1px solid #e9ecef;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #495057;
    white-space: pre-line;
    word-wrap: break-word;
}

.answer-text pre, .code-block {
    background: #2d3748 !important;
    color: #e2e8f0 !important;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    overflow-x: auto;
    display: block;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.85em;
    white-space: pre-wrap;
    tab-size: 4;
    line-height: 1.4;
    border: 1px solid #4a5568;
}

.code-block.php { border-left: 4px solid #8892bf; }
.code-block.java { border-left: 4px solid #f89820; }
.code-block.python { border-left: 4px solid #3776ab; }
.code-block.js { border-left: 4px solid #f7df1e; }
.code-block.sql { border-left: 4px solid #336791; }
.code-block.dart { border-left: 4px solid #0175c2; }
.code-block.kotlin { border-left: 4px solid #7f52ff; }
.code-block.swift { border-left: 4px solid #fa7343; }
.code-block.go { border-left: 4px solid #00add8; }
.code-block.rust { border-left: 4px solid #ce422b; }
.code-block.generic { border-left: 4px solid #6c757d; }

.answer-text code, .inline-code {
    background: #2d3748 !important;
    color: #e2e8f0 !important;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.85em;
    display: inline;
    white-space: nowrap;
}

.code-block code {
    background: transparent !important;
    padding: 0;
    color: inherit;
    white-space: pre;
}

.answer-text p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.answer-text ul, .answer-text ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.answer-text li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.question-text {
    background: #fff !important;
    border: 1px solid #dee2e6;
    white-space: pre-line;
    word-wrap: break-word;
}

.badge-number {
    min-width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.tech-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.btn-download {
    background: linear-gradient(45deg, #28a745, #20c997);
    border: none;
    color: white;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: linear-gradient(45deg, #218838, #1ea085);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    color: white;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6c757d;
}

.social-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-share-btn:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .accordion-button {
        padding: 1rem;
        font-size: 0.9rem;
    }
    
    .accordion-body {
        padding: 1rem;
    }
    
    .tech-icon {
        font-size: 2rem;
    }
}

/* PDF Download Animation */
.btn-download i {
    transition: transform 0.3s ease;
}

.btn-download:hover i {
    transform: translateY(-2px);
}

/* Question Number Badge Animation */
.badge {
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) .badge {
    background-color: #28a745 !important;
    transform: scale(1.1);
}

/* View Questions Button */
.btn-primary {
    background: #1a1f3a !important;
    border-color: #1a1f3a !important;
}

.btn-primary:hover {
    background: #2a2f4a !important;
    border-color: #2a2f4a !important;
}

/* Loading Animation for PDF Download */
.btn-download.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-download.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ML Workflow Chart Styles */
.workflow-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 6px;
    border: 1px solid #dee2e6;
    margin: 10px 0;
}

.workflow-step {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #007bff;
    border-radius: 6px;
    padding: 6px 10px;
    margin: 2px 0;
    box-shadow: 0 1px 3px rgba(0,123,255,0.1);
    transition: all 0.3s ease;
    min-width: 220px;
    max-width: 280px;
}

.workflow-step:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,123,255,0.2);
    border-color: #0056b3;
}

.step-number {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 10px;
    margin-right: 8px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content strong {
    color: #007bff;
    font-size: 12px;
    display: block;
    margin-bottom: 0px;
}

.step-content small {
    color: #6c757d;
    font-size: 9px;
    line-height: 1.1;
}

.workflow-arrow {
    color: #007bff;
    font-size: 14px;
    font-weight: bold;
    margin: 1px 0;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

@media (max-width: 768px) {
    .workflow-step {
        min-width: 200px;
        padding: 5px 8px;
    }
    
    .step-number {
        width: 18px;
        height: 18px;
        font-size: 8px;
        margin-right: 6px;
    }
    
    .step-content strong {
        font-size: 10px;
    }
    
    .step-content small {
        font-size: 8px;
    }
}