/* Activity Page Styles */
.activity-list {
    min-height: 300px;
    padding: 1rem 0;
}

/* Page Header Enhancements */
#activity-page .page-header {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

#activity-page .page-header p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

#activity-page .page-header small {
    display: block;
    margin-top: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Passage Item Styles */
.passage-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 2rem;
    margin: 0.5rem 1.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #dee2e6;
    transition: all 0.2s ease;
}

.passage-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

.passage-item[data-mmsi] {
    cursor: pointer;
}

.passage-item[data-mmsi]:focus {
    outline: 3px solid rgba(52, 152, 219, 0.45);
    outline-offset: 2px;
}

.passage-time {
    flex: 2;
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.passage-vessel {
    flex: 1.5;
    font-weight: 600;
    color: #212529;
    margin: 0 1rem;
}

.passage-vessel.passenger-vessel {
    color: #e67e22;
    font-weight: 700;
}

.passage-vessel.commercial-vessel {
    color: #2c3e50;
}

.passage-direction {
    flex: 0.5;
    text-align: right;
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
    text-transform: capitalize;
}

/* Month Picker Modal Styles */
.month-picker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.month-picker-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.month-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #dee2e6;
    background: #f8f9fa;
}

.month-picker-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.month-picker-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.month-picker-close:hover {
    background: #e9ecef;
    color: #495057;
}

.month-picker-content {
    padding: 2rem;
    text-align: center;
}

.month-picker-content label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: #495057;
    font-size: 1.1rem;
}

.month-select {
    padding: 0.75rem 1rem;
    border: 2px solid #ced4da;
    border-radius: 6px;
    background: white;
    font-size: 1rem;
    color: #495057;
    width: 100%;
    max-width: 300px;
    cursor: pointer;
    margin-bottom: 2rem;
}

.month-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.month-picker-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.month-submit-btn, .month-cancel-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.month-submit-btn {
    background: #3498db;
    color: white;
}

.month-submit-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.month-cancel-btn {
    background: #6c757d;
    color: white;
}

.month-cancel-btn:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.month-submit-btn:active, .month-cancel-btn:active {
    transform: translateY(0);
}

/* Loading and Error States */
.loading, .error, .placeholder {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
    font-style: italic;
}

.error {
    color: #e74c3c;
    background: #fdf2f2;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
}

.loading {
    background: #f8f9fa;
    border-radius: 6px;
}

/* Activity Header */
#activity-date-label {
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 1.5rem 0;
    text-align: center;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .passage-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }
    
    .passage-time {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }
    
    .passage-vessel {
        font-size: 1.1rem;
        margin: 0.25rem 0;
    }
    
    .passage-direction {
        font-size: 0.9rem;
        text-align: left;
        color: #6c757d;
    }
    
    .month-picker {
        padding: 1.5rem 1rem;
    }
    
    .month-select {
        width: 100%;
        margin: 0 0 1rem 0;
        min-width: auto;
    }
    
    #activity-date-label {
        font-size: 1.2rem;
    }
}


