/* Roadmap Pro Addon Styles */

/* Pro Features Badge */
.roadmap-pro-enabled {
    position: relative;
}

.roadmap-pro-badge {
    display: inline-block;
    background: #f0b849;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
}

/* Timeline View - Only apply when using legacy timeline (not Vue component) */
.roadmap-template-timeline.legacy-timeline .roadmap-timeline {
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-top: 20px;
}

.roadmap-template-timeline.legacy-timeline .roadmap-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Advanced Drag and Drop */
.roadmap-item-ghost {
    opacity: 0.4;
    background: #f0f0f0;
    border: 2px dashed #ccc;
}

.roadmap-item-drag {
    cursor: grabbing !important;
    transform: rotate(2deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
}

.roadmap-item-dragging {
    opacity: 0.5;
    cursor: move;
}

.roadmap-board-column.drag-over,
.roadmap-board-items.sortable-drag-over {
    background-color: rgba(34, 113, 177, 0.1);
    border: 2px dashed #2271b1;
}

.roadmap-board-items.sortable-initialized {
    min-height: 100px;
    transition: background-color 0.3s, border 0.3s;
}

/* Multi-product Selector */
.roadmap-product-selector {
    margin-bottom: 20px;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Analytics Dashboard */
.roadmap-analytics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.roadmap-analytics-card {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.roadmap-analytics-number {
    font-size: 32px;
    font-weight: bold;
    color: #2271b1;
    margin: 10px 0;
}

/* Export Button */
.roadmap-export-btn {
    position: absolute;
    top: 20px;
    right: 20px;
}

/* Filter Presets */
.roadmap-filter-presets {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.roadmap-filter-preset {
    padding: 5px 12px;
    background: #e0e0e0;
    border-radius: 15px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.roadmap-filter-preset:hover {
    background: #2271b1;
    color: white;
}

.roadmap-filter-preset.active {
    background: #2271b1;
    color: white;
}

/* Progress Bar */
.roadmap-progress {
    margin-top: 10px;
}

.roadmap-progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.roadmap-progress-fill {
    height: 100%;
    background: #4caf50;
    transition: width 0.3s ease;
}

/* Assignee Avatar */
.roadmap-assignee {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

.roadmap-assignee-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* Timeline/Gantt Chart Styles - Only apply when using legacy timeline (not Vue component) */
.roadmap-template-timeline.legacy-timeline .roadmap-timeline-container {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.roadmap-template-timeline.legacy-timeline .roadmap-timeline-grid {
    display: flex;
    height: 600px;
    overflow: hidden;
}

.roadmap-template-timeline.legacy-timeline .roadmap-timeline-sidebar {
    width: 250px;
    border-right: 1px solid #ddd;
    overflow-y: auto;
    background: #f9f9f9;
}

.roadmap-template-timeline.legacy-timeline .roadmap-timeline-item {
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.roadmap-template-timeline.legacy-timeline .roadmap-timeline-item-title {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.roadmap-template-timeline.legacy-timeline .roadmap-timeline-item-assignee {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #666;
}

.roadmap-template-timeline.legacy-timeline .roadmap-timeline-item-assignee img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.roadmap-template-timeline.legacy-timeline .roadmap-timeline-chart {
    flex: 1;
    overflow: auto;
    position: relative;
}

.roadmap-template-timeline.legacy-timeline .roadmap-timeline-chart-header {
    display: flex;
    background: #f0f0f0;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 10;
}

.roadmap-template-timeline.legacy-timeline .roadmap-timeline-date-header {
    flex: 1;
    padding: 10px 5px;
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    border-right: 1px solid #e0e0e0;
    white-space: nowrap;
}

.roadmap-template-timeline.legacy-timeline .roadmap-timeline-chart-body {
    position: relative;
    min-height: 400px;
}

.roadmap-template-timeline.legacy-timeline .roadmap-timeline-bar {
    position: absolute;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1;
}

.roadmap-template-timeline.legacy-timeline .roadmap-timeline-bar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.roadmap-template-timeline.legacy-timeline .roadmap-timeline-bar-content {
    padding: 5px 10px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.roadmap-template-timeline.legacy-timeline .roadmap-timeline-bar-title {
    font-size: 12px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.roadmap-template-timeline.legacy-timeline .roadmap-timeline-bar-progress {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    margin-left: 10px;
}

.roadmap-template-timeline.legacy-timeline .roadmap-timeline-bar-progress-fill {
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    transition: width 0.3s;
}

/* Timeline bar status colors - Only apply when timeline template is active */
.roadmap-template-timeline.legacy-timeline .roadmap-timeline-bar-planned {
    background: #6c757d;
}

.roadmap-template-timeline.legacy-timeline .roadmap-timeline-bar-in-progress {
    background: #0073aa;
}

.roadmap-template-timeline.legacy-timeline .roadmap-timeline-bar-completed {
    background: #46b450;
}

.roadmap-template-timeline.legacy-timeline .roadmap-timeline-bar-cancelled {
    background: #dc3232;
}

.roadmap-template-timeline.legacy-timeline .roadmap-timeline-bar-under-review {
    background: #f0b849;
}

.roadmap-template-timeline.legacy-timeline .roadmap-timeline-bar-default {
    background: #999;
}

/* Timeline navigation */
.roadmap-template-timeline.legacy-timeline .roadmap-timeline-navigation {
    display: flex;
    align-items: center;
    gap: 15px;
}

.roadmap-template-timeline.legacy-timeline .roadmap-timeline-current-date {
    font-weight: 500;
    font-size: 14px;
    min-width: 200px;
    text-align: center;
}

/* Timeline view selector */
.roadmap-template-timeline.legacy-timeline .roadmap-timeline-view-selector {
    display: flex;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
}

.roadmap-template-timeline.legacy-timeline .roadmap-timeline-view-selector button {
    background: transparent;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
}

.roadmap-template-timeline.legacy-timeline .roadmap-timeline-view-selector button:hover {
    background: rgba(34, 113, 177, 0.1);
}

.roadmap-template-timeline.legacy-timeline .roadmap-timeline-view-selector button.active {
    background: #2271b1;
    color: white;
}

/* Timeline dependencies (SVG overlay) */
.roadmap-template-timeline.legacy-timeline .roadmap-timeline-dependencies {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Responsive Timeline - Only apply when using legacy timeline */
@media (max-width: 1024px) {
    .roadmap-template-timeline.legacy-timeline .roadmap-timeline-sidebar {
        width: 200px;
    }
}

@media (max-width: 768px) {
    .roadmap-template-timeline.legacy-timeline .roadmap-timeline-grid {
        flex-direction: column;
        height: auto;
    }
    
    .roadmap-template-timeline.legacy-timeline .roadmap-timeline-sidebar {
        width: 100%;
        max-height: 200px;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }
    
    .roadmap-template-timeline.legacy-timeline .roadmap-timeline-chart {
        height: 400px;
    }
}