/*
 * CSS for Zeno Report Post plugin.
 *
 * This plugin uses as little styling as possible.
 * Styling should be done by the theme for form elements.
 *
 * This CSS file is used on frontend and dashboard.
 *
 */


/* Report Post link */
a.zeno-report-post-link-frontend {
	display: inline-block;
	margin-left: 20px;
	margin-right: 20px;
	padding-left: 20px;
	vertical-align: middle;
}


/* Report Post button */
input.zeno-report-post-button-frontend {
	font: inherit;
	display: inline-block;
	overflow: visible;
	cursor: pointer;
	text-align: center;
	outline: 0;
	margin-top: 10px;
	margin-bottom: 10px;
}


/* Modal with form */
div.zeno-report-post-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	visibility: hidden;
	opacity: 0;
	width: 600px;
	max-width: 90%;
	height: auto;
	background-color: #ffffff;
	border-radius: 8px;
	box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
	padding: 30px;
	z-index: 9900;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}
div.zeno-report-post-modal.visible {
	visibility: visible;
	opacity: 1;
}

/* Modal backdrop */
.zeno-report-post-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	z-index: 9899;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}
.zeno-report-post-backdrop.visible {
	visibility: visible;
	opacity: 1;
}

a.zeno-report-post-modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	font-weight: 800;
	font-size: 20px;
	width: 30px;
	height: 30px;
	line-height: 30px;
	text-align: center;
	cursor: pointer;
	color: #666;
	transition: color 0.2s ease;
	border-radius: 50%;
}
a.zeno-report-post-modal-close:hover {
	color: #000;
	background-color: #f0f0f0;
}

h2.zeno-report-post-modal-title {
	margin-top: 0;
	margin-bottom: 20px;
	font-size: 24px;
	color: #333;
	border-bottom: 1px solid #eee;
	padding-bottom: 10px;
}

div.zeno-report-post-half-left {
	width: 48%;
	float: left;
}
div.zeno-report-post-half-right {
	width: 48%;
	float: right;
}

@media only screen and (max-width: 600px) {
	div.zeno-report-post-half-left,
	div.zeno-report-post-half-right {
		width: 100%;
		float: none;
	}
}

form.zeno-report-post-form p {
	padding-bottom: 5px;
	margin-top: 16px;
	margin-bottom: 0;
	font-weight: 500;
	color: #333;
}

div.zeno-report-post-textarea {
	padding-top: 10px;
	clear: both;
}

form.zeno-report-post-form input,
form.zeno-report-post-form textarea {
	width: 100%;
	font-size: 1em;
	padding: 10px;
	border-radius: 4px;
	border: 1px solid #ddd;
	background-color: #f9f9f9;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form.zeno-report-post-form input:focus,
form.zeno-report-post-form textarea:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
	outline: none;
}

p.zeno-report-post-modal-desc {
	margin-bottom: 15px;
	padding-bottom: 0;
}

p.zeno-report-post-modal-desc b {
	font-weight: 600;
}

p#zeno-report-post-modal-feedback {
	margin: 10px 0;
	padding: 10px;
	border-radius: 4px;
	font-weight: 500;
	text-align: left;
}

p#zeno-report-post-modal-feedback.zeno-report-post-error {
	border-left: 4px solid #d63638;
	background-color: #f8d7da;
	color: #842029;
	border: 1px solid #f5c2c7;
	text-align: left;
}

p#zeno-report-post-modal-feedback.zeno-report-post-success {
	border-left: 4px solid #00a32a;
	background-color: #e7f5ea;
	color: #0f5132;
	border: 1px solid #badbcc;
}

p#zeno-report-post-modal-feedback.zeno-report-post-success.standalone {
	font-size: 1.2em;
	text-align: center;
	padding: 20px;
	margin: 30px 0;
}

/* Buttons styling */
#zeno-report-post-buttons {
	margin-top: 20px;
	text-align: right;
}

#zeno-report-post-buttons input[type="button"],
#zeno-report-post-buttons input[type="submit"] {
	padding: 10px 20px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.2s ease;
}

#zeno-report-post-cancel {
	background-color: #f0f0f0;
	border: 1px solid #ccc;
	color: #555;
	margin-right: 10px;
}

#zeno-report-post-cancel:hover {
	background-color: #e0e0e0;
}

#zeno-report-post-submit {
	background-color: #2271b1;
	border: 1px solid #2271b1;
	color: #fff;
}

#zeno-report-post-submit:hover {
	background-color: #135e96;
	border-color: #135e96;
}

/* Loading indicator */
.zeno-report-post-ajax-icon {
	display: none;
	width: 20px;
	height: 20px;
	margin-left: 10px;
	vertical-align: middle;
}

.zeno-report-post-ajax-icon.loading {
	display: inline-block;
	border: 2px solid rgba(0, 0, 0, 0.1);
	border-top: 2px solid #2271b1;
	border-radius: 50%;
	animation: zeno-report-post-spin 1s linear infinite;
}

@keyframes zeno-report-post-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Login form styling */
.zeno-report-post-login-form {
	background-color: #f9f9f9;
	padding: 20px;
	border-radius: 4px;
	margin-bottom: 20px;
}

.zeno-report-post-login-form h3 {
	margin-top: 0;
	margin-bottom: 15px;
	font-size: 18px;
	color: #333;
}

.zeno-report-post-login-form .login-username,
.zeno-report-post-login-form .login-password {
	margin-bottom: 15px;
}

.zeno-report-post-login-form label {
	display: block;
	margin-bottom: 5px;
	font-weight: 500;
}

.zeno-report-post-login-form input[type="text"],
.zeno-report-post-login-form input[type="password"] {
	width: 100%;
	padding: 10px;
	border-radius: 4px;
	border: 1px solid #ddd;
	background-color: #fff;
}

.zeno-report-post-login-form .login-submit {
	margin-top: 20px;
}

.zeno-report-post-login-form input[type="submit"] {
	background-color: #2271b1;
	color: #fff;
	border: none;
	padding: 10px 20px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
}

.zeno-report-post-login-form input[type="submit"]:hover {
	background-color: #135e96;
}

/* Admin panel styles */
.zeno-report-post-report {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.zeno-report-post-report:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

button.zeno-report-post-link-admin {
    margin-top: 5px !important;
    background-color: #2271b1 !important;
    color: #fff !important;
    border-color: #2271b1 !important;
}

button.zeno-report-post-link-admin:hover {
    background-color: #135e96 !important;
    border-color: #135e96 !important;
}

/* Dashboard styles remain unchanged */
div.zeno-report-post-report {
	padding: 4px 2px;
	border-bottom: dotted #135e96 1px;
}
div.zeno-report-post-report:last-child {
	border-bottom: 0px;
}

/* Preserve other necessary styles */
.report-post-form {
	text-align: left;
}
.report-post-form input:read-only {
	background-color: #f0f0f0 !important;
}
.report-post-control-error {
	border-color: #d63638 !important;
	background-color: #fcf0f1 !important;
}
p.report-post-ip {
	text-align: right;
	font-size: 12px;
	color: #666;
}
