/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
	--primary-color: #00baa1;
	/* Modern Teal/Green */
	--primary-hover: #009e89;
	--text-color: #333333;
	--bg-color: #f4f7f6;
	--white: #ffffff;
	--error: #e74c3c;
	--success: #2ecc71;
	--border-radius: 12px;
	--box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
	--transition: all 0.3s ease;
}

/* Container & General */
.grs-form-container,
.grs-check-container {
	margin:0;
	padding: 1rem;
	background: #b30000;
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--text-color);
	border: 1px solid rgba(0, 0, 0, 0.02);
	border-radius:18px;
}

.grs-form-container h3,
.grs-check-container h3 {
	text-align: center;
	margin-bottom: 10px;
	color: #fff;
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: -0.5px;
}
.grs-form-container input {
	border-radius: 99px !important;
}
/* Form Groups */
.grs-form-group {
	margin-bottom: 1rem;
	position: relative;
}
button.grs-submit-btn {
	background: #ffd200;
	border-radius: 999px;
	color: #000;
	border: 0px;
	width: 100%;
}
button.grs-submit-btn:hover {
	color: #000;
	background: #efb936;
}
.grs-form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
	font-size: 0.95rem;
	color: #fff;
	transition: var(--transition);
}

.grs-form-group input {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid #e1e4e8;
	border-radius: 8px;
	font-size: 1rem;
	outline: none;
	transition: var(--transition);
	background-color: #fafafa;
	color: #333;
	box-sizing: border-box;
	/* Fix padding issue */
}

.grs-form-group input:focus {
	border-color: var(--primary-color);
	background-color: var(--white);
	box-shadow: 0 0 0 3px rgba(0, 186, 161, 0.1);
}

.grs-form-group input::placeholder {
	color: #aab2b8;
}

/* Buttons */
.grs-submit-btn {
	width: 100%;
	padding: 14px;
	background-color: var(--primary-color);
	color: var(--white);
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: var(--transition);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	box-shadow: 0 4px 6px rgba(0, 186, 161, 0.2);
}

.grs-submit-btn:hover {
	background-color: var(--primary-hover);
	transform: translateY(-2px);
	box-shadow: 0 6px 12px rgba(0, 186, 161, 0.3);
}

.grs-submit-btn:active {
	transform: translateY(0);
}

.grs-submit-btn:disabled {
	background-color: #ccc;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

/* Messages */
#grs-message,
#grs-check-result {
	margin-top: 1.5rem;
	font-size: 0.95rem;
	line-height: 1.5;
	text-align: center;
}

.grs-success-msg {
	padding: 12px;
	background-color: rgba(46, 204, 113, 0.1);
	border: 1px solid var(--success);
	color: #27ae60;
	border-radius: 6px;
}

.grs-error-msg {
	padding: 12px;
	background-color: rgba(231, 76, 60, 0.1);
	border: 1px solid var(--error);
	color: var(--error);
	border-radius: 6px;
}

/* Popup Modal */
.grs-popup {
	display: none;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(5px);
	animation: fadeIn 0.3s ease;
}

.grs-popup-content {
	background-color: var(--white);
	margin: 10vh auto;
	width: 90%;
	max-width: 450px;
	border-radius: 16px;
	position: relative;
	text-align: center;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	overflow: hidden;
	animation: slideUp 0.4s ease;
	padding: 0;
	/* Let inner content handle padding */
}
.grs-popup-body img{
	width: 100%;
}
.grs-popup-body {
	display: flex;
}
span.grs-close {
	color: #fff;
}
.grs-popup-body {
	padding: 0;
	background: radial-gradient(circle at center, #ffffff 0%, #f7f9fc 100%);
}

.grs-popup-body h3 {
	color: var(--primary-color);
	font-size: 1.8rem;
	margin-bottom: 1rem;
	font-weight: 700;
}

.grs-popup-body p {
	color: #666;
	font-size: 1.1rem;
}

/* Close Button */
.grs-close {
	color: #999;
	position: absolute;
	top: 15px;
	right: 20px;
	font-size: 30px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
	transition: var(--transition);
	z-index: 10;
}

.grs-close:hover {
	color: var(--text-color);
	transform: rotate(90deg);
}

/* Animations */
@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes slideUp {
	from {
		transform: translateY(50px);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

/* Admin Panel Styling */
.grs-admin-wrap {
	background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
	padding: 2rem;
	border-radius: 12px;
	margin: 20px 20px 20px 0;
}

.grs-admin-title {
	color: #1a1a1a;
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
	font-family: 'Inter', sans-serif;
}

/* Enhanced Table Styling */
.grs-audit-table {
	background: white;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.grs-audit-table thead th {
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
	color: white;
	font-weight: 600;
	padding: 15px;
	text-transform: uppercase;
	font-size: 0.85rem;
	letter-spacing: 0.5px;
}

.grs-audit-table tbody td {
	padding: 12px 15px;
	vertical-align: middle;
}

.grs-audit-table tbody tr:hover {
	background-color: #f0f9ff;
	transition: background-color 0.2s ease;
}

/* Action Badge */
.grs-action-badge {
	display: inline-block;
	padding: 6px 12px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 500;
	box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

/* Enhanced Search Box */
.search-box {
	background: white;
	padding: 15px;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	margin-bottom: 20px;
}

.search-box input[type="search"] {
	padding: 10px 15px;
	border: 2px solid #e1e4e8;
	border-radius: 6px;
	font-size: 1rem;
	transition: all 0.3s ease;
	min-width: 300px;
}

.search-box input[type="search"]:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(0, 186, 161, 0.1);
	outline: none;
}

.search-box .button {
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0, 186, 161, 0.3);
}

.search-box .button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 186, 161, 0.4);
}

/* Enhanced Admin Buttons */
.button-primary {
	background: linear-gradient(135deg, #00baa1 0%, #009e89 100%) !important;
	border: none !important;
	box-shadow: 0 4px 6px rgba(0, 186, 161, 0.3) !important;
	transition: all 0.3s ease !important;
	font-weight: 600 !important;
	text-shadow: none !important;
}

.button-primary:hover {
	transform: translateY(-2px) !important;
	box-shadow: 0 6px 12px rgba(0, 186, 161, 0.4) !important;
}

.button-secondary {
	background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%) !important;
	color: white !important;
	border: none !important;
	box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3) !important;
	transition: all 0.3s ease !important;
	font-weight: 600 !important;
}

.button-secondary:hover {
	transform: translateY(-2px) !important;
	box-shadow: 0 4px 8px rgba(108, 117, 125, 0.4) !important;
}

/* Status Badges in Main Table */
.wp-list-table td span[style*="color: green"] {
	display: inline-block;
	padding: 4px 12px;
	background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
	color: white !important;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 600 !important;
	box-shadow: 0 2px 4px rgba(46, 204, 113, 0.3);
}

.wp-list-table td span[style*="color: orange"] {
	display: inline-block;
	padding: 4px 12px;
	background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
	color: white !important;
	border-radius: 20px;
	font-size: 0.85rem;
	font-weight: 600 !important;
	box-shadow: 0 2px 4px rgba(243, 156, 18, 0.3);
}

/* Pagination Styling */
.tablenav-pages {
	padding: 15px;
	background: white;
	border-radius: 8px;
	margin-top: 15px;
}

.tablenav-pages a {
	padding: 8px 12px;
	margin: 0 2px;
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
	color: white;
	border-radius: 4px;
	text-decoration: none;
	transition: all 0.3s ease;
	font-weight: 500;
}

.tablenav-pages a:hover {
	transform: translateY(-2px);
	box-shadow: 0 2px 4px rgba(0, 186, 161, 0.3);
}
div#grs-message {
	position: absolute;
	background: #fff;
	width: 100%;
	left: 0;
	border: 1px solid red;
}

.tablenav-pages .current {
	padding: 8px 12px;
	background: #1a1a1a;
	color: white;
	border-radius: 4px;
	font-weight: 600;
}

/* Responsive */
@media screen and (max-width: 600px) {

	.grs-form-container,
	.grs-check-container {
		padding: 1rem;
	}
	.grs-form-group {
		margin-bottom: 0.5rem;
	}
	.grs-form-group label {
		font-size: 0.8rem;
	}


	.grs-form-container h3 {
		font-size: 1rem;
	}

	.grs-admin-wrap {
		margin: 10px;
		padding: 1rem;
	}

	.search-box input[type="search"] {
		min-width: 100%;
		margin-bottom: 10px;
	}
}