/* Addnews */
article.addnews {
	gap: 10px;
	background: var(--color1);
	padding: 20px;
	border-radius: var(--borderradius);
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
article.addnews .pagetitle {
	margin-bottom: 10px;
	font-size: 24px;
	color: var(--color_white);
}
article.addnews .addnews-error {
	display: grid;
	gap: 20px;
	text-align: center;
	padding: 20px;
	background: var(--color2);
	border-radius: var(--borderradius);
}
article.addnews .addnews-error p {
	color: var(--color_lightgray);
	font-size: 15px;
}
article.addnews .xfields table tr:nth-of-type(odd),
article.addnews .xfields table tr:nth-of-type(even) {
	background: var(--transparentbackground);
}
article.addnews .xfields table td {
	padding: 0;
}
article.addnews #xfield_holder_author-copy input {
	width: auto;
}
article.addnews input[type="file"]:hover {
	cursor: pointer !important;
}
article.addnews .admin_checkboxs {
	display: grid;
	gap: 10px;
}
article.addnews .admin_checkboxs label {
	display: grid;
	/* gap: 50px; */
	align-items: center;
	grid-template-columns: repeat(2, 1fr);
	margin: 0;
}
article.addnews .admin_checkboxs label input {
	width: auto;
	order: 1;
	margin-right: auto;
}
article.addnews .addnews-error .com-submit {
	margin: 0 auto;
}
article.addnews .addnews-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}
article.addnews select {
	appearance: none;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"><path fill="%23ffffff" d="M6 9l4-5H2z"/></svg>');
	background-repeat: no-repeat;
	background-position: right 10px center;
}
article.addnews .image-preview {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
article.addnews .image-preview img {
	width: 100px;
	height: 100px;
	object-fit: cover;
	border-radius: var(--borderradius);
	border: 2px solid var(--maincolor);
}
article.addnews .settings-options {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: max-content;
}
article.addnews .settings-options label {
	color: var(--color_lightgray);
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 5px;
}
article.addnews .settings-options input[type="checkbox"] {
	width: auto;
}
article.addnews .form-actions {
	display: flex;
	gap: 10px;
}
article.addnews .com-submit:hover {
	background: var(--maincolordark);
}
article.addnews .com-submit.secondary {
	background: var(--color3);
}
article.addnews .com-submit.secondary:hover {
	background: var(--color4);
}

/* TinyMCE Dark Fix */
.mce-container {
	background-color: var(--color3) !important;
	border-color: var(--color4) !important;
	border-radius: var(--borderradius);
}
.mce-menu-item:hover,
.mce-menu-item:focus,
.mce-menu-item:hover .mce-text,
.mce-menu-item:focus .mce-text,
.mce-menu-item.mce-active.mce-menu-item-normal {
	background: var(--color4) !important;
}
.mce-text {
    color: rgb(150, 157, 160) !important;
	background: var(--color3) !important;
}
.mce-window-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px 20px !important;
	position: relative;
	background-color: var(--color1) !important;
	border-bottom: 1px solid var(--color2) !important;
	border-radius: 8px 8px 0 0;
}
.mce-window-head .mce-title {
	color: #cccccc;
	text-shadow: initial !important;
}
.mce-window-head .mce-close {
    position: relative !important;
	top: 0;
	right: 0;
	width: 24px !important;
	height: 24px !important;
	margin-left: auto;
	padding: 0;
	border: none;
	box-shadow: none;
    border-radius: var(--borderradius);
	background-color: var(--color3);
	transition: background-color 0.2s ease;
	-webkit-transition: background-color 0.2s ease;
}
.mce-container-body.mce-abs-layout {
	background-color: var(--color2) !important;
}
.mce-label {
	color: #cccccc !important;
	text-shadow: initial !important;
}
.mce-combobox input,
.mce-textbox {
	color: var(--color_gray) !important;
	background-color: var(--color3) !important;
	border-color: var(--color4) !important;
}
.mce-window-body .mce-btn, .mce-foot .mce-btn {
	color: var(--color_gray) !important;
	background-color: var(--color3) !important;
	border-color: var(--color4) !important;
	border-radius: var(--borderradius);
}
.mce-menubtn button {
	color: var(--color_gray) !important;
}
.mce-primary button, .mce-primary button i {
	color: white !important;
	text-shadow: initial !important;
	background-color: var(--maincolordark);
	border-radius: var(--borderradius);
    transition: all 0.2s ease;
	-webkit-transition: all 0.2s ease;
}
.mce-primary button:hover,
.mce-abs-layout-item button:hover {
	opacity: 0.8;
    transition: all 0.2s ease;
	-webkit-transition: all 0.2s ease;
}
.mce-txt {
	color: var(--color_gray) !important;
}
.mce-abs-layout,
.mce-primary .mce-txt {
	color: white !important;
}