.journey-container {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.journey-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 16px;
}

.journey-header h3 {
    margin: 0;
    color: #1a1a1a;
    font-size: 1.5rem;
}

.streak-badge {
    background: #fff9e6;
    border: 2px solid #ffc107;
    border-radius: 50px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.streak-icon {
    font-size: 1.2rem;
}

.streak-count {
    font-weight: 800;
    color: #ff9800;
    font-size: 1.2rem;
}

.streak-label {
    color: #666;
    font-size: 0.9rem;
}

.journey-streak-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

.streak-day {
    aspect-ratio: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    transition: all 0.3s ease;
    padding: 8px;
    text-align: center;
}

.day-label {
    font-size: 0.9rem;
    font-weight: 800;
    display: block;
}

.day-date {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 4px;
    display: block;
}

.streak-day.completed {
    background: #eefbee;
    border: 2px solid #4caf50;
    color: #2e7d32;
}

.streak-day.pending {
    background: #f8f8f8;
    border: 2px dashed #ddd;
    color: #999;
}

.streak-day.today {
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.4);
    transform: scale(1.05);
}

.journey-form textarea {
    width: 100%;
    min-height: 120px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    padding: 16px;
    font-size: 1rem;
    transition: border-color 0.3s;
    margin-top: 8px;
}

.journey-form textarea:focus {
    border-color: #4caf50;
    outline: none;
}

.journey-submit-btn {
    background: #4caf50;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    margin-top: 16px;
    font-size: 1.1rem;
    box-shadow: 0 4px 0 #388e3c;
    transition: all 0.1s;
}

.journey-submit-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #388e3c;
}

.journey-success-msg {
    text-align: center;
    padding: 20px;
    background: #f1f8e9;
    border-radius: 12px;
    color: #2e7d32;
    font-weight: 600;
}

/* Timeline */
.journey-results-container {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.journey-timeline {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid #e0e0e0;
    margin-top: 20px;
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -37px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: #4caf50;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #4caf50;
}

.timeline-date {
    font-weight: 800;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 4px;
}

.timeline-content {
    background: #f9f9f9;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #eee;
}

/* Results Table */
.journey-results-all {
    margin-top: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
}

.journey-table-responsive {
    overflow-x: auto;
}

.journey-results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.journey-results-table th {
    text-align: left;
    background: #f8f9fa;
    padding: 12px;
    border-bottom: 2px solid #eee;
    color: #666;
    font-size: 0.9rem;
}

.journey-results-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-cell img {
    border-radius: 50%;
}

.streak-mini {
    background: #fff9e6;
    color: #ff9800;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1px solid #ffe082;
}

.daily-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 300px;
}

.day-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    cursor: help;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.day-dot.done {
    background: #4caf50;
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.day-dot.missed {
    background: #e0e0e0;
}

.journey-results-table td:last-child {
    min-width: 150px;
}

/* Tooltip */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: pre-wrap;
    width: 200px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s;
    margin-bottom: 10px;
    pointer-events: none;
    line-height: 1.4;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

[data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s;
    margin-bottom: -2px;
    pointer-events: none;
}

[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}