/* Sidebar styles for detail pages */
.sidebar {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    margin-top: 20px;
}

.sidebar-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 15px;
}

.sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-item {
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.sidebar-item:last-child {
    margin-bottom: 0;
}

/* Requirements section styling */
.requirements-list .sidebar-item {
    line-height: 1.5;
}

/* Tags styling */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    background-color: #f5f5f5;
    color: var(--text-color);
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition);
}

.tag:hover {
    background-color: #e9e9e9;
    cursor: pointer;
}

/* Related workflow item styling */
.sidebar-item a {
    text-decoration: none;
    color: var(--primary-color);
}

.sidebar-item a:hover {
    text-decoration: underline;
}

.sidebar-item a strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
}

.sidebar-item a small {
    color: var(--text-light);
    font-size: 12px;
}

/* For specific categories based on screenshot */
.tag.routing {
    background-color: rgba(12, 100, 110, 0.1);  /* Tactful teal with opacity */
    color: var(--primary-color);
}

.tag.agent {
    background-color: rgba(102, 112, 133, 0.1);  /* Secondary color with opacity */
    color: var(--secondary-color);
}

.tag.assignment {
    background-color: rgba(54, 179, 126, 0.1);  /* Success color with opacity */
    color: var(--success-color);
}

.tag.conversation {
    background-color: rgba(255, 195, 30, 0.1);  /* Warning color with opacity */
    color: var(--warning-color);
}
