.resourcesPopup{
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0px;
	left: 0px;
	z-index: 20;
}

.resourcesPopup .background{
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0px;
	left: 0px;
	background: #000;
	opacity: 0.3;
}

.resourcesPopup .content{
	position: relative;
	width: 600px;
	max-height: calc(100vh - 80px);
	background: #fff;
	margin: 40px auto;
	overflow: auto;
	border-radius: 4px;
}

/* Header */

.resourcesPopup .resourcesHeader{
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #c6c6c6;
	background: #fafafa;
	position: sticky;
	top: 0;
	z-index: 2;
}

.resourcesPopup .resourcesHeader .title{
	font-size: 20px;
	font-weight: 600;
}

.resourcesPopup .resourcesHeader .addResourceBtn{
	font-size: 14px;
	padding: 6px 12px;
	background: #56bae2;
	color: #fff;
	border-radius: 4px;
	cursor: pointer;
}

.resourcesPopup .resourcesHeader .addResourceBtn:hover{
	background: #3fa6ce;
}

.resourcesPopup .resourcesHeader .addResourceBtn.disabled{
	opacity: 0.4;
	pointer-events: none;
}

/* Sections */

.resourcesPopup .resourcesHolder{
	overflow: visible;
}

.resourcesPopup .resourceSection{
	border-bottom: 1px solid #c6c6c6;
}

.resourcesPopup .sectionHeader{
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #565656;
	padding: 14px 20px 6px;
	background: #f2f2f2;
}

.resourcesPopup .sectionRows{
	min-height: 8px;
	position: relative;
}

/* Rows */

.resourcesPopup .resourceHolder{
	display: flex;
	align-items: center;
	border-bottom: 1px solid #e6e6e6;
	padding: 14px 15px;
	cursor: pointer;
	gap: 12px;
	background: #fff;
}

.resourcesPopup .resourceHolder:last-child{
	border-bottom: none;
}

.resourcesPopup .resourceHolder:hover{
	background: #f4f9fc;
}

.resourcesPopup .resourceHolder.isDragging{
	opacity: 0.35;
}

.resourcesPopup .resourceHolder .dragHandle{
	color: #b0b0b0;
	cursor: grab;
	font-size: 14px;
	padding: 4px 2px;
	flex-shrink: 0;
	opacity: 0;
	transition: opacity 0.1s;
}

.resourcesPopup .resourceHolder:hover .dragHandle{
	opacity: 1;
}

.resourcesPopup .resourceHolder .dragHandle:active{
	cursor: grabbing;
}

.resourcesPopup .resourceHolder .resourceMain{
	flex: 1;
	min-width: 0;
}

.resourcesPopup .resourceHolder .label{
	font-size: 16px;
	color: #222;
}

.resourcesPopup .resourceHolder .description{
	font-size: 13px;
	color: #777;
	margin-top: 2px;
}

.resourcesPopup .resourceHolder .privateBadge{
	font-size: 11px;
	color: #8a6d3b;
	background: #fcf3d9;
	padding: 3px 8px;
	border-radius: 10px;
	flex-shrink: 0;
}

.resourcesPopup .resourceHolder .privateBadge i{
	margin-right: 3px;
}

.resourcesPopup .resourceHolder .resourceActions{
	display: flex;
	gap: 6px;
	flex-shrink: 0;
	opacity: 0;
	transition: opacity 0.1s;
}

.resourcesPopup .resourceHolder:hover .resourceActions{
	opacity: 1;
}

.resourcesPopup .resourceHolder .resourceActions .editBtn{
	position: static;
	right: auto;
	top: auto;
	min-width: 28px;
	width: auto;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 4px;
	background: #ececec;
	color: #565656;
	font-size: 13px;
	padding: 0 8px;
	opacity: 1;
	line-height: normal;
	z-index: auto;
}

.resourcesPopup .resourceHolder .resourceActions .editBtn:hover{
	background: #dbeefb;
	color: #2a78b0;
}

/* Drop indicator */

.resourcesPopup .dropIndicator{
	height: 2px;
	background: #56bae2;
	margin: 0 15px;
	border-radius: 1px;
	pointer-events: none;
}

/* Empty state */

.resourcesPopup .emptyState{
	padding: 40px 20px;
	text-align: center;
	color: #888;
	font-size: 14px;
}

/* Add / edit modal */

.resourceFormModal{
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0px;
	left: 0px;
	z-index: 25;
}

.resourceFormModal .formBackground{
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0px;
	left: 0px;
	background: #000;
	opacity: 0.35;
}

.resourceFormModal .resourceForm{
	position: relative;
	width: 520px;
	max-width: calc(100vw - 40px);
	max-height: calc(100vh - 80px);
	background: #fff;
	margin: 60px auto;
	border-radius: 6px;
	padding: 20px 24px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
	overflow: auto;
}

.resourceFormModal .formTitle{
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 16px;
	color: #2a78b0;
}

.resourceFormModal .formRow{
	display: flex;
	align-items: flex-start;
	margin-bottom: 12px;
	gap: 12px;
}

.resourceFormModal .formRow label{
	width: 90px;
	flex-shrink: 0;
	font-size: 13px;
	color: #565656;
	padding-top: 7px;
}

.resourceFormModal .formRow input[type="text"],
.resourceFormModal .formRow textarea{
	flex: 1;
	font-size: 14px;
	padding: 6px 8px;
	border: 1px solid #c6c6c6;
	border-radius: 3px;
	font-family: inherit;
	background: #fff;
}

.resourceFormModal .formRow textarea{
	min-height: 70px;
	resize: vertical;
}

.resourceFormModal .formRow input:focus,
.resourceFormModal .formRow textarea:focus{
	border-color: #56bae2;
	outline: none;
}

.resourceFormModal .visibilityRow .visibilityOptions{
	flex: 1;
	display: flex;
	gap: 16px;
	align-items: center;
	padding-top: 6px;
	flex-wrap: wrap;
}

.resourceFormModal .radioOption{
	width: auto;
	padding-top: 0;
	display: flex;
	align-items: center;
	gap: 5px;
	font-size: 14px;
	color: #333;
	cursor: pointer;
}

.resourceFormModal .radioOption input{
	margin: 0;
}

.resourceFormModal .visibilityLocked{
	font-size: 13px;
	color: #777;
}

.resourceFormModal .visibilityLocked i{
	margin-right: 4px;
}

.resourceFormModal .formActions{
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 18px;
	gap: 12px;
}

.resourceFormModal .formActionsSpacer{
	flex: 1;
}

.resourceFormModal .formActionsRight{
	display: flex;
	gap: 8px;
	margin-left: auto;
}

.resourceFormModal .deleteResourceBtn{
	font-size: 13px;
	color: #b73a3a;
	padding: 7px 12px;
	border-radius: 4px;
	cursor: pointer;
}

.resourceFormModal .deleteResourceBtn:hover{
	background: #fde2e2;
}

.resourceFormModal .deleteResourceBtn i{
	margin-right: 4px;
}

.resourceFormModal .cancelBtn,
.resourceFormModal .saveBtn{
	font-size: 14px;
	padding: 7px 14px;
	border-radius: 4px;
	cursor: pointer;
}

.resourceFormModal .cancelBtn{
	background: #e6e6e6;
	color: #444;
}

.resourceFormModal .cancelBtn:hover{
	background: #d6d6d6;
}

.resourceFormModal .saveBtn{
	background: #56bae2;
	color: #fff;
}

.resourceFormModal .saveBtn:hover{
	background: #3fa6ce;
}
