/* Activity Timeline Styles */

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s ease-out;
}

.timeline-item.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.timeline-marker {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.timeline-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 3px solid #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 2;
    transition: all 0.3s ease;
}

body.dark-mode .timeline-icon {
    background: #2d2d2d;
    border-color: #3498db;
}

.timeline-item:hover .timeline-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Type-specific colors */
.timeline-item.meeting .timeline-icon {
    border-color: #3498db;
}

.timeline-item.document .timeline-icon {
    border-color: #2ecc71;
}

.timeline-item.court .timeline-icon {
    border-color: #e74c3c;
}

.timeline-item.status .timeline-icon {
    border-color: #f39c12;
}

.timeline-item.invoice .timeline-icon {
    border-color: #9b59b6;
}

.timeline-item.created .timeline-icon {
    border-color: #1abc9c;
}

.timeline-line {
    width: 3px;
    flex: 1;
    background: linear-gradient(to bottom, #3498db, transparent);
    margin-top: 5px;
}

body.dark-mode .timeline-line {
    background: linear-gradient(to bottom, #3498db, rgba(52, 152, 219, 0.1));
}

.timeline-content {
    flex: 1;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

body.dark-mode .timeline-content {
    background: #2d2d2d;
    border-color: #404040;
}

.timeline-content:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

body.dark-mode .timeline-content:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 15px;
}

.timeline-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

body.dark-mode .timeline-title {
    color: #e0e0e0;
}

.timeline-date {
    font-size: 13px;
    color: #999;
    white-space: nowrap;
}

.timeline-description {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

body.dark-mode .timeline-description {
    color: #b0b0b0;
}

.timeline-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

body.dark-mode .timeline-footer {
    border-top-color: #404040;
}

.timeline-user {
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

.timeline-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 16px;
}

.timeline-empty::before {
    content: '📋';
    display: block;
    font-size: 48px;
    margin-bottom: 15px;
}

/* Timeline filters */
.timeline-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.timeline-filter-btn {
    background: #f5f5f5;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.timeline-filter-btn:hover,
.timeline-filter-btn.active {
    background: #3498db;
    color: white;
}

body.dark-mode .timeline-filter-btn {
    background: #404040;
    color: #e0e0e0;
}

body.dark-mode .timeline-filter-btn:hover,
body.dark-mode .timeline-filter-btn.active {
    background: #3498db;
}

/* Timeline header */
.timeline-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

body.dark-mode .timeline-section-header {
    border-bottom-color: #404040;
}

.timeline-section-header h3 {
    margin: 0;
    font-size: 20px;
    color: #2c3e50;
}

body.dark-mode .timeline-section-header h3 {
    color: #e0e0e0;
}

/* Compact timeline (for smaller spaces) */
.timeline-compact .timeline-item {
    margin-bottom: 20px;
}

.timeline-compact .timeline-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
}

.timeline-compact .timeline-content {
    padding: 15px;
}

.timeline-compact .timeline-title {
    font-size: 14px;
}

.timeline-compact .timeline-description {
    font-size: 13px;
    margin-bottom: 10px;
}

/* Responsive design */
@media (max-width: 768px) {
    .timeline-item {
        gap: 15px;
    }

    .timeline-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .timeline-content {
        padding: 15px;
    }

    .timeline-header {
        flex-direction: column;
        gap: 8px;
    }

    .timeline-title {
        font-size: 15px;
    }

    .timeline-description {
        font-size: 13px;
    }

    .timeline-filters {
        gap: 8px;
    }

    .timeline-filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Print styles for timeline */
@media print {
    .timeline-filters {
        display: none;
    }

    .timeline-item {
        page-break-inside: avoid;
        opacity: 1 !important;
        transform: none !important;
    }

    .timeline-content:hover {
        box-shadow: none;
        transform: none;
    }
}

