/* Custom styles for Strategic Fit Canvas */

:root {
    --radar-primary: #0d6efd;
    --radar-secondary: #6c757d;
    --timeline-color: #495057;
}

body {
    background-color: var(--bs-body-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Navbar styling */
.navbar {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.5rem;
}

/* Card enhancements */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
}

.card-header {
    background: var(--bs-light);
    border-bottom: 1px solid var(--bs-border-color);
    font-weight: 600;
}

/* File input styling */
.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Button enhancements */
.btn-primary {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-info));
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Progress bars */
.progress {
    background-color: var(--bs-gray-200);
    border-radius: 10px;
}

.progress-bar {
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Timeline styling */
.timeline-item {
    position: relative;
    padding-left: 3rem;
}

.timeline-badge {
    position: absolute;
    left: 0;
    top: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
    color: white;
}

.timeline-content {
    background: var(--bs-gray-100);
    padding: 1rem;
    border-radius: 0.5rem;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid var(--bs-gray-100);
}

/* Insights content styling */
.insights-content {
    line-height: 1.6;
    font-size: 1rem;
}

/* Radar chart container */
#radarChart {
    max-height: 400px;
}

/* Loading animations */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.loading {
    animation: pulse 2s infinite;
}

/* Badge styling */
.badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

/* Weather icon styling */
.display-1 {
    font-size: 4rem;
    line-height: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .timeline-item {
        padding-left: 2rem;
    }
    
    .timeline-badge {
        width: 2rem;
        height: 2rem;
        font-size: 0.75rem;
    }
}

/* Alert styling */
.alert {
    border: none;
    border-radius: 0.5rem;
}

/* Footer */
.footer {
    margin-top: auto;
    border-top: 1px solid var(--bs-border-color);
}

/* Share modal enhancements */
.modal-content {
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Success states */
.btn-success {
    background: linear-gradient(135deg, var(--bs-success), #20c997);
}

/* Dark mode specific adjustments */
[data-bs-theme="dark"] .timeline-content {
    background: var(--bs-gray-800);
}

[data-bs-theme="dark"] .timeline-content::before {
    border-right-color: var(--bs-gray-800);
}

[data-bs-theme="dark"] .card-header {
    background: var(--bs-gray-800);
}
