.schedule-timeline {
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-left: 2px solid #e0e0e0;
    padding-left: 15px;
}

.time-slot {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    border-radius: 8px;
    background-color: #f0f9ff;
    border: 1px solid #cce7ff;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.time-slot .time {
    flex-shrink: 0;
    width: 80px;
    font-weight: bold;
    color: #0056b3;
}

.time-slot .activity {
    flex-grow: 1;
    margin-right: 10px;
}

.time-slot .actions {
    flex-shrink: 0;
}

.time-slot::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: #007bff;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 2px #007bff;
}

.time-slot.work {
    background-color: #e6ffe6;
    border-color: #a3e6a3;
}

.time-slot.work::before {
    background-color: #28a745;
    box-shadow: 0 0 0 2px #28a745;
}

.time-slot.break {
    background-color: #fff8e6;
    border-color: #ffe0b3;
}

.time-slot.break::before {
    background-color: #ffc107;
    box-shadow: 0 0 0 2px #ffc107;
}

.time-slot.busy {
    background-color: #ffe6e6;
    border-color: #ffb3b3;
}

.time-slot.busy::before {
    background-color: #dc3545;
    box-shadow: 0 0 0 2px #dc3545;
}

.time-slot .actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9em;
    margin-left: 10px;
    color: #007bff;
}

.time-slot .actions button:hover {
    text-decoration: underline;
}

.add-slot-form {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.form-input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-input-activity {
    flex-grow: 1;
}

.form-btn {
    padding: 8px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Responsive styles */
@media (max-width: 768px) {
    .time-slot {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
    }
    
    .time-slot .time {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .time-slot .activity {
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .time-slot .actions {
        width: 100%;
        display: flex;
        justify-content: flex-end;
    }
    
    .add-slot-form {
        flex-direction: column;
        gap: 8px;
    }
    
    .form-input, .form-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .schedule-timeline {
        padding-left: 12px;
    }
    
    .time-slot::before {
        left: -18px;
        width: 8px;
        height: 8px;
    }
    
    .time-slot .actions button {
        font-size: 0.8em;
        padding: 4px 8px;
    }
}