/* BioMedGPS Timeline Styles for MkDocs */

/* Import Font Awesome only - Bootstrap styles will be scoped */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* Scoped Bootstrap-like utilities for timeline */
.timeline-container {
    /* Bootstrap-like box-sizing */
    box-sizing: border-box;
}

.timeline-container *,
.timeline-container *::before,
.timeline-container *::after {
    box-sizing: border-box;
}

/* Bootstrap-like display utilities */
.timeline-container .d-flex {
    display: flex !important;
}

.timeline-container .d-block {
    display: block !important;
}

.timeline-container .d-inline-block {
    display: inline-block !important;
}

.timeline-container .d-none {
    display: none !important;
}

/* Bootstrap-like flex utilities */
.timeline-container .align-items-center {
    align-items: center !important;
}

.timeline-container .justify-content-center {
    justify-content: center !important;
}

.timeline-container .flex-column {
    flex-direction: column !important;
}

/* Bootstrap-like spacing utilities */
.timeline-container .gap-2 {
    gap: 0.5rem !important;
}

.timeline-container .gap-3 {
    gap: 1rem !important;
}

.timeline-container .m-0 {
    margin: 0 !important;
}

.timeline-container .mb-0 {
    margin-bottom: 0 !important;
}

.timeline-container .mb-2 {
    margin-bottom: 0.5rem !important;
}

.timeline-container .mb-3 {
    margin-bottom: 1rem !important;
}

.timeline-container .mb-4 {
    margin-bottom: 1.5rem !important;
}

.timeline-container .p-0 {
    padding: 0 !important;
}

.timeline-container .p-3 {
    padding: 1rem !important;
}

.timeline-container .p-4 {
    padding: 1.5rem !important;
}

.timeline-container .px-3 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.timeline-container .py-2 {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.timeline-container .py-3 {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

/* Bootstrap-like text utilities */
.timeline-container .text-center {
    text-align: center !important;
}

.timeline-container .text-start {
    text-align: left !important;
}

.timeline-container .text-end {
    text-align: right !important;
}

.timeline-container .fw-bold {
    font-weight: 700 !important;
}

.timeline-container .fw-semibold {
    font-weight: 600 !important;
}

.timeline-container .fw-normal {
    font-weight: 400 !important;
}

/* Bootstrap-like border utilities */
.timeline-container .border {
    border: 1px solid #dee2e6 !important;
}

.timeline-container .border-0 {
    border: 0 !important;
}

.timeline-container .border-top {
    border-top: 1px solid #dee2e6 !important;
}

.timeline-container .border-bottom {
    border-bottom: 1px solid #dee2e6 !important;
}

.timeline-container .rounded {
    border-radius: 0.375rem !important;
}

.timeline-container .rounded-3 {
    border-radius: 0.5rem !important;
}

.timeline-container .rounded-circle {
    border-radius: 50% !important;
}

/* Bootstrap-like background utilities */
.timeline-container .bg-white {
    background-color: #fff !important;
}

.timeline-container .bg-transparent {
    background-color: transparent !important;
}

/* Bootstrap-like position utilities */
.timeline-container .position-relative {
    position: relative !important;
}

.timeline-container .position-absolute {
    position: absolute !important;
}

.timeline-container .top-0 {
    top: 0 !important;
}

.timeline-container .start-0 {
    left: 0 !important;
}

.timeline-container .end-0 {
    right: 0 !important;
}

/* Bootstrap-like overflow utilities */
.timeline-container .overflow-hidden {
    overflow: hidden !important;
}

/* Bootstrap-like shadow utilities */
.timeline-container .shadow {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.timeline-container .shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Bootstrap-like transition utilities */
.timeline-container .transition {
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

/* Timeline Container */
.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 20px;
}

/* Timeline Header */
.timeline-container .timeline-header {
    text-align: center;
    margin-bottom: 30px;
}

.timeline-container .timeline-header h1 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.timeline-container .timeline-header p {
    font-size: 1rem;
    color: #7f8c8d;
    margin-bottom: 0;
}

/* Timeline Line */
.timeline-container .timeline {
    position: relative;
    padding: 0;
}

.timeline-container .timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57);
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Timeline Items */
.timeline-container .timeline-item {
    position: relative;
    margin: 0;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.timeline-container .timeline-item:nth-child(1) {
    animation-delay: 0.2s;
}

.timeline-container .timeline-item:nth-child(2) {
    animation-delay: 0.4s;
}

.timeline-container .timeline-item:nth-child(3) {
    animation-delay: 0.6s;
}

.timeline-container .timeline-item:nth-child(4) {
    animation-delay: 0.8s;
}

.timeline-container .timeline-item:nth-child(5) {
    animation-delay: 1.0s;
}

.timeline-container .timeline-item:nth-child(odd) {
    padding-right: 50%;
    text-align: right;
}

.timeline-container .timeline-item:nth-child(even) {
    padding-left: 50%;
    text-align: left;
}

/* Timeline Markers */
.timeline-container .timeline-marker {
    position: absolute;
    top: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    border: 4px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.timeline-container .timeline-item:nth-child(odd) .timeline-marker {
    right: calc(50% - 30px);
}

.timeline-container .timeline-item:nth-child(even) .timeline-marker {
    left: calc(50% - 30px);
}

.timeline-container .timeline-marker.step-1 {
    border-color: #ff6b6b;
    background: #ff6b6b;
}

.timeline-container .timeline-marker.step-2 {
    border-color: #4ecdc4;
    background: #4ecdc4;
}

.timeline-container .timeline-marker.step-3 {
    border-color: #45b7d1;
    background: #45b7d1;
}

.timeline-container .timeline-marker.step-4 {
    border-color: #96ceb4;
    background: #96ceb4;
}

.timeline-container .timeline-marker.step-5 {
    border-color: #feca57;
    background: #feca57;
}

/* Timeline Cards */
.timeline-container .timeline-card {
    background: white;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    margin-bottom: 20px;
}

.timeline-container .timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.timeline-container .timeline-item:nth-child(odd) .timeline-card {
    margin-right: 40px;
}

.timeline-container .timeline-item:nth-child(even) .timeline-card {
    margin-left: 40px;
}

/* Card Headers */
.timeline-container .card-header {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: white;
    padding: 20px;
    border: none;
    margin-bottom: 0;
    display: block;
    align-items: center;
}

.timeline-container .card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0;
}

.timeline-container .card-subtitle {
    opacity: 0.9;
    font-size: 0.8rem;
    margin-bottom: 0;
    margin-top: 0;
}

/* Image Placeholders */
.timeline-container .image-placeholder {
    height: 300px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.1rem;
    border-bottom: 1px solid #e9ecef;
    flex-direction: column;
}

.timeline-container .image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: white;
}

.timeline-container .image-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.3;
}

/* Card Body */
.timeline-container .card-body {
    padding: 16px;
}

.timeline-container .card-text {
    color: #6c757d;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Button Styling */
.timeline-container .btn-group {
    gap: 10px;
}

.timeline-container .btn {
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.timeline-container .btn-primary {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    border: none;
    color: white;
}

.timeline-container .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.4);
    color: white;
}

.timeline-container .btn-outline-secondary {
    border: 2px solid #6c757d;
    color: #6c757d;
    background: transparent;
}

.timeline-container .btn-outline-secondary:hover {
    background: #6c757d;
    color: white;
    transform: translateY(-2px);
}

/* Step Numbers */
.timeline-container .step-number {
    position: absolute;
    top: 10px;
    background: #ff6b6b;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
}

.timeline-container .step-number.step-1 {
    left: 10px;
}

.timeline-container .step-number.step-2 {
    background: #4ecdc4;
    box-shadow: 0 2px 10px rgba(78, 205, 196, 0.3);
    right: 20px;
}

.timeline-container .step-number.step-3 {
    background: #45b7d1;
    box-shadow: 0 2px 10px rgba(69, 183, 209, 0.3);
    left: 10px;
}

.timeline-container .step-number.step-4 {
    background: #96ceb4;
    box-shadow: 0 2px 10px rgba(150, 206, 180, 0.3);
    right: 20px;
}

.timeline-container .step-number.step-5 {
    background: #feca57;
    box-shadow: 0 2px 10px rgba(254, 202, 87, 0.3);
    left: 10px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .timeline-container .timeline::before {
        left: 30px;
    }

    .timeline-container .timeline-item {
        padding-left: 80px !important;
        padding-right: 20px !important;
        text-align: left !important;
    }

    .timeline-container .timeline-marker {
        left: 0 !important;
        right: auto !important;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .timeline-container .timeline-card {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .timeline-container .timeline-header h1 {
        font-size: 2rem;
    }

    .timeline-container .timeline-header p {
        font-size: 1rem;
    }
}