/**
 * Five Diamonds Innovation Workshop Styles
 * Part of BPRboard - Business Process Reengineering Dashboard
 * Follows Catppuccin dark theme
 * NO EMOJIS | NO ICONS | NO GRADIENTS | NO IMAGES
 */

/* Main Workspace Container */
.five-diamonds-workspace {
    display: flex;
    height: 100%;
    background: var(--bg-primary, #1e1e2e);
    color: var(--text-primary, #cdd6f4);
}

/* Left Navigation Sidebar */
.diamond-nav {
    width: 280px;
    background: rgba(30, 30, 46, 0.95);
    border-right: 1px solid var(--border-color, #313244);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.diamond-nav-header {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-color, #313244);
}

.diamond-nav-header h3 {
    margin: 0 0 8px 0;
    color: var(--primary-color, #89b4fa);
    font-size: 1.1em;
    font-weight: 600;
}

.nav-subtitle {
    margin: 0;
    font-size: 0.85em;
    color: var(--text-secondary, #a6adc8);
}

.diamond-nav-list {
    flex: 1;
    padding: 12px 0;
}

.diamond-nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: transparent;
    border: none;
    border-left: 3px solid transparent;
    color: var(--text-primary, #cdd6f4);
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    position: relative;
}

.diamond-nav-item:hover {
    background: rgba(137, 180, 250, 0.1);
    border-left-color: var(--primary-color, #89b4fa);
}

.diamond-nav-item.active {
    background: rgba(137, 180, 250, 0.15);
    border-left-color: var(--primary-color, #89b4fa);
    color: var(--primary-color, #89b4fa);
    font-weight: 600;
}

.diamond-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(137, 180, 250, 0.2);
    border-radius: 50%;
    font-size: 0.9em;
    font-weight: bold;
    color: var(--primary-color, #89b4fa);
    flex-shrink: 0;
}

.diamond-nav-item.active .diamond-number {
    background: var(--primary-color, #89b4fa);
    color: #1e1e2e;
}

.diamond-name {
    flex: 1;
}

.progress-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--green, #a6e3a1);
    transition: width 0.3s ease;
}

.diamond-nav-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color, #313244);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-action-btn {
    width: 100%;
    padding: 10px 16px;
    background: rgba(137, 180, 250, 0.1);
    border: 1px solid var(--primary-color, #89b4fa);
    border-radius: 8px;
    color: var(--primary-color, #89b4fa);
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-action-btn:hover {
    background: var(--primary-color, #89b4fa);
    color: #1e1e2e;
}

/* Main Content Area */
.diamond-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.diamond-workspace {
    max-width: 1200px;
    margin: 0 auto;
}

.diamond-header {
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color, #313244);
}

.diamond-header h2 {
    margin: 0 0 8px 0;
    color: var(--primary-color, #89b4fa);
    font-size: 1.8em;
}

.diamond-header p {
    margin: 0;
    color: var(--text-secondary, #a6adc8);
    font-size: 1em;
}

/* Purpose Diamond Styles */
.purpose-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.purpose-section {
    padding: 24px;
    background: rgba(30, 30, 46, 0.6);
    border: 1px solid var(--border-color, #313244);
    border-radius: 12px;
}

.purpose-section h3 {
    margin: 0 0 12px 0;
    color: var(--text-primary, #cdd6f4);
    font-size: 1.2em;
}

.hint {
    margin: 0 0 16px 0;
    color: var(--text-secondary, #a6adc8);
    font-size: 0.9em;
}

.purpose-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 16px;
    background: rgba(49, 50, 68, 0.6);
    border: 1px solid var(--border-color, #313244);
    border-radius: 8px;
    color: var(--text-primary, #cdd6f4);
    font-family: inherit;
    font-size: 0.95em;
    line-height: 1.6;
    resize: vertical;
    margin-bottom: 16px;
}

.purpose-textarea:focus {
    outline: none;
    border-color: var(--primary-color, #89b4fa);
    box-shadow: 0 0 0 2px rgba(137, 180, 250, 0.2);
}

.boundary-input-group,
.stakeholder-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.boundary-input,
.stakeholder-input {
    flex: 1;
    padding: 10px 16px;
    background: rgba(49, 50, 68, 0.6);
    border: 1px solid var(--border-color, #313244);
    border-radius: 8px;
    color: var(--text-primary, #cdd6f4);
    font-size: 0.95em;
}

.boundary-input:focus,
.stakeholder-input:focus {
    outline: none;
    border-color: var(--primary-color, #89b4fa);
    box-shadow: 0 0 0 2px rgba(137, 180, 250, 0.2);
}

.boundaries-list,
.stakeholders-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.boundary-item,
.stakeholder-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(49, 50, 68, 0.4);
    border: 1px solid var(--border-color, #313244);
    border-radius: 8px;
}

.boundary-text,
.stakeholder-text {
    flex: 1;
    color: var(--text-primary, #cdd6f4);
}

.remove-boundary-btn,
.remove-stakeholder-btn {
    padding: 6px 12px;
    background: rgba(243, 139, 168, 0.2);
    border: 1px solid var(--red, #f38ba8);
    border-radius: 6px;
    color: var(--red, #f38ba8);
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remove-boundary-btn:hover,
.remove-stakeholder-btn:hover {
    background: var(--red, #f38ba8);
    color: #1e1e2e;
}

.empty-hint {
    color: var(--text-secondary, #a6adc8);
    font-style: italic;
    font-size: 0.9em;
    padding: 16px;
    text-align: center;
}

/* Action Buttons */
.action-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn.primary {
    background: var(--primary-color, #89b4fa);
    color: #1e1e2e;
}

.action-btn.primary:hover {
    background: #7aa2f7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(137, 180, 250, 0.3);
}

.action-btn.secondary {
    background: rgba(137, 180, 250, 0.1);
    border: 1px solid var(--primary-color, #89b4fa);
    color: var(--primary-color, #89b4fa);
}

.action-btn.secondary:hover {
    background: rgba(137, 180, 250, 0.2);
}

/* Business & Technology Diamond Styles */
.business-content,
.technology-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.trend-categories,
.tech-categories {
    padding: 24px;
    background: rgba(30, 30, 46, 0.6);
    border: 1px solid var(--border-color, #313244);
    border-radius: 12px;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.category-tab {
    padding: 8px 16px;
    background: rgba(49, 50, 68, 0.6);
    border: 1px solid var(--border-color, #313244);
    border-radius: 8px;
    color: var(--text-primary, #cdd6f4);
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-tab:hover {
    background: rgba(137, 180, 250, 0.1);
    border-color: var(--primary-color, #89b4fa);
}

.category-count {
    padding: 2px 8px;
    background: rgba(137, 180, 250, 0.2);
    border-radius: 12px;
    font-size: 0.85em;
    color: var(--primary-color, #89b4fa);
}

.trends-container,
.tech-container {
    min-height: 200px;
}

.selected-trends-section,
.selected-tech-section {
    padding: 24px;
    background: rgba(30, 30, 46, 0.6);
    border: 1px solid var(--border-color, #313244);
    border-radius: 12px;
}

.selected-trends-section h3,
.selected-tech-section h3 {
    margin: 0 0 20px 0;
    color: var(--text-primary, #cdd6f4);
    font-size: 1.2em;
}

.selected-trends-list,
.selected-tech-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 16px;
}

.trend-card,
.tech-card {
    padding: 20px;
    background: rgba(49, 50, 68, 0.4);
    border: 1px solid var(--border-color, #313244);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.trend-card:hover,
.tech-card:hover {
    border-color: var(--primary-color, #89b4fa);
    transform: translateY(-2px);
}

.trend-card.selected,
.tech-card.selected {
    border-color: var(--green, #a6e3a1);
    background: rgba(166, 227, 161, 0.05);
}

.trend-header,
.tech-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.trend-header h4,
.tech-header h4 {
    margin: 0;
    color: var(--text-primary, #cdd6f4);
    font-size: 1.05em;
}

.trend-impact {
    color: var(--yellow, #f9e2af);
    font-size: 0.85em;
}

.tech-maturity {
    padding: 4px 10px;
    background: rgba(137, 180, 250, 0.2);
    border-radius: 6px;
    color: var(--primary-color, #89b4fa);
    font-size: 0.8em;
    white-space: nowrap;
}

.trend-description,
.tech-description {
    margin: 12px 0;
    color: var(--text-secondary, #a6adc8);
    font-size: 0.9em;
    line-height: 1.5;
}

.trend-meta,
.tech-meta {
    display: flex;
    gap: 12px;
    margin: 12px 0;
    font-size: 0.85em;
}

.trend-category,
.tech-category {
    padding: 4px 10px;
    background: rgba(203, 166, 247, 0.2);
    border-radius: 6px;
    color: var(--mauve, #cba6f7);
}

.trend-horizon,
.tech-gartner {
    padding: 4px 10px;
    background: rgba(166, 227, 161, 0.2);
    border-radius: 6px;
    color: var(--green, #a6e3a1);
}

.trend-examples,
.tech-applications {
    margin: 12px 0;
    padding: 12px;
    background: rgba(30, 30, 46, 0.6);
    border-radius: 6px;
    font-size: 0.85em;
    color: var(--text-secondary, #a6adc8);
}

.trend-action-btn,
.tech-action-btn {
    width: 100%;
    margin-top: 12px;
    padding: 8px 16px;
    background: rgba(137, 180, 250, 0.1);
    border: 1px solid var(--primary-color, #89b4fa);
    border-radius: 6px;
    color: var(--primary-color, #89b4fa);
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.trend-action-btn:hover,
.tech-action-btn:hover {
    background: rgba(137, 180, 250, 0.2);
}

.trend-action-btn.remove,
.tech-action-btn.remove {
    background: rgba(243, 139, 168, 0.1);
    border-color: var(--red, #f38ba8);
    color: var(--red, #f38ba8);
}

.trend-action-btn.remove:hover,
.tech-action-btn.remove:hover {
    background: rgba(243, 139, 168, 0.2);
}

/* Integration Diamond Styles */
.integration-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.integration-prerequisites {
    padding: 40px;
    text-align: center;
    background: rgba(30, 30, 46, 0.6);
    border: 1px solid var(--border-color, #313244);
    border-radius: 12px;
}

.integration-prerequisites h3 {
    margin: 0 0 16px 0;
    color: var(--yellow, #f9e2af);
}

.integration-prerequisites ul {
    margin: 20px 0 0 0;
    padding: 0 0 0 20px;
    text-align: left;
    display: inline-block;
}

.integration-prerequisites li {
    margin: 8px 0;
    color: var(--text-secondary, #a6adc8);
}

.opportunity-section,
.opportunities-section {
    padding: 24px;
    background: rgba(30, 30, 46, 0.6);
    border: 1px solid var(--border-color, #313244);
    border-radius: 12px;
}

.opportunity-section h3,
.opportunities-section h3 {
    margin: 0 0 16px 0;
    color: var(--text-primary, #cdd6f4);
    font-size: 1.2em;
}

.opportunity-matrix {
    overflow-x: auto;
    margin-top: 20px;
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.matrix-table th,
.matrix-table td {
    padding: 12px;
    border: 1px solid var(--border-color, #313244);
    text-align: center;
}

.matrix-table th {
    background: rgba(49, 50, 68, 0.6);
    color: var(--primary-color, #89b4fa);
    font-weight: 600;
}

.matrix-table td {
    background: rgba(30, 30, 46, 0.4);
}

.matrix-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.matrix-cell {
    padding: 6px 12px;
    background: rgba(137, 180, 250, 0.1);
    border: 1px solid var(--primary-color, #89b4fa);
    border-radius: 6px;
    color: var(--primary-color, #89b4fa);
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.matrix-cell:hover {
    background: var(--primary-color, #89b4fa);
    color: #1e1e2e;
}

.opportunities-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.opportunity-card {
    padding: 20px;
    background: rgba(49, 50, 68, 0.4);
    border: 1px solid var(--border-color, #313244);
    border-radius: 10px;
}

.opportunity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.opportunity-header h4 {
    margin: 0;
    color: var(--text-primary, #cdd6f4);
}

.remove-opportunity-btn {
    padding: 6px 12px;
    background: rgba(243, 139, 168, 0.2);
    border: 1px solid var(--red, #f38ba8);
    border-radius: 6px;
    color: var(--red, #f38ba8);
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remove-opportunity-btn:hover {
    background: var(--red, #f38ba8);
    color: #1e1e2e;
}

.opportunity-combo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(30, 30, 46, 0.6);
    border-radius: 8px;
    font-size: 0.9em;
}

.combo-trend {
    padding: 6px 12px;
    background: rgba(203, 166, 247, 0.2);
    border-radius: 6px;
    color: var(--mauve, #cba6f7);
}

.combo-connector {
    color: var(--text-secondary, #a6adc8);
    font-weight: bold;
}

.combo-tech {
    padding: 6px 12px;
    background: rgba(166, 227, 161, 0.2);
    border-radius: 6px;
    color: var(--green, #a6e3a1);
}

.opportunity-description {
    width: 100%;
    min-height: 100px;
    padding: 12px 16px;
    background: rgba(49, 50, 68, 0.6);
    border: 1px solid var(--border-color, #313244);
    border-radius: 8px;
    color: var(--text-primary, #cdd6f4);
    font-family: inherit;
    font-size: 0.9em;
    line-height: 1.6;
    resize: vertical;
    margin-bottom: 12px;
}

.opportunity-description:focus {
    outline: none;
    border-color: var(--primary-color, #89b4fa);
    box-shadow: 0 0 0 2px rgba(137, 180, 250, 0.2);
}

.opportunity-actions {
    display: flex;
    gap: 12px;
}

.save-opportunity-btn,
.create-process-btn {
    flex: 1;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.save-opportunity-btn {
    background: var(--primary-color, #89b4fa);
    color: #1e1e2e;
}

.save-opportunity-btn:hover {
    background: #7aa2f7;
}

.create-process-btn {
    background: rgba(166, 227, 161, 0.2);
    border: 1px solid var(--green, #a6e3a1);
    color: var(--green, #a6e3a1);
}

.create-process-btn:hover {
    background: rgba(166, 227, 161, 0.3);
}

/* Collaboration Sidebar */
.collaboration-sidebar {
    width: 320px;
    background: rgba(30, 30, 46, 0.95);
    border-left: 1px solid var(--border-color, #313244);
    overflow-y: auto;
}

.collab-panel {
    padding: 20px;
}

.collab-panel h3 {
    margin: 0 0 8px 0;
    color: var(--primary-color, #89b4fa);
    font-size: 1.1em;
}

.collab-hint {
    margin: 0 0 20px 0;
    color: var(--text-secondary, #a6adc8);
    font-size: 0.85em;
}

.collab-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color, #313244);
}

.collab-tab {
    padding: 10px 16px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary, #a6adc8);
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.collab-tab:hover {
    color: var(--text-primary, #cdd6f4);
}

.collab-tab.active {
    color: var(--primary-color, #89b4fa);
    border-bottom-color: var(--primary-color, #89b4fa);
}

.collab-content {
    color: var(--text-secondary, #a6adc8);
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .collaboration-sidebar {
        width: 280px;
    }
}

@media (max-width: 1200px) {
    .selected-trends-list,
    .selected-tech-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .five-diamonds-workspace {
        flex-direction: column;
    }

    .diamond-nav {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color, #313244);
    }

    .collaboration-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border-color, #313244);
    }
}
