/* Account Page Layout */
.agcga-account {
	display: flex;
	gap: 1.5rem;
	max-width: 1400px;
	margin: 0 auto;
	padding: 2rem;
	font-family:
		-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
		Cantarell, "Helvetica Neue", sans-serif;
}

.agcga-account.has-iframe {
	padding: 0;
}

/* Sidebar Styles */
.agcga-account-sidebar {
	width: 280px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	padding: 2rem;
	position: sticky;
	top: 2rem;
	height: fit-content;
}

.agcga-account-user {
	text-align: center;
	margin-bottom: 2rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid #eee;
}

.agcga-account-avatar {
	width: 96px;
	height: 96px;
	margin: 0 auto 1rem;
	border-radius: 50%;
	overflow: hidden;
}

.agcga-account-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.agcga-account-user h2 {
	margin: 0.5rem 0;
	font-size: 1.25rem;
	color: #333;
}

.agcga-account-role {
	color: #666;
	font-size: 0.875rem;
}

/* Navigation Styles */
.agcga-account-nav {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.agcga-nav-item {
	display: flex;
	align-items: center;
	padding: 0.75rem 1rem;
	color: #666;
	text-decoration: none;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.agcga-nav-item i {
	margin-right: 0.75rem;
	width: 20px;
	text-align: center;
}

.agcga-nav-item:hover {
	background: #f5f5f5;
	color: #333;
}

.agcga-nav-item.active {
	background: #cf152d;
	color: #fff;
}

/* Content Area Styles */
.agcga-account-content {
	flex: 1;
	background: #fff;
	border-radius: 0;
	padding: 0 0 0 1rem;
}

/* Profile actions removed as button moved to header */

/* Profile Card */
.agcga-profile-card {
	background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
	border-radius: 12px;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
	margin-bottom: 2rem;
	overflow: hidden;
	transition: all 0.3s ease;
	border: 1px solid rgba(0, 0, 0, 0.05);
}

.agcga-profile-card:hover {
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
	transform: translateY(-5px);
}

.agcga-profile-card-header {
	display: flex;
	align-items: center;
	padding: 2rem;
	gap: 2rem;
	background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
	flex-wrap: wrap;
	position: relative;
}

.agcga-profile-avatar {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	overflow: hidden;
	border: 4px solid #fff;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.agcga-profile-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.agcga-profile-info {
	flex: 1;
}

.agcga-profile-info h2 {
	margin: 0 0 0.5rem;
	font-size: 1.75rem;
	color: #333;
}

.agcga-profile-title {
	margin: 0 0 1rem;
	color: #666;
	font-size: 1.1rem;
}

.agcga-member-badge {
	display: inline-block;
	padding: 0.5rem 1rem;
	background: #cf152d;
	color: #fff;
	border-radius: 30px;
	font-size: 0.875rem;
	font-weight: 500;
	box-shadow: 0 3px 6px rgba(207, 21, 45, 0.2);
}

/* Profile Sections */
.agcga-profile-sections {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.agcga-profile-section {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
	overflow: hidden;
	transition: all 0.3s ease;
	border: 1px solid rgba(0, 0, 0, 0.05);
}

.agcga-profile-section:hover {
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.agcga-profile-section h3 {
	margin: 0;
	padding: 1.25rem 1.5rem;
	background: #f8f9fa;
	color: #333;
	font-size: 1.25rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.agcga-profile-section h3 i {
	margin-right: 0.75rem;
	color: #cf152d;
}

/* Profile Grid */
.agcga-profile-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 1.5rem;
	padding: 1.5rem;
}

.agcga-profile-field {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	background: #f8f9fa;
	padding: 1.25rem;
	border-radius: 10px;
	transition: all 0.3s ease;
	border: 1px solid rgba(0, 0, 0, 0.03);
}

.agcga-profile-field:hover {
	background: #fff;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	transform: translateY(-3px);
}

.agcga-field-icon {
	width: 40px;
	height: 40px;
	background: rgba(207, 21, 45, 0.1);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #cf152d;
	font-size: 1.1rem;
}

.agcga-field-content {
	flex: 1;
}

.agcga-profile-field label {
	display: block;
	font-size: 0.875rem;
	color: #666;
	margin-bottom: 0.5rem;
	font-weight: 500;
}

.agcga-profile-field p {
	margin: 0;
	color: #333;
	font-size: 1rem;
	line-height: 1.5;
}

.agcga-empty-field {
	color: #999;
	font-style: italic;
}

/* Buttons */
.agcga-edit-profile {
	background: #cf152d;
	color: #fff;
	border: none;
	padding: 0.75rem 1.5rem;
	border-radius: 30px;
	cursor: pointer;
	font-size: 0.875rem;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	box-shadow: 0 4px 10px rgba(207, 21, 45, 0.2);
}

.agcga-profile-card-header .agcga-edit-profile {
	position: absolute;
	top: 1rem;
	right: 1rem;
	white-space: nowrap;
	padding: 0.5rem 1rem;
	font-size: 0.8rem;
}

.agcga-edit-profile:hover {
	background: #b01126;
	transform: translateY(-2px);
	box-shadow: 0 6px 15px rgba(207, 21, 45, 0.3);
}

.agcga-edit-profile:active {
	transform: translateY(0);
	box-shadow: 0 2px 5px rgba(207, 21, 45, 0.2);
}

/* Committee Cards */
.agcga-committee-card {
	background: #f8f8f8;
	padding: 1.5rem;
	border-radius: 8px;
	border: 1px solid #eee;
	transition: all 0.3s ease;
}

.agcga-committee-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.agcga-committee-card h3 {
	margin: 0 0 0.5rem;
	color: #333;
	font-size: 1.2rem;
	font-weight: 600;
}

.agcga-committee-card p {
	margin: 0 0 1rem;
	color: #666;
	font-size: 0.875rem;
}

.agcga-badge {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	background: #4caf50;
	color: #fff;
	border-radius: 20px;
	font-size: 0.75rem;
}

/* Footer */
.agcga-account-footer {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid #eee;
}

.agcga-logout-link {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #cf152d;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s ease;
}

.agcga-logout-link i {
	margin-right: 0.5rem;
}

.agcga-logout-link:hover {
	color: #b01126;
}

/* Tab Content */
.agcga-tab-content {
	display: none;
}

.agcga-tab-content.active {
	display: block;
}

.agcga-committees-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5rem;
	padding: 0 0 1.5rem 0;
}

/* Not found notice */
.agcga-not-found-notice {
	background: #f8f8f8;
	padding: 1.5rem;
	border-radius: 8px;
	border: 1px solid #eee;
	transition: all 0.3s ease;
	text-align: center;
	width: 100%;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.agcga-not-found-notice:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.agcga-empty-state-icon {
	margin-bottom: 1rem;
	display: flex;
	justify-content: center;
}

.agcga-empty-state-icon svg {
	width: 48px;
	height: 48px;
	filter: drop-shadow(0 2px 4px rgba(207, 21, 45, 0.2));
	transition: transform 0.3s ease;
	opacity: 0.9;
}

.agcga-not-found-notice:hover .agcga-empty-state-icon svg {
	transform: scale(1.05);
	opacity: 1;
}

.agcga-empty-state-title {
	font-size: 1.2rem;
	font-weight: 600;
	color: #333;
	margin: 0 0 0.5rem;
}

.agcga-empty-state-description {
	color: #666;
	font-size: 0.875rem;
	line-height: 1.5;
	margin: 0 0 1rem;
}
/* End of not found notice */

/* Modal Styles */
.agcga-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	opacity: 0;
	transition: opacity 0.3s ease;
}
.agcga-modal-content {
	background-color: #fff;
	border-radius: 12px;
	width: 90%;
	max-width: 500px;
	box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
	transform: translateY(20px);
	transition: transform 0.3s ease;
}
.agcga-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem;
	border-bottom: 1px solid #eee;
}
.agcga-modal-header h2 {
	margin: 0;
	font-size: 1.5rem;
	color: #333;
}
.agcga-modal-close {
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: #666;
}
.agcga-modal-body {
	padding: 1.5rem;
}
.agcga-modal-footer {
	padding: 1rem 1.5rem;
	text-align: right;
	border-top: 1px solid #eee;
}
.agcga-modal-close-btn {
	background: #cf152d;
	color: #fff;
	border: none;
	padding: 0.75rem 1.5rem;
	border-radius: 30px;
	cursor: pointer;
	font-size: 0.875rem;
	transition: all 0.3s ease;
}
.agcga-modal-close-btn:hover {
	background: #b01126;
}

/* iFrame Styles */
.agcga-iframe {
	width: 100%;
	height: 600px;
	border: none;
	background: #fff;
}

.agcga-tab-iframe {
	display: none;
}

.agcga-tab-iframe.active {
	display: block;
}

.agcga-button {
	display: inline-flex;
	align-items: center;
	padding: 0.75rem 1.5rem;
	background: #cf152d;
	color: white;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 500;
	transition: background 0.3s ease;
}

.agcga-button:hover {
	background: #b01126;
	color: white;
}

.agcga-button i {
	margin-right: 0.5rem;
}

/* Communities Styles */
.agcga-communities-container {
	padding: 1.5rem 0;
}

.agcga-communities-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 1.5rem;
}

.agcga-community-card {
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	overflow: hidden;
	transition: all 0.3s ease;
	border: 1px solid rgba(0, 0, 0, 0.05);
	display: flex;
	flex-direction: column;
	height: 100%;
}

.agcga-community-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.agcga-community-card-header {
	padding: 1.5rem 1.5rem 0;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.agcga-community-icon {
	width: 50px;
	height: 50px;
	background: rgba(207, 21, 45, 0.1);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #cf152d;
	font-size: 1.25rem;
	box-shadow: 0 4px 10px rgba(207, 21, 45, 0.15);
	transition: all 0.3s ease;
}

.agcga-community-card:hover .agcga-community-icon {
	transform: scale(1.05);
	background: rgba(207, 21, 45, 0.15);
}

.agcga-community-status .agcga-badge {
	padding: 0.35rem 0.85rem;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: 500;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.agcga-community-status .agcga-badge.active {
	background: #4caf50;
	color: white;
}

.agcga-community-status .agcga-badge.inactive {
	background: #f44336;
	color: white;
}

.agcga-community-card-body {
	padding: 1.5rem;
	flex: 1;
}

.agcga-community-role {
	margin: 0 0 0.75rem;
	font-size: 1.25rem;
	color: #333;
	font-weight: 600;
	line-height: 1.3;
}

.agcga-community-description {
	margin: 0;
	color: #666;
	font-size: 0.9rem;
	line-height: 1.5;
}

.agcga-community-card-footer {
	padding: 1rem 1.5rem;
	border-top: 1px solid rgba(0, 0, 0, 0.05);
	background: #f8f9fa;
}

.agcga-community-membership {
	color: #666;
	font-size: 0.85rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.agcga-community-membership i {
	color: #cf152d;
}

/* Responsive Design */
@media (max-width: 1024px) {
	.agcga-account {
		flex-direction: column;
		padding: 1.5rem;
	}

	.agcga-account-sidebar {
		width: 100%;
		position: static;
	}

	.agcga-profile-card-header {
		flex-direction: column;
		text-align: center;
		gap: 1rem;
	}

	.agcga-profile-card-header .agcga-edit-profile {
		position: absolute;
		top: 1rem;
		right: 1rem;
	}

	.agcga-content-header {
		flex-direction: column;
		gap: 1rem;
		align-items: flex-start;
	}

	.agcga-content-header h1 {
		margin-bottom: 0.5rem;
	}
}

@media (max-width: 768px) {
	.agcga-account {
		padding: 1rem;
	}

	.agcga-profile-grid,
	.agcga-communities-grid {
		grid-template-columns: 1fr;
		padding: 1rem;
	}

	.agcga-profile-section h3 {
		padding: 1rem;
		font-size: 1.1rem;
	}

	.agcga-profile-field {
		padding: 1rem;
	}

	.agcga-account-content {
		padding: 0;
	}

	.agcga-community-card-header {
		padding: 1.25rem 1.25rem 0;
	}

	.agcga-community-card-body {
		padding: 1.25rem;
	}

	.agcga-community-card-footer {
		padding: 0.75rem 1.25rem;
	}
}

@media (max-width: 480px) {
	.agcga-account {
		padding: 0.5rem;
	}

	.agcga-account-content {
		padding: 0;
	}

	.agcga-profile-avatar {
		width: 100px;
		height: 100px;
	}

	.agcga-profile-info h2 {
		font-size: 1.5rem;
	}

	.agcga-profile-title {
		font-size: 1rem;
	}

	.agcga-member-badge {
		padding: 0.4rem 0.8rem;
		font-size: 0.8rem;
	}

	.agcga-profile-card-header .agcga-edit-profile {
		padding: 0.4rem 0.8rem;
		font-size: 0.75rem;
	}

	.agcga-community-icon {
		width: 40px;
		height: 40px;
		font-size: 1.1rem;
	}

	.agcga-community-role {
		font-size: 1.1rem;
	}

	.agcga-community-description {
		font-size: 0.85rem;
	}

	.agcga-community-status .agcga-badge {
		padding: 0.25rem 0.7rem;
		font-size: 0.7rem;
	}
}
