/* SmartAuditor.AI Common Styles */

:root {
	--bg-primary: #0a0b0f;
	--bg-secondary: #12141c;
	--bg-tertiary: #1a1d28;
	--bg-card: #151821;
	--accent-primary: #00f5d4;
	--accent-secondary: #7b61ff;
	--accent-warning: #ffc107;
	--accent-danger: #ff4757;
	--text-primary: #ffffff;
	--text-secondary: #a0a8c0;
	--text-muted: #6b7280;
	--border-color: rgba(255, 255, 255, 0.08);
	--glow-primary: rgba(0, 245, 212, 0.15);
	--glow-secondary: rgba(123, 97, 255, 0.15);
	--gradient-primary: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
	--gradient-dark: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
	--font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
	--font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

body {
	font-family: var(--font-primary);
	background: var(--bg-primary);
	color: var(--text-primary);
	margin: 0;
	padding: 0;
	min-height: 100vh;
	overflow-x: hidden;
}

a {
	color: var(--accent-primary);
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover {
	color: var(--accent-secondary);
}

/* Background Effects */
.bg-grid {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: 
		linear-gradient(rgba(0, 245, 212, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 245, 212, 0.03) 1px, transparent 1px);
	background-size: 50px 50px;
	pointer-events: none;
	z-index: 0;
}

.bg-glow {
	position: fixed;
	width: 600px;
	height: 600px;
	border-radius: 50%;
	filter: blur(150px);
	opacity: 0.4;
	pointer-events: none;
	z-index: 0;
	animation: pulse-glow 8s ease-in-out infinite;
}

.bg-glow-1 {
	top: -200px;
	left: -100px;
	background: var(--accent-secondary);
}

.bg-glow-2 {
	top: 30%;
	right: -200px;
	background: var(--accent-primary);
}

@keyframes pulse-glow {
	0%, 100% { opacity: 0.4; }
	50% { opacity: 0.6; }
}

/* Navbar */
.navbar {
	background: rgba(10, 11, 15, 0.85) !important;
	backdrop-filter: blur(20px);
	border-bottom: 1px solid var(--border-color);
	padding: 1rem 0;
	z-index: 1000;
}

.navbar-brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
}

.brand-logo {
	filter: drop-shadow(0 0 10px var(--accent-primary));
}

.brand-text {
	font-weight: 700;
	font-size: 1.25rem;
	background: var(--gradient-primary);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.navbar-toggler {
	border: 1px solid var(--border-color);
	padding: 0.5rem;
}

.navbar-toggler-icon {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.7%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
	color: var(--text-secondary) !important;
	font-weight: 500;
	padding: 0.5rem 1rem !important;
	transition: all 0.3s ease;
	position: relative;
}

.nav-link:hover {
	color: var(--text-primary) !important;
}

.nav-link.featured {
	color: var(--accent-primary) !important;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.nav-link.featured:hover {
	text-shadow: 0 0 20px var(--accent-primary);
}

/* Buttons */
.btn-accent {
	background: var(--gradient-primary);
	border: none;
	color: var(--bg-primary) !important;
	font-weight: 600;
	padding: 0.5rem 1.25rem;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.btn-accent:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 30px var(--glow-primary);
	color: var(--bg-primary) !important;
}

.btn-outline-accent {
	background: transparent;
	border: 1px solid var(--accent-primary);
	color: var(--accent-primary) !important;
	font-weight: 500;
	padding: 0.5rem 1.25rem;
	border-radius: 8px;
	transition: all 0.3s ease;
}

.btn-outline-accent:hover {
	background: var(--accent-primary);
	color: var(--bg-primary) !important;
}

.btn-primary-custom {
	background: var(--gradient-primary);
	border: none;
	color: var(--bg-primary);
	font-weight: 600;
	padding: 0.75rem 2rem;
	border-radius: 10px;
	transition: all 0.3s ease;
	cursor: pointer;
}

.btn-primary-custom:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 30px var(--glow-primary);
}

.btn-danger-custom {
	background: linear-gradient(135deg, var(--accent-danger), #ff6b6b);
	border: none;
	color: white;
	font-weight: 600;
	padding: 0.75rem 2rem;
	border-radius: 10px;
	transition: all 0.3s ease;
	cursor: pointer;
}

.btn-danger-custom:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 30px rgba(255, 71, 87, 0.3);
}

/* Footer */
.site-footer {
	position: relative;
	z-index: 1;
	background: var(--bg-primary);
	border-top: 1px solid var(--border-color);
	padding: 80px 20px 30px;
	margin-top: auto;
}

.footer-glow {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 600px;
	height: 200px;
	background: var(--accent-primary);
	filter: blur(150px);
	opacity: 0.05;
	pointer-events: none;
}

.footer-grid {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1.5fr;
	gap: 3rem;
}

@media (max-width: 992px) {
	.footer-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 576px) {
	.footer-grid {
		grid-template-columns: 1fr;
	}
}

.footer-brand img {
	width: 48px;
	margin-bottom: 1rem;
	filter: drop-shadow(0 0 10px var(--accent-primary));
}

.footer-brand h4 {
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.footer-tagline {
	color: var(--text-muted);
	font-size: 0.9rem;
	margin-bottom: 1.5rem;
}

.social-links {
	display: flex;
	gap: 1rem;
}

.social-links a {
	width: 40px;
	height: 40px;
	background: var(--bg-tertiary);
	border: 1px solid var(--border-color);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-secondary);
	font-size: 1.1rem;
	transition: all 0.3s ease;
}

.social-links a:hover {
	background: var(--accent-primary);
	color: var(--bg-primary);
	border-color: var(--accent-primary);
}

.footer-links h5 {
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 1.25rem;
	color: var(--text-primary);
}

.footer-links ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-links li {
	margin-bottom: 0.75rem;
}

.footer-links a {
	color: var(--text-secondary);
	text-decoration: none;
	font-size: 0.95rem;
	transition: color 0.3s ease;
}

.footer-links a:hover {
	color: var(--accent-primary);
}

.partner-badges {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.partner-badge img {
	max-width: 180px;
	height: auto;
	opacity: 0.8;
	transition: opacity 0.3s ease;
}

.partner-badge:hover img {
	opacity: 1;
}

.footer-bottom {
	max-width: 1200px;
	margin: 3rem auto 0;
	padding-top: 2rem;
	border-top: 1px solid var(--border-color);
	text-align: center;
}

.footer-bottom p {
	color: var(--text-muted);
	font-size: 0.9rem;
	margin: 0;
}

.footer-bottom a {
	color: var(--text-secondary);
	text-decoration: none;
}

.footer-bottom a:hover {
	color: var(--accent-primary);
}

/* Page Container */
.page-container {
	position: relative;
	z-index: 1;
	min-height: calc(100vh - 200px);
	padding-top: 100px;
}

/* Cards */
.card-custom {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 16px;
	padding: 2rem;
	transition: all 0.3s ease;
}

.card-custom:hover {
	border-color: var(--accent-primary);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Form Styles */
.form-container {
	max-width: 450px;
	margin: 0 auto;
	padding: 3rem;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 20px;
	position: relative;
	overflow: hidden;
}

.form-container::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--gradient-primary);
}

.form-title {
	text-align: center;
	margin-bottom: 2rem;
}

.form-title img {
	width: 72px;
	height: 72px;
	margin-bottom: 1.5rem;
	filter: drop-shadow(0 0 20px var(--glow-primary));
}

.form-title h1 {
	font-size: 1.75rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.form-title p {
	color: var(--text-secondary);
	font-size: 0.95rem;
}

.form-group {
	margin-bottom: 1.25rem;
}

.form-label {
	display: block;
	color: var(--text-secondary);
	font-size: 0.875rem;
	margin-bottom: 0.5rem;
	font-weight: 500;
}

.form-input {
	width: 100%;
	padding: 0.875rem 1rem;
	background: var(--bg-tertiary);
	border: 1px solid var(--border-color);
	border-radius: 10px;
	color: var(--text-primary);
	font-family: var(--font-primary);
	font-size: 0.95rem;
	transition: all 0.3s ease;
}

.form-input::placeholder {
	color: var(--text-muted);
}

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

.form-checkbox {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 1.5rem 0;
}

.form-checkbox input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: var(--accent-primary);
}

.form-checkbox label {
	color: var(--text-secondary);
	font-size: 0.9rem;
}

.form-submit {
	width: 100%;
	padding: 1rem;
	background: var(--gradient-primary);
	border: none;
	border-radius: 10px;
	color: var(--bg-primary);
	font-family: var(--font-primary);
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	margin-top: 0.5rem;
}

.form-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 30px var(--glow-primary);
}

.form-footer {
	text-align: center;
	margin-top: 1.5rem;
	color: var(--text-secondary);
	font-size: 0.9rem;
}

.form-footer a {
	color: var(--accent-primary);
	font-weight: 500;
}

/* Page Header */
.page-header {
	text-align: center;
	padding: 3rem 1rem;
	margin-bottom: 2rem;
}

.page-header h1 {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
	background: var(--gradient-primary);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.page-header p {
	color: var(--text-secondary);
	font-size: 1.1rem;
}

/* Table Styles */
.table-custom {
	width: 100%;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 16px;
	overflow: hidden;
}

.table-custom thead {
	background: var(--bg-tertiary);
}

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

.table-custom td {
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--border-color);
	color: var(--text-secondary);
	font-size: 0.95rem;
}

.table-custom tbody tr {
	transition: background 0.2s ease;
}

.table-custom tbody tr:hover {
	background: var(--bg-tertiary);
}

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

.table-custom .address-cell {
	font-family: var(--font-mono);
	font-size: 0.85rem;
	color: var(--accent-primary);
}

/* Empty State */
.empty-state {
	text-align: center;
	padding: 4rem 2rem;
	color: var(--text-muted);
}

.empty-state i {
	font-size: 4rem;
	margin-bottom: 1.5rem;
	opacity: 0.3;
	color: var(--accent-primary);
}

.empty-state h3 {
	font-size: 1.5rem;
	color: var(--text-primary);
	margin-bottom: 0.75rem;
}

.empty-state p {
	font-size: 1rem;
	max-width: 400px;
	margin: 0 auto;
}

/* Alert Messages */
.alert-custom {
	padding: 1rem 1.5rem;
	border-radius: 12px;
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.alert-custom.error {
	background: rgba(255, 71, 87, 0.1);
	border: 1px solid rgba(255, 71, 87, 0.3);
	color: var(--accent-danger);
}

.alert-custom.success {
	background: rgba(0, 245, 212, 0.1);
	border: 1px solid rgba(0, 245, 212, 0.3);
	color: var(--accent-primary);
}

.alert-custom i {
	font-size: 1.25rem;
}

/* Search Box */
.search-box-large {
	max-width: 700px;
	margin: 0 auto;
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 16px;
	padding: 2rem;
}

.search-box-large .input-wrapper {
	display: flex;
	gap: 1rem;
}

.search-box-large input[type="text"] {
	flex: 1;
	padding: 1rem 1.25rem;
	background: var(--bg-tertiary);
	border: 1px solid var(--border-color);
	border-radius: 10px;
	color: var(--text-primary);
	font-family: var(--font-mono);
	font-size: 0.95rem;
	transition: all 0.3s ease;
}

.search-box-large input[type="text"]::placeholder {
	color: var(--text-muted);
}

.search-box-large input[type="text"]:focus {
	outline: none;
	border-color: var(--accent-primary);
	box-shadow: 0 0 0 3px var(--glow-primary);
}

.search-box-large button {
	padding: 1rem 2rem;
	background: var(--gradient-primary);
	border: none;
	border-radius: 10px;
	color: var(--bg-primary);
	font-family: var(--font-primary);
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.search-box-large button:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 30px var(--glow-primary);
}

/* Content Section */
.content-section {
	position: relative;
	z-index: 1;
	max-width: 1200px;
	margin: 0 auto;
	padding: 2rem 1.5rem;
}

.content-card {
	background: var(--bg-card);
	border: 1px solid var(--border-color);
	border-radius: 16px;
	padding: 2.5rem;
}

.content-card h2 {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 1rem;
	color: var(--text-primary);
}

.content-card h3 {
	font-size: 1.25rem;
	font-weight: 600;
	margin: 1.5rem 0 1rem;
	color: var(--text-primary);
}

.content-card p {
	color: var(--text-secondary);
	line-height: 1.7;
	margin-bottom: 1rem;
}

.content-card ul, .content-card ol {
	color: var(--text-secondary);
	line-height: 1.8;
	margin-bottom: 1rem;
	padding-left: 1.5rem;
}

.content-card li {
	margin-bottom: 0.5rem;
}

/* Utility Classes */
.text-accent {
	color: var(--accent-primary);
}

.text-muted {
	color: var(--text-muted);
}

.text-center {
	text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Responsive */
@media (max-width: 768px) {
	.page-header h1 {
		font-size: 2rem;
	}
	
	.form-container {
		padding: 2rem 1.5rem;
		margin: 0 1rem;
	}
	
	.content-card {
		padding: 1.5rem;
	}
	
	.search-box-large .input-wrapper {
		flex-direction: column;
	}
	
	.table-custom {
		font-size: 0.85rem;
	}
	
	.table-custom th,
	.table-custom td {
		padding: 0.75rem 1rem;
	}
}

/* Cloudflare Turnstile */
.cf-turnstile {
	display: flex;
	justify-content: center;
	margin-bottom: 1.5rem;
}

