:root {
	--aae-primary: #f6502c;
	/* Indigo 500 */
	--aae-primary-hover: #fd2e00;
	/* Indigo 600 */
	--aae-bg: #f9fafb;
	--aae-card-bg: #ffffff;
	--aae-text-main: #111827;
	--aae-text-sub: #6b7280;
	--aae-border: #e5e7eb;
	--aae-success: #10b981;
	--aae-radius: 12px;
	--aae-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--aae-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	--aae-transition: all 0.3s ease;
}

/* Layout */
.aae-fr-board {
	max-width: 1200px;
	margin: 0 auto;
	font-family: var(--aae-font);
	color: var(--aae-text-main);
	display: grid;
	grid-template-columns: 1fr 350px;
	gap: 2rem;
	align-items: start;
}

/* Layout Variations */
.aae-fr-board.pos-left {
	grid-template-columns: 350px 1fr;
}

.aae-fr-board.pos-left .aae-fr-sidebar {
	grid-column: 1;
	grid-row: 2;
	/* Ensure it stays below header if needed, or adjust */
}

.aae-fr-board.pos-left .aae-fr-main-column {
	grid-column: 2;
}

.aae-fr-board.layout-popup {
	grid-template-columns: 1fr;
	/* Full width */
}

.aae-fr-board.layout-popup #aae-btn-new-request {
	display: inline-flex;
	/* Show button only in popup mode */
}

/* Revert sidebar visibility for popup mode (it's hidden via PHP logic but keep CSS clean) */

@media (max-width: 900px) {

	.aae-fr-board,
	.aae-fr-board.pos-left {
		grid-template-columns: 1fr;
	}
}

.aae-fr-main-column {
	min-width: 0;
	/* Prevent grid blowout */
	display: flex;
	flex-direction: column;
}

.aae-fr-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2rem;
	grid-column: 1 / -1;
}

.aae-fr-header h2 {
	font-size: 2rem;
	font-weight: 700;
	margin: 0;
	color: var(--aae-text-main);
}

/* Revert header button if needed or hide it if we moved form to sidebar permanently */
/* Revert header button if needed or hide it if we moved form to sidebar permanently */
#aae-btn-new-request {
	display: none;
	/* Hide modal trigger button */
}

/* Show only when layout is popup */
.aae-fr-board.layout-popup #aae-btn-new-request {
	display: inline-flex;
}

/* Sidebar Form */
.aae-fr-sidebar {
	background: #fff;
	padding: 1.5rem;
	border-radius: var(--aae-radius);
	border: 1px solid var(--aae-border);
	box-shadow: var(--aae-shadow);
	position: sticky;
	top: 2rem;
}

.aae-fr-sidebar h3 {
	margin-top: 0;
	font-size: 1.25rem;
	margin-bottom: 1rem;
	border-bottom: 1px solid var(--aae-border);
	padding-bottom: 0.75rem;
}

.aae-form-group {
	margin-bottom: 1rem;
}

.aae-form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
	font-size: 0.9rem;
}

.aae-form-group input,
.aae-form-group textarea {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid var(--aae-border);
	border-radius: 6px;
	font-size: 0.95rem;
	transition: all 0.2s;
	box-sizing: border-box;
	padding-top: 15px;
	/* Important fix */
}

/* Controls */
.aae-fr-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 2rem;
	justify-content: space-between;
}
.aae-fr-search{
	@media (max-width:768px){
		width: 100%;
	}
}
.aae-fr-filters select,
.aae-fr-search input {
	padding: 0.5rem 1rem;
	border: 1px solid var(--aae-border);
	border-radius: 8px;
	font-size: 0.875rem;
	outline: none;
	transition: var(--aae-transition);
	min-width: 150px;
}

.aae-fr-filters select:focus,
.aae-fr-search input:focus {
	border-color: var(--aae-primary);
	box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* Grid */
.aae-fr-grid {
	gap: 15px;
	display: flex;
	flex-direction: column;
}

.aae-fr-filters {
	display: flex;
	flex-direction: row;
	gap: 15px;
	@media (max-width:767px){
		flex-wrap:wrap;
		width:100%;
	}
}

/* Cards */
.aae-fr-card {
	background: var(--aae-card-bg);
	border-radius: var(--aae-radius);
	padding: 1.5rem;
	transition: var(--aae-transition);
	display: flex;
	flex-direction: column;
	border: 1px solid #dddddd54;
	position: relative;
	cursor: pointer;
}

.aae-fr-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--aae-shadow-hover);
	border-color: var(--aae-primary);
}

.aae-fr-card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 1rem;
}

.aae-fr-status {
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.25rem 0.75rem;
	border-radius: 9999px;
	background: #eef2ff;
	color: var(--aae-primary);
	text-transform: uppercase;
}

.aae-fr-title {
	font-size: 1.25rem;
	font-weight: 600;
	margin: 0 0 0.5rem 0;
	color: var(--aae-text-main);
}

.aae-fr-excerpt {
	font-size: 0.95rem;
	color: var(--aae-text-sub);
	line-height: 1.5;
	flex-grow: 1;
	margin-bottom: 1.5rem;
}

.aae-fr-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-top: 1px solid var(--aae-border);
	padding-top: 1rem;
	width: 100%;
}

.aae-vote-btn {
    background: none;
    border: 1px solid var(--aae-border);
    padding: 5px 8px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1px;
    transition: var(--aae-transition);
    color: var(--aae-text-sub);
    font-weight: 500;
    font-size: 12px;
	.dashicons.dashicons-arrow-up-alt2{
		font-size: 17px;
		line-height: 1;
	}
}

.aae-vote-btn:hover,
.aae-vote-btn.voted {
	border-color: var(--aae-primary);
	color: var(--aae-primary);
	background: #eef2ff;
}

.aae-vote-count {
	font-weight: 700;
}

/* Buttons */
.aae-btn {
	padding: 0.6rem 1.2rem;
	border-radius: 8px;
	font-weight: 600;
	border: none;
	cursor: pointer;
	transition: var(--aae-transition);
	display: block;
	justify-content: center;
	align-items: center;
}

.aae-btn-primary {
	background: var(--aae-primary);
	color: white;
}

.aae-btn-primary:hover {
	background: var(--aae-primary-hover);
}

/* Modals */
.aae-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(4px);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
	opacity: 1;
	transition: opacity 0.3s ease;
	transform: translate(-50%,-50%);
}

.aae-modal.hidden {
	opacity: 0;
	pointer-events: none;
	visibility: hidden;
}

.aae-modal-content {
	background: white;
	padding: 2rem;
	border-radius: var(--aae-radius);
	width: 100%;
	max-width: 500px;
	position: relative;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
	transform: scale(1);
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
	max-height: 700px;
	overflow-y: auto;
	@media (max-width:768px){
		max-height: 60vh;
		overflow-y: auto;
		padding: 1rem;
	}
}

.aae-modal.hidden .aae-modal-content {
	transform: scale(0.95);
}

.aae-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	font-size: 1.5rem;
	cursor: pointer;
	line-height: 1;
	color: var(--aae-text-sub);
}

/* Forms */
.aae-form-group {
	margin-bottom: 1rem;
}

.aae-form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
	color: var(--aae-text-main);
}

.aae-form-group input,
.aae-form-group textarea {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid var(--aae-border);
	border-radius: 8px;
	font-family: inherit;
}

.full-width {
	width: 100%;
}

/* Single View */
.aae-single-header {
	border-bottom: 1px solid var(--aae-border);
	padding-bottom: 1.5rem;
	margin-bottom: 1.5rem;
}

.aae-single-header h2 {
	margin-top: 0.5rem;
	margin-bottom: 0;
	font-size: 1.75rem;
	color: var(--aae-text-main);
}

.aae-single-body {
	font-size: 1.1rem;
	color: var(--aae-text-main);
	line-height: 1.7;
	margin-bottom: 2rem;
}

.aae-single-comments h3 {
	font-size: 1.5rem;
	margin-bottom: 1.5rem;
	color: var(--aae-text-main);
}

.aae-comments-list {
	margin-bottom: 2rem;
	max-height: 400px;
	overflow-y: auto;
}

.aae-comments-list .comment {
	padding: 1rem;
	background: var(--aae-bg);
	border-radius: 8px;
	margin-bottom: 1rem;
	list-style: none;
}

.aae-comments-list .comment-body {
	margin: 0;
}

.aae-comments-list .fn {
	font-weight: 700;
	color: var(--aae-text-main);
	margin-right: 0.5rem;
}

.aae-comments-list .comment-metadata {
	font-size: 0.85rem;
	color: var(--aae-text-sub);
	margin-bottom: 0.5rem;
}

.aae-comments-list p {
	margin: 0;
	color: var(--aae-text-sub);
}

.aae-login-prompt {
	text-align: center;
	padding: 2rem;
	background: var(--aae-bg);
	border-radius: var(--aae-radius);
	border: 1px dashed var(--aae-border);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.aae-modal-large {
	max-width: 800px;
	@media (max-width:767px){
		width:90%;
	}
}

/* Messages */
.aae-message {
	padding: 1rem;
	border-radius: 8px;
	margin-bottom: 1rem;
	font-size: 0.9rem;
	animation: slideIn 0.3s ease;
}

.aae-message.success {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.aae-message.error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

.aae-fr-pagination {
	display: flex;
	justify-content: center;
	margin: 15px;
	margin-top: 50px;
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}

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

.aae-comments-list .reply {
	display: none !important;
}

.voted:hover .dashicons-arrow-up-alt2:before {
	content: "\f347";
}

/* Auth Tabs */
.aae-auth-tabs {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--aae-border);
	padding-bottom: 10px;
}

.aae-auth-tab {
	background: none;
	border: none;
	padding: 8px 16px;
	cursor: pointer;
	font-weight: 600;
	color: var(--aae-text-sub);
	border-radius: 6px;
	transition: var(--aae-transition);
}

.aae-auth-tab.active {
	background: var(--aae-primary);
	color: white;
}

.aae-auth-tab:hover:not(.active) {
	background: var(--aae-bg);
	color: var(--aae-primary);
}

.hidden {
	display: none !important;
}
.aae-form-comment textarea{
	width: 100% !important;
}
.avatar.photo {
    height: 30px;
    width: 30px;
    border-radius: 50px;
}
.comment-author.vcard {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.aae-btn-secondary {
    padding: 8px 15px;
    font-size: 14px;
}

.aae-fr-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
}

body .body_wrapper{
	overflow: unset !important;
}


/* Css By Habib */

.aae-fr-filters select {
    padding: 8px;
    height: 40px;
    min-width: 90%;
    font-size: 14px;
	@media (max-width:767px){
		width:100%;
	}
}

.aae-fr-filters {}

.aae-fr-search input {
    width: 104%;
}

.aae-fr-search input {
    width: 100%;
    padding: 10px;
}

.aae-fr-search input#aae-fr-search-input {
    width: 100%;
    height: 40px;
}

.aae-fr-search {
    width: 35%;
	@media (max-width:767px){
		width:100%;
	}
}

span.aae-fr-status {
    background: #f6502c;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 15px; 5px;
    line-height: 1;
    color: #fff;
    font-size: 12px;
    border-radius: 3px;
    text-transform: capitalize;
    font-weight: normal;
}



span.dashicons.dashicons-arrow-up-alt2 {
}

button.aae-vote-btn.voted {
    border: 2px solid #f6502c;
    background: #f6502c;
    color: #fff;
    padding: 3px 10px 3px 20px;
    line-height: 1;
    font-size: 12px;
    font-weight: normal;
    border-radius: 4px;
    transition: all 0.3s;
}
button.aae-vote-btn.voted:hover{
    border: 2px solid #f6502c;
    background: transparent;
    color: #000; 
}
button.aae-vote-btn {
    border: 2px solid #f6502c;
    background: transparent;
    color: #000;
    padding: 3px 10px 3px 20px;
    line-height: 1;
    font-size: 12px;
    font-weight: normal;
    border-radius: 4px;
    transition: all 0.3s;
	transition: all 0.3s;
}
button.aae-vote-btn:hover{
    border: 2px solid #f6502c;
    background: #f6502c;
    color: #fff; 
}
form#aae-form-submit input {
    height: 40px;
    font-size: 14px;
    font-weight: normal;
    padding: 12px;
}
form#aae-form-submit input {
    height: 40px;
    font-size: 14px;
    font-weight: normal;
    padding: 12px;
}
button.aae-btn.aae-btn-primary.full-width {
    border-radius: 5px;
    border: 2px solid #f6502c;
    padding: 4px;
    font-size: 16px;
    transition: all 0.3s;
    color: #fff;
    font-weight: 500;
}
button.aae-btn.aae-btn-primary.full-width:hover{ 
    border: 2px solid #f6502c;
	background: transparent;
    transition: all 0.3s;
    color: #000; 
}

/* aae feature request css update riad */
.aae-vote-btn {
  position: relative;
  padding-left: 16px;
  cursor: pointer;
}

/* default → chevron DOWN */
.aae-vote-btn::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;

  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
}

/* when .voted exists → chevron UP */
.aae-vote-btn.voted::before {
  border-top: 0;
  border-bottom: 6px solid currentColor;
}

.aae-form-group small {
    margin-top: 12px;
    display: block;
}