/* ========================================
   MODERN THEME - Universal Styles for All Frontend Pages
   ======================================== */

/* Enhanced Variables */
:root {
	--primary: #4f46e5;
	--primary-dark: #4338ca;
	--primary-light: rgba(79, 70, 229, 0.1);
	--secondary: #7c3aed;
	--accent-blue: #3b82f6;
	--accent-green: #10b981;
	--accent-orange: #f97316;
	--accent-red: #ef4444;

	--text-primary: #0f172a;
	--text-secondary: #475569;
	--text-muted: #64748b;

	--bg-primary: #ffffff;
	--bg-secondary: #f8faff;
	--bg-tertiary: #f1f5f9;

	--border-light: #e2e8f0;
	--border-medium: #cbd5e1;

	--shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
	--shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
	--shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.12);
	--shadow-xl: 0 30px 80px rgba(15, 23, 42, 0.16);

	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 16px;
	--radius-xl: 20px;
	--radius-2xl: 24px;

	--transition: all 0.3s ease;
}

/* ========================================
   Universal Page Styles
   ======================================== */

.page-hero {
	padding: 120px 0 80px;
	background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
	border-bottom: 1px solid var(--border-light);
	position: relative;
	overflow: hidden;
}

.page-hero::before {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	width: 600px;
	height: 600px;
	background: radial-gradient(circle, rgba(79, 70, 229, 0.06) 0%, transparent 70%);
	pointer-events: none;
}

.page-hero-content {
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
	position: relative;
}

.page-badge {
	display: inline-block;
	padding: 6px 16px;
	background: linear-gradient(135deg, var(--primary-light), rgba(99, 102, 241, 0.1));
	border: 1px solid rgba(79, 70, 229, 0.2);
	border-radius: 50px;
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--primary);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 20px;
}

.page-title {
	font-size: 3rem;
	font-weight: 800;
	color: var(--text-primary);
	margin-bottom: 20px;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.page-subtitle {
	font-size: 1.25rem;
	color: var(--text-secondary);
	line-height: 1.6;
	max-width: 600px;
	margin: 0 auto;
}

.page-breadcrumb {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 24px;
	font-size: 0.9375rem;
	color: var(--text-muted);
}

.page-breadcrumb a {
	color: var(--primary);
	text-decoration: none;
	transition: var(--transition);
}

.page-breadcrumb a:hover {
	color: var(--primary-dark);
}

.page-breadcrumb svg {
	width: 16px;
	height: 16px;
}

/* Page Content Container */
.page-content {
	padding: 80px 0;
	background: var(--bg-primary);
}

.content-wrapper {
	max-width: auto;
	margin: 0 auto;
}

/* ========================================
   Modern Cards
   ======================================== */

.modern-card {
	background: var(--bg-primary);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-xl);
	padding: 32px;
	transition: var(--transition);
	box-shadow: var(--shadow-sm);
}

.modern-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-lg);
	border-color: rgba(79, 70, 229, 0.2);
}

.modern-card-header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 20px;
}

.modern-card-icon {
	width: 56px;
	height: 56px;
	border-radius: var(--radius-md);
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--primary-light), rgba(99, 102, 241, 0.1));
	color: var(--primary);
	flex-shrink: 0;
}

.modern-card-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--text-primary);
	margin: 0;
}

.modern-card-body {
	color: var(--text-secondary);
	line-height: 1.7;
	font-size: 1rem;
}

/* ========================================
   Modern Buttons
   ======================================== */

.btn-modern {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	font-weight: 600;
	font-size: 1rem;
	border-radius: var(--radius-md);
	text-decoration: none;
	transition: var(--transition);
	cursor: pointer;
	border: none;
	font-family: inherit;
}

.btn-modern-primary {
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
	color: white;
	box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.btn-modern-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
}

.btn-modern-secondary {
	background: var(--bg-primary);
	color: var(--primary);
	border: 2px solid var(--border-medium);
}

.btn-modern-secondary:hover {
	border-color: var(--primary);
	background: var(--primary-light);
}

.btn-modern-outline {
	background: transparent;
	color: var(--primary);
	border: 2px solid var(--primary);
}

.btn-modern-outline:hover {
	background: var(--primary);
	color: white;
}

/* ========================================
   Modern Forms
   ======================================== */

.form-modern {
	background: var(--bg-primary);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-xl);
	padding: 40px;
	box-shadow: var(--shadow-md);
}

.form-group-modern {
	margin-bottom: 24px;
}

.form-label-modern {
	display: block;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 8px;
	font-size: 0.9375rem;
}

.form-input-modern {
	width: 100%;
	padding: 14px 16px;
	border: 2px solid var(--border-light);
	border-radius: var(--radius-md);
	font-size: 1rem;
	transition: var(--transition);
	font-family: inherit;
	background: var(--bg-primary);
	color: var(--text-primary);
}

.form-input-modern:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px var(--primary-light);
}

.form-textarea-modern {
	min-height: 140px;
	resize: vertical;
}

.form-select-modern {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%2364748b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 48px;
}

.form-help-text {
	display: block;
	margin-top: 6px;
	font-size: 0.875rem;
	color: var(--text-muted);
}

.form-error {
	display: block;
	margin-top: 6px;
	font-size: 0.875rem;
	color: var(--accent-red);
	font-weight: 500;
}

/* ========================================
   Grid Layouts
   ======================================== */

.grid-modern {
	display: grid;
	gap: 32px;
}

.grid-modern-2 {
	grid-template-columns: repeat(2, 1fr);
}

.grid-modern-3 {
	grid-template-columns: repeat(3, 1fr);
}

.grid-modern-4 {
	grid-template-columns: repeat(4, 1fr);
}

/* ========================================
   Modern Sections
   ======================================== */

.section-modern {
	padding: 80px 0;
}

.section-modern-alt {
	background: var(--bg-secondary);
}

.section-header-center {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 64px;
}

.section-header-center h2 {
	font-size: 2.5rem;
	font-weight: 800;
	color: var(--text-primary);
	margin-bottom: 16px;
	line-height: 1.2;
}

.section-header-center p {
	font-size: 1.125rem;
	color: var(--text-secondary);
	line-height: 1.6;
}

/* ========================================
   Modern Lists
   ======================================== */

.list-modern {
	list-style: none;
	padding: 0;
	margin: 0;
}

.list-modern li {
	padding: 16px 0;
	padding-left: 32px;
	position: relative;
	font-size: 1rem;
	color: var(--text-secondary);
	line-height: 1.6;
	border-bottom: 1px solid var(--border-light);
}

.list-modern li:last-child {
	border-bottom: none;
}

.list-modern li:before {
	content: "✓";
	position: absolute;
	left: 0;
	color: var(--accent-green);
	font-weight: 700;
	font-size: 1.125rem;
}

/* ========================================
   Modern Alerts
   ======================================== */

.alert-modern {
	padding: 16px 20px;
	border-radius: var(--radius-md);
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 20px;
	border: 1px solid;
}

.alert-modern-info {
	background: rgba(59, 130, 246, 0.1);
	border-color: rgba(59, 130, 246, 0.3);
	color: #1e40af;
}

.alert-modern-success {
	background: rgba(16, 185, 129, 0.1);
	border-color: rgba(16, 185, 129, 0.3);
	color: #065f46;
}

.alert-modern-warning {
	background: rgba(249, 115, 22, 0.1);
	border-color: rgba(249, 115, 22, 0.3);
	color: #9a3412;
}

.alert-modern-error {
	background: rgba(239, 68, 68, 0.1);
	border-color: rgba(239, 68, 68, 0.3);
	color: #991b1b;
}

.alert-modern-icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
}

/* ========================================
   Modern Badges
   ======================================== */

.badge-modern {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 50px;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.badge-modern-primary {
	background: var(--primary-light);
	color: var(--primary);
}

.badge-modern-success {
	background: rgba(16, 185, 129, 0.1);
	color: #065f46;
}

.badge-modern-warning {
	background: rgba(249, 115, 22, 0.1);
	color: #9a3412;
}

.badge-modern-error {
	background: rgba(239, 68, 68, 0.1);
	color: #991b1b;
}

/* ========================================
   Modern Accordions/FAQ
   ======================================== */

.accordion-modern {
	border: 1px solid var(--border-light);
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: var(--bg-primary);
}

.accordion-item-modern {
	border-bottom: 1px solid var(--border-light);
}

.accordion-item-modern:last-child {
	border-bottom: none;
}

.accordion-header-modern {
	padding: 24px 28px;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
	transition: var(--transition);
	background: var(--bg-primary);
}

.accordion-header-modern:hover {
	background: var(--bg-secondary);
}

.accordion-header-modern h3 {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--text-primary);
	margin: 0;
}

.accordion-icon-modern {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	color: var(--text-muted);
	transition: var(--transition);
}

.accordion-item-modern.active .accordion-icon-modern {
	transform: rotate(180deg);
	color: var(--primary);
}

.accordion-content-modern {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.accordion-item-modern.active .accordion-content-modern {
	max-height: 1000px;
}

.accordion-body-modern {
	padding: 0 28px 24px;
	color: var(--text-secondary);
	line-height: 1.7;
	font-size: 0.9375rem;
}

/* ========================================
   Modern Tables
   ======================================== */

.table-modern {
	width: 100%;
	border-collapse: collapse;
	background: var(--bg-primary);
	border: 1px solid var(--border-light);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.table-modern thead {
	background: var(--bg-secondary);
}

.table-modern th {
	padding: 16px 20px;
	text-align: left;
	font-weight: 600;
	font-size: 0.875rem;
	color: var(--text-primary);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-bottom: 2px solid var(--border-light);
}

.table-modern td {
	padding: 16px 20px;
	border-bottom: 1px solid var(--border-light);
	color: var(--text-secondary);
	font-size: 0.9375rem;
}

.table-modern tr:last-child td {
	border-bottom: none;
}

.table-modern tbody tr:hover {
	background: var(--bg-secondary);
}

/* ========================================
   Responsive Typography
   ======================================== */

@media (max-width: 992px) {
	.page-hero {
		padding: 80px 0 60px;
	}

	.page-title {
		font-size: 2.5rem;
	}

	.grid-modern-3,
	.grid-modern-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.page-title {
		font-size: 2rem;
	}

	.page-subtitle {
		font-size: 1.0625rem;
	}

	.section-modern {
		padding: 60px 0;
	}

	.grid-modern-2,
	.grid-modern-3,
	.grid-modern-4 {
		grid-template-columns: 1fr;
	}

	.modern-card {
		padding: 24px;
	}

	.form-modern {
		padding: 28px;
	}
}

@media (max-width: 576px) {
	.page-hero {
		padding: 60px 0 40px;
	}

	.page-title {
		font-size: 1.75rem;
	}

	.section-header-center h2 {
		font-size: 1.875rem;
	}
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin: 50px 0 30px;
	padding: 20px 0;
	flex-wrap: wrap;
}

.pagination-btn {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	background: white;
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	color: #4a5568;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
	cursor: pointer;
}

.pagination-btn:hover:not(.disabled) {
	background: #667eea;
	border-color: #667eea;
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pagination-btn.disabled {
	opacity: 0.4;
	cursor: not-allowed;
	pointer-events: none;
}

.pagination-btn svg {
	width: 18px;
	height: 18px;
}

.pagination-numbers {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
}

.pagination-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: white;
	border: 2px solid #e2e8f0;
	border-radius: 8px;
	color: #4a5568;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
}

.pagination-number:hover {
	background: #f7fafc;
	border-color: #667eea;
	color: #667eea;
	transform: translateY(-2px);
}

.pagination-number.active {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-color: #667eea;
	color: white;
	cursor: default;
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pagination-ellipsis {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	color: #a0aec0;
	font-weight: 600;
}

@media (max-width: 768px) {
	.pagination {
		gap: 10px;
	}

	.pagination-btn {
		padding: 8px 16px;
		font-size: 14px;
	}

	.pagination-number {
		width: 36px;
		height: 36px;
		font-size: 14px;
	}
}
