.hidepics {width:0px; height:0px; display:none;}

body{
	/*background-color:#FDFEFF !important;*/
	background-color:  #0f172a;
	font-family: 'Droid Sans', Arial, Helvetica, sans-serif;
	color:#333333;	
	font-size:14px;
	margin:0;
	text-align:center;
}

a:link, a:visited { color: #035aa6; }
a:active, a:hover  { color: #000090; }
a {text-decoration: none;}
h1 { font-weight: normal; font-size: 24px; margin: 0px 0 0px 0; }
h2 { font-weight: bold; font-size: 24px; margin: 0px 0 0px 0; }
h3 { font-weight: normal; font-size: 16px; margin: 0px 0 8px 0; }
h4 { font-weight: normal; font-size: 14px; margin: 0px 0 0px 0; }
h5 { font-weight: normal; font-size: 14px; margin: 0px 0 8px 0; }
h6 { font-weight: normal; font-size: 14px; margin: 0px 0 0px 0; }

#top	{	
	position:fixed;
	/*background-color:#21578a;*/
	background-color: #1e1e2e;
	top:0px;
	left:0px;
	width:100%;
	/*border-bottom:2px solid #555555;*/
	z-index:5;
}

.header	{
	color:#FDFEFF;
	font-size: 23px;
	padding: 0 10px;
	/*padding: 0 60px;*/
}

.header_container {
	height: 50px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.header_container button {
	background-color: #1e1e2e;
	border: 0;
	cursor: pointer;
}

.header_container p {
	margin-left: 50px;
}

.header_container button img {
	width: 30px;
	height: 30px;
}

.logo {
	font-family: 'Arial', sans-serif;
}

.logo #logo_red {
	color: rgb(255, 64, 64);
}

.logo #logo_grey {
	color: grey;
}

.header_menu {
	position: absolute;
	background-color: #1e1e2e;
	width: 100%;
	color:white;
	font-size: 17px;
	transition: opacity 0.3s ease, transform 0.3s ease;
	opacity: 0;
	transform: translateY(-20px); 
}

.header_menu.active {
	opacity: 1;
  	transform: translateY(0);
}

.header_menu_container {
	display: flex;
	justify-content: center;
	align-items: center;
}

.header_table {
	padding: 15px;
}

.header_table td {
	text-align: center;
}

#hr1	{
	position:relative;
	background-color:#555555;
	height:0px;
	width:100%;
}

#content {
	position:relative;
	top:100px;
}

.content_container {
	text-align: center;
}

.content_container a #close_window {
	width: 16px;
	height: 16px;
	vertical-align: middle;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#version {
	color:#FDFEFF;
	font-size:12px;
	font-weight:bold;
}

#counter {
	text-align: center;
	font-size:32px;
	font-weight:bold;
}

#closebutton {
	display:none;
	visibility:hidden;
	position:absolute;
	top:0px;
	left:0px;
	margin:5px;
	z-index:4;
}

.topleftbuttons {
	position:absolute;
	top:0px;
	margin:3px;
	float:left;
	left:0px;
}

.visbutton {
	width:170px;
	margin:3px;
}

.toprightbuttons {
	position:absolute;
	top:0px;
	margin:10px;
	float:right;
	right:0px;
}

.contentcell, .detailicons, .detailimage, .detailheadline, .detailcontent {
	background-color:#EFF5FB;
	color:#555555;
	border-style:solid;
	border-color:#21578a;
	padding:15px;
}

.contentcell {
	border-top-width:0px;
	border-left-width:0px;
	border-bottom-width:0px;
	border-right-width:0px;
}

.detailicons {
	border-top-width:2px;
	border-left-width:0px;
	border-bottom-width:0px;
	border-right-width:2px;
	font-size:30px;
}

.detailimage {
	border-top-width:2px;
	border-left-width:2px;
	border-bottom-width:2px;
	border-right-width:0px;
}

.detailheadline {
	border-top-width:2px;
	border-left-width:0px;
	border-bottom-width:0px;
	border-right-width:0px;
}

.detailcontent {
	border-top-width:0px;
	border-left-width:0px;
	border-bottom-width:2px;
	border-right-width:2px;
}

table.detail{
	position:absolute;
	display:none;
	visibility:hidden;
	z-index:3;
}

.container 	{
	margin: 0 auto;
	width:100%;
	position:relative;
	padding:0;
	height:auto;	
	text-align:left;
}

.image {
	border: 0 solid white;
	-webkit-box-shadow: 3px 3px 8px #000000;
	-moz-box-shadow: 3px 3px 8px #000000;
	box-shadow: 3px 3px 8px #000000;
	padding: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	z-index: 100;
	margin: 7px;
	background: white;
}

a:hover .image, a:active .image {	
	-webkit-box-shadow: 2px 2px 5px #000000;
	-moz-box-shadow: 2px 2px 5px #000000;
	box-shadow: 2px 2px 5px #000000;
}

span.previewtt, a.filterbutton span {
	display:none;
	visibility:hidden;
	padding:2px 3px;
	margin-left:8px;
	background:#ffffff;
	border:1px solid #cccccc;
	color:#6c6c6c;
	position:absolute;
	z-index: 3;
}

.search {
	display: flex;
	flex-wrap: nowrap;
	gap: 5px;
}

.search input {
	border: 0px;
	height: 20px;
	border-radius: 2px;
}

.search a img{
	display: inline-block;
	vertical-align: middle;
	width: 16px;
	height: 16px;
}

.filterbutton {
	display:block;
	width:40px;
	height:40px;
}

ul.noindent {
	margin-top: 0px;
	padding-left: 20px;
}

/* Auth admin */

.auth_container {
	display: flex;
	justify-content: center;
	padding-top: 50px;
}

.login-container {
	background-color: white;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	width: 400px;
	max-width: 90%;
	padding: 40px;
	text-align: center;
}

.login-header {
	margin-bottom: 30px;
}

.login-header h1 {
	color: #333;
	font-size: 24px;
	margin-bottom: 10px;
}

.login-header p {
	color: #666;
	font-size: 14px;
}

.input-group {
	margin-bottom: 20px;
	text-align: left;
}

.input-group label {
	display: block;
	margin-bottom: 8px;
	color: #555;
	font-size: 14px;
	font-weight: bold;
}

.input-group input {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid #ddd;
	border-radius: 5px;
	font-size: 16px;
	transition: border 0.3s;
}

.input-group input:focus {
	border-color: #667eea;
	outline: none;
}

.remember-forgot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	font-size: 14px;
}

.remember-me {
	display: flex;
	align-items: center;
}

.remember-me input {
	margin-right: 5px;
}

.forgot-password a {
	color: #667eea;
	text-decoration: none;
}

.login-button {
	width: 100%;
	padding: 12px;
	background: linear-gradient(to right, #667eea, #764ba2);
	border: none;
	border-radius: 5px;
	color: white;
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	transition: opacity 0.3s;
}

.login-button:hover {
	opacity: 0.9;
}

.error-message {
	color: #e74c3c;
	font-size: 14px;
	margin: 10px 0;
	display: none;
}

.admin-icon {
	width: 60px;
	height: 60px;
	margin: 0 auto 20px;
	background-color: #f0f0f0;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 24px;
	color: #667eea;
}
/* /Auth admin */

/* Admin-panel */

.admin-container {
	display: flex;
	min-height: 100vh;
}

.sidebar {
	width: 250px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 20px 0;
}

.sidebar-header {
	padding: 0 20px 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
	font-size: 18px;
}

.sidebar-header p {
	font-size: 12px;
	opacity: 0.8;
	margin-top: 5px;
}

.nav-menu {
	margin-top: 20px;
}

.nav-item {
	padding: 12px 20px;
	cursor: pointer;
	transition: background-color 0.3s;
}

.nav-item:hover, .nav-item.active {
	background-color: rgba(255, 255, 255, 0.1);
}

.nav-item i {
	margin-right: 10px;
}

.main-content {
	flex: 1;
	padding: 30px;
}

.admin-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 30px;
	color:#FDFEFF;
	padding: 0 10px;
}

.admin-header h1 {
	font-size: 24px;
}

.btn {
	padding: 10px 20px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-weight: bold;
	transition: opacity 0.3s;
}

.btn-primary {
	background: linear-gradient(to right, #667eea, #764ba2);
	color: white;
}

.btn-danger {
	background-color: #e74c3c;
	color: white;
}

.btn:hover {
	opacity: 0.9;
}

.articles-list {
	background-color: white;
	border-radius: 5px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	overflow: hidden;
}

.table-header {
	display: flex;
	background-color: #f8f9fa;
	padding: 15px 20px;
	font-weight: bold;
	border-bottom: 1px solid #eee;
}

.table-row {
	display: flex;
	padding: 15px 20px;
	border-bottom: 1px solid #eee;
	align-items: center;
}

.table-row:last-child {
	border-bottom: none;
}

.col-id {
	width: 50px;
}

.col-title {
	flex: 2;
}

.col-date {
	width: 120px;
}

.col-actions {
	width: 150px;
	text-align: right;
}

.action-btn {
	background: none;
	border: none;
	cursor: pointer;
	margin-left: 10px;
	color: #667eea;
	font-size: 14px;
}

.action-btn.delete {
	color: #e74c3c;
}

.action-btn.publish {
    color: #2ecc71;
}

.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1000;
	justify-content: center;
	align-items: center;
}

.modal-content {
	background-color: white;
	width: 600px;
	max-width: 90%;
	border-radius: 5px;
	overflow: hidden;
}

.modal-header {
	padding: 15px 20px;
	background-color: #f8f9fa;
	border-bottom: 1px solid #eee;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.modal-header h3 {
	font-size: 18px;
}

.close-btn {
	background: none;
	border: none;
	font-size: 20px;
	cursor: pointer;
	color: #999;
}

.modal-body {
	padding: 20px;
}

.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: bold;
}

.form-group input, .form-group textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 5px;
}

.form-group textarea {
	min-height: 150px;
	resize: vertical;
}

.modal-footer {
	padding: 15px 20px;
	background-color: #f8f9fa;
	border-top: 1px solid #eee;
	text-align: right;
}

.alert {
	padding: 15px;
	margin-bottom: 20px;
	border-radius: 5px;
}

.alert-success {
	background-color: #d4edda;
	color: #155724;
}

/* /Admin-panel */