/* Journey tab styling for student profiles */

.journey-container {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.journey-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.journey-header h2 {
    margin: 0;
    color: #333;
    font-size: 22px;
}

.journey-actions {
    display: flex;
    gap: 10px;
}

/* Timeline styling */
.journey-timeline {
    position: relative;
    padding-left: 30px;
}

.journey-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 8px;
    height: 100%;
    width: 3px;
    background-color: #eee;
    z-index: 1;
}

/* Milestone styling */
.milestone {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.milestone:last-child {
    border-bottom: none;
}

.milestone::before {
    content: '';
    position: absolute;
    top: 5px;
    left: -30px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #fff;
    border: 3px solid var(--secondary-color);
    z-index: 2;
}

.milestone.achieved::before {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.milestone.overdue::before {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

.milestone-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.milestone-header:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.toggle-icon {
    margin-right: 8px;
    transition: transform 0.2s ease;
    color: #666;
}

.milestone.collapsed .toggle-icon {
    transform: rotate(0deg);
}

.milestone.expanded .toggle-icon {
    transform: rotate(90deg);
}

.milestone-title {
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
}

.milestone-dates {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 14px;
}

.target-date,
.achieved-date {
    margin: 2px 0;
    color: #666;
}

.target-date span,
.achieved-date span {
    font-weight: 600;
}

.milestone-description {
    margin: 0 0 10px 0;
    color: #555;
    line-height: 1.5;
}

.milestone-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-top: 5px;
}

.status-pending {
    background-color: #f8f9fa;
    color: #6c757d;
}

.status-achieved {
    background-color: #d4edda;
    color: #155724;
}

.status-overdue {
    background-color: #f8d7da;
    color: #721c24;
}

.days-indicator {
    font-size: 14px;
    margin-top: 10px;
}

.days-remaining {
    color: #17a2b8;
}

.days-overdue {
    color: #dc3545;
}

.days-early {
    color: #28a745;
}

.days-late {
    color: #dc3545;
}

/* Guide actions */
.milestone-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: flex-end;
}

.mark-complete-btn {
    background-color: var(--success-color);
    color: white;
}

.edit-milestone-btn {
    background-color: var(--primary-color);
    color: white;
}

.delete-milestone-btn {
    background-color: var(--danger-color);
    color: white;
}

/* Comments section */
.milestone-comments {
    background-color: #f9f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.comments-header {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.comment {
    padding: 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.comment:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
}

.comment-author {
    font-weight: 600;
    color: #333;
}

.comment-date {
    color: #666;
    font-size: 12px;
}

.comment-text {
    color: #555;
    line-height: 1.5;
}

.add-comment-form {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.add-comment-form textarea {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    min-height: 60px;
}

.add-comment-form button {
    align-self: flex-end;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
}

/* Modal for adding/editing milestones */
.milestone-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.milestone-modal.active {
    display: flex;
}

.milestone-modal-content {
    width: 95%;
    max-width: 600px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 25px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    max-height: 80vh;
    overflow-y: auto;
}

.milestone-modal h2 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #333;
}

.milestone-form-group {
    margin-bottom: 15px;
}

.milestone-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.milestone-form-group input,
.milestone-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: inherit;
}

.milestone-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.milestone-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.milestone-form-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.milestone-form-actions .cancel-btn {
    background-color: var(--secondary-color);
    color: white;
}

.milestone-form-actions .save-btn {
    background-color: var(--primary-color);
    color: white;
}

/* Empty state */
.empty-journey {
    text-align: center;
    padding: 30px;
    color: #666;
}

.empty-journey p {
    margin-bottom: 20px;
}

.add-first-milestone {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .journey-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .milestone-header {
        flex-direction: column;
    }
    
    .milestone-dates {
        align-items: flex-start;
        margin-top: 10px;
    }
    
    .milestone-actions {
        flex-wrap: wrap;
    }
    
    .add-comment-form {
        flex-direction: column;
    }
    
    .add-comment-form button {
        align-self: flex-start;
    }
}

/* Add styles for collapsible milestones */
.milestone.collapsed .toggle-icon {
    transform: rotate(0deg);
}

.milestone.expanded .toggle-icon {
    transform: rotate(90deg);
}

/* Hide content when collapsed */
.milestone.collapsed .milestone-content {
    display: none;
}

.milestone.expanded .milestone-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
} 