/* Org Kanban Board Styles */
:root {
	--primary-color: #09111F;
	--secondary-color: #0F1828;
	--accent-color: #273247;
	--highlight-color: #ffb21e;
	--text-muted: #9EA0A6;
}

/* Wrapper for the entire kanban system */
.org-kanban-wrapper {
	width: 100%;
	padding: 0;
	font-family: 'Work Sans', sans-serif;
}

/* Main board styling */
.org-kanban-board {
	display: flex;
	width: 100%;
	overflow-x: auto;
	margin-bottom: 24px;
}

.kanban-columns {
	display: flex;
	gap: 16px;
	width: 100%;
}

.kanban-column {
	flex: 1;
	min-width: 280px;
	background: var(--secondary-color);
	border-radius: 3px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.05);
	overflow: visible;
}

.kanban-column h3 {
	margin: 0;
	padding: 16px 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	background: var(--primary-color);
	border-radius: 3px 3px 0 0;
}

.kanban-column-content {
	min-height: 400px;
	padding: 16px;
	overflow: visible;
}

/* Item styling */
.kanban-item {
	background: var(--primary-color);
	margin-bottom: 12px;
	padding: 16px;
	border-radius: 3px;
	border: 1px solid rgba(255, 255, 255, 0.05);
	display: flex;
	flex-direction: column;
	position: relative;
	transition: all 0.2s ease;
	overflow: visible;
	z-index: 1;
}

.kanban-item.dropdown-open {
	z-index: 1001;
}

.kanban-item:hover {
	border-color: rgba(255, 255, 255, 0.1);
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.kanban-item-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 12px;
}

.kanban-item-title {
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	flex-grow: 1;
	line-height: 1.4;
	padding-right: 8px;
	cursor: grab;
	display: flex;
	align-items: center;
	gap: 8px;
}

.kanban-item-title:active {
	cursor: grabbing;
}

.drag-handle-icon {
	color: var(--text-muted);
	font-size: 12px;
	opacity: 0.4;
	transition: opacity 0.2s ease;
	flex-shrink: 0;
}

.kanban-item:hover .drag-handle-icon {
	opacity: 0.8;
}

.kanban-title-text {
	flex: 1;
}

/* Status indicators */
.kanban-item-status {
	position: absolute;
	bottom: 12px;
	right: 12px;
	display: flex;
	gap: 4px;
	z-index: 10;
	pointer-events: all;
}

.inactive-section .status-indicator {
	display: none !important;
}

.status-indicator {
	font-size: 14px;
	cursor: pointer;
	opacity: 0.3;
	transition: all 0.2s ease;
	border-radius: 50%;
	padding: 3px;
	display: inline-block;
	width: 20px;
	height: 20px;
	text-align: center;
	line-height: 14px;
	pointer-events: all;
}

.status-indicator:hover {
	opacity: 0.7;
	transform: scale(1.1);
}

.status-indicator.active {
	opacity: 1;
	transform: scale(1.1);
}

.status-indicator.red {
	color: #ef4444;
}

.status-indicator.yellow {
	color: #fbbf24;
}

.status-indicator.green {
	color: #10b981;
}

.status-indicator.red.active {
	background-color: rgba(239, 68, 68, 0.2);
	box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.status-indicator.yellow.active {
	background-color: rgba(251, 191, 36, 0.2);
	box-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
}

.status-indicator.green.active {
	background-color: rgba(16, 185, 129, 0.2);
	box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

/* Button styles */
.remove-item-btn, .restore-item-btn {
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.4);
	font-size: 18px;
	font-weight: bold;
	cursor: pointer;
	padding: 0 5px;
	line-height: 1;
	border-radius: 50%;
	transition: all 0.2s;
	flex-shrink: 0;
}

.remove-item-btn:hover {
	color: #ef4444;
	background-color: rgba(239, 68, 68, 0.1);
}

.restore-item-btn:hover {
	color: #10b981;
	background-color: rgba(16, 185, 129, 0.1);
}

/* Links section */
.kanban-item-links {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-top: 8px;
	position: relative;
}

.kanban-item-link {
	margin-top: 0;
	color: var(--text-muted) !important;
}

.kanban-item-link,
.kanban-item-projects-toggle {
	background: var(--accent-color);
	color: var(--text-muted);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 3px;
	padding: 8px 14px;
	font-size: 13px;
	font-family: 'Work Sans', sans-serif;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	line-height: 1;
	height: auto;
}

.kanban-item-link:hover,
.kanban-item-projects-toggle:hover {
	background: var(--highlight-color);
	color: #fff !important;
	text-decoration: none !important;
	border-color: var(--highlight-color);
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(255, 178, 30, 0.3);
}

/* Projects dropdown */
.kanban-item-projects-dropdown {
	position: absolute;
	top: calc(100% + 5px);
	left: 0;
	right: 0;
	background: var(--secondary-color);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 3px;
	padding: 8px;
	z-index: 1000;
	max-height: 200px;
	overflow-y: auto;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

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

.kanban-projects-list li {
	margin: 0;
	padding: 0;
}

.kanban-projects-list a {
	display: block;
	padding: 8px 10px;
	color: var(--text-muted);
	text-decoration: none;
	font-size: 13px;
	font-family: 'Work Sans', sans-serif;
	border-radius: 3px;
	transition: all 0.2s ease;
}

.kanban-projects-list a:hover {
	background: var(--accent-color);
	color: var(--highlight-color);
}

.no-projects {
	color: rgba(255, 255, 255, 0.5);
	font-size: 12px;
	font-family: 'Work Sans', sans-serif;
	margin: 0;
	padding: 4px 8px;
}

/* Inactive section styles */
.inactive-section {
	width: 100%;
	background: var(--secondary-color);
	border-radius: 3px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.05);
	margin-top: 20px;
	overflow: visible;
}

.inactive-section h3 {
	margin: 0;
	padding: 16px 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	color: rgba(255, 255, 255, 0.6);
	font-weight: 600;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	background: var(--primary-color);
	border-radius: 3px 3px 0 0;
}

.inactive-items {
	min-height: 100px;
	padding: 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	overflow: visible;
}

.inactive-items .kanban-item {
	flex: 0 0 calc(25% - 12px);
	min-width: 220px;
}

.kanban-item.inactive {
	background: var(--primary-color);
	opacity: 0.7;
	border-color: rgba(255, 255, 255, 0.05);
}

.kanban-item.inactive:hover {
	opacity: 1;
	border-color: rgba(255, 255, 255, 0.1);
}

/* Sortable ghost and drag states */
.sortable-ghost {
	opacity: 0.3;
	background: var(--accent-color);
	border-color: var(--highlight-color);
}

.sortable-drag {
	opacity: 0.9;
	cursor: grabbing !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Empty state */
.kanban-column-content:empty::after {
	content: 'Drop items here';
	display: block;
	text-align: center;
	color: rgba(255, 255, 255, 0.3);
	font-size: 13px;
	padding: 40px 20px;
	font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
	.inactive-items .kanban-item {
		flex: 0 0 calc(33.333% - 12px);
	}
}

@media (max-width: 768px) {
	.kanban-columns {
		flex-direction: column;
	}
	
	.kanban-column {
		margin-bottom: 16px;
	}
	
	.org-kanban-board {
		overflow-y: visible;
	}
	
	.inactive-items .kanban-item {
		flex: 0 0 calc(50% - 12px);
	}
}

@media (max-width: 480px) {
	.inactive-items .kanban-item {
		flex: 0 0 100%;
	}
	
	.kanban-item-links {
		flex-direction: column;
		align-items: stretch;
	}
	
	.kanban-item-link,
	.kanban-item-projects-toggle {
		width: 100%;
		justify-content: center;
	}
}
