/* Activity Section Styles */

.activity-list {
    margin-top: 1.5rem;
}

.activity-count {
    font-size: 0.8rem;
    font-weight: normal;
    color: #6c757d;
}

.activity-cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.activity-card {
    background: linear-gradient(135deg, #f0f8e8 0%, #f8ffe8 100%);
    border-radius: 8px;
    border-left: 4px solid #27ae60;
    border: 1px solid #c8e6c9;
    padding: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.activity-card.calendar-event {
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f8ff 100%);
    border-left: 4px solid #3498db;
    border: 1px solid #bee5eb;
}

.activity-card.calendar-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(52, 152, 219, 0.15);
    border-color: #3498db;
}

.activity-card.manual-event {
    background: linear-gradient(135deg, #f0f8e8 0%, #f8ffe8 100%);
    border-left: 4px solid #27ae60;
    border: 1px solid #c8e6c9;
}

.activity-card.manual-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(39, 174, 96, 0.15);
    border-color: #27ae60;
}

/* Card Corner Accent */
.calendar-event::after, .manual-event::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
}

.calendar-event::after {
    border-width: 0 10px 10px 0;
    border-color: transparent #3498db transparent transparent;
}

.manual-event::after {
    border-width: 0 10px 10px 0;
    border-color: transparent #27ae60 transparent transparent;
}

.activity-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.activity-info {
    flex: 1;
}

.activity-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.375rem;
}

.activity-title {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.activity-duration {
    background: #9b59b6;
    color: white;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-block;
}

.activity-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.activity-category {
    background: #f1c40f;
    color: white;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.location-badge {
    background: #3498db;
    color: white;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.non-billable-badge {
    background: #6c757d;
    color: white;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.activity-date-display {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.activity-date {
    font-size: 0.8rem;
    color: #6c757d;
    white-space: nowrap;
}

.activity-time {
    font-size: 0.8rem;
    color: #6c757d;
    white-space: nowrap;
}
    font-weight: 500;
}

/* ── Phase Milestone Cards ─────────────────────────────────────────────────── */

.phase-milestone-card {
    position: relative;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.phase-milestone-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

.phase-milestone-card.phase-start {
    background: linear-gradient(120deg, #0d9f6a 0%, #10b981 50%, #34d399 100%);
}

.phase-milestone-card.phase-end {
    background: linear-gradient(120deg, #c97b00 0%, #f59e0b 50%, #fbbf24 100%);
}

.phase-milestone-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.125rem 1.5rem;
    gap: 1rem;
}

.phase-milestone-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.phase-milestone-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

.phase-milestone-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.phase-milestone-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.phase-milestone-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.phase-milestone-date {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    text-align: right;
}

@media (max-width: 768px) {
    .phase-milestone-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .phase-milestone-date {
        text-align: left;
    }
}

/* ── End Phase Milestone Cards ──────────────────────────────────────────────── */

.show-more-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px dashed #e9ecef;
}

.show-more-btn {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
}

.show-more-btn:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

@media (max-width: 768px) {
    .activity-card {
        padding: 0.875rem;
    }
    
    .activity-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .activity-date-display {
        text-align: left;
        width: 100%;
    }
    
    .activity-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .activity-meta {
        gap: 0.5rem;
    }
}

/* Phase Stats Sections */
.phase-stats-section {
    margin-bottom: 2rem;
}

.phase-stats-section.phase-stats-completed {
    opacity: 0.6;
}

.phase-stats-section.phase-stats-completed .stat-card {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.phase-stats-section.phase-stats-completed .stat-number {
    color: #6c757d;
}

.phase-stats-header {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phase-stats-section.phase-stats-completed .phase-stats-header {
    color: #6c757d;
}

.phase-date-range {
    font-size: 0.875rem;
    font-weight: 400;
    color: #6c757d;
    margin-left: 0.5rem;
}
