.timeline-item {
    margin-bottom: 2rem;
    width: 100%;
}

.timeline-connector {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.timeline-dot {
    width: 1rem;
    height: 1rem;
    background: #3b82f6;
    border-radius: 50%;
    position: relative;
    z-index: 10;
}

.timeline-line {
    width: 2px;
    flex-grow: 1;
    background: rgba(59, 130, 246, 0.2);
    margin-top: -0.5rem;
}

.timeline-content {
    width: calc(50% - 2rem);
    background: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(16px);
    border-radius: 1rem;
    border: 1px solid rgba(75, 85, 99, 0.2);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.timeline-header {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(75, 85, 99, 0.2);
}

.timeline-date {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f3f4f6;
    margin-bottom: 0.25rem;
}

.timeline-count {
    font-size: 0.875rem;
    color: #9ca3af;
}

.timeline-files {
    padding: 1rem;
}

.timeline-file {
    display: flex;
    padding: 1rem;
    border-radius: 0.75rem;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.timeline-file:hover {
    background: rgba(75, 85, 99, 0.1);
}

.file-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 0.75rem;
    margin-right: 1rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.timeline-file:hover .file-icon {
    transform: scale(1.05);
    background: rgba(59, 130, 246, 0.2);
}

.file-icon i {
    font-size: 1.25rem;
    color: #3b82f6;
}

.file-content {
    flex: 1;
    min-width: 0;
}

.file-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.file-name {
    font-weight: 500;
    color: #f3f4f6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-status {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-read {
    background: rgba(75, 85, 99, 0.2);
    color: #9ca3af;
}

.status-unread {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.email-info {
    margin: 0.75rem 0;
    padding: 0.75rem;
    background: rgba(75, 85, 99, 0.05);
    border-radius: 0.5rem;
}

.email-meta {
    display: flex;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.email-meta:last-child {
    margin-bottom: 0;
}

.meta-label {
    width: 4rem;
    color: #9ca3af;
}

.meta-value {
    flex: 1;
    min-width: 0;
    color: #d1d5db;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
}

.file-meta {
    font-size: 0.875rem;
    color: #9ca3af;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-separator {
    color: #4b5563;
}

.file-actions {
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.timeline-file:hover .file-actions {
    opacity: 1;
}

.action-btn {
    padding: 0.5rem;
    border-radius: 0.5rem;
    color: #9ca3af;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    cursor: pointer;
}

.action-btn:hover {
    background: rgba(75, 85, 99, 0.2);
    color: #f3f4f6;
}

.action-btn.view-email:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.timeline-left {
    padding-right: 2rem;
}

.timeline-right {
    padding-left: 2rem;
}