/* Progress and Loading Styles */

.loading {
    background: white;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    text-align: center;
    margin: 1rem 0;
}

.progress-container {
    max-width: 600px;
    margin: 0 auto;
}

#progressTitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.4rem;
}

#progressMessage {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .progress-steps {
        flex-direction: column;
        gap: 1rem;
    }
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 80px;
    position: relative;
}

.step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.8rem;
    text-align: center;
    font-weight: 500;
    line-height: 1.2;
}

/* Step states */
.progress-step.pending .step-icon {
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    color: #6c757d;
}

.progress-step.pending .step-label {
    color: #6c757d;
}

.progress-step.active .step-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 2px solid #667eea;
    color: white;
    animation: pulse 2s infinite;
}

.progress-step.active .step-label {
    color: #667eea;
    font-weight: 600;
}

.progress-step.completed .step-icon {
    background: #28a745;
    border: 2px solid #28a745;
    color: white;
}

.progress-step.completed .step-label {
    color: #28a745;
    font-weight: 600;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

/* Connect steps with lines */
.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 16px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #dee2e6;
    z-index: -1;
}

@media (max-width: 768px) {
    .progress-step:not(:last-child)::after {
        display: none;
    }
}

.progress-step.completed:not(:last-child)::after {
    background: #28a745;
}

.progress-step.active:not(:last-child)::after {
    background: linear-gradient(90deg, #667eea 50%, #dee2e6 50%);
}

/* Form styling */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

.form-grid label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-grid input,
.form-grid select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease;
}

.form-grid input:focus,
.form-grid select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Simple Form Styling */
.simple-form input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.simple-form select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#loadRepos:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Advanced Options Styling */
#advancedOptions[open] summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

#advancedOptions[open] summary .material-icons {
    color: white;
}

#advancedOptions[open] summary span:last-child {
    color: rgba(255, 255, 255, 0.8);
}

#advancedOptions summary:hover {
    background: #f1f3f4;
}

#advancedOptions[open] summary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b3fa2 100%);
}

/* Enhanced Analysis Button */
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b3fa2 100%);
}

/* Repository banner styling */
#repoBanner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

#repoBanner button {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

#repoBanner button:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}

/* Card styling improvements */
.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 1rem;
    overflow: hidden;
}

.card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.card-body {
    padding: 1.25rem;
}

/* Built With Section */
.built-with-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.tech-card {
    background: white;
    border-radius: 8px;
    padding: 1rem 0.75rem;
    text-align: center;
    border: 2px solid #f1f3f4;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tech-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.tech-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

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

.tech-count {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
}

/* Built With Section Header */
#builtWithContent h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Summary Grid Styling */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.summary-item {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 2px solid #f1f3f4;
    transition: all 0.3s ease;
}

.summary-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.summary-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.summary-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Button styling */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #5a6268;
}