/* Auth Form Styles */
.auth-form {
	transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.auth-form.hidden {
	display: none;
}

/* Card Selection Styles */
.category-card.selected {
	border-color: #ff8c42 !important;
	background-color: #fff7ed !important;
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(255, 140, 66, 0.2);
}

.template-card.selected {
	border-color: #ff8c42 !important;
	background-color: #fff7ed !important;
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(255, 140, 66, 0.2);
}

.platform-card.selected {
	border-color: #ff8c42 !important;
	background-color: #fff7ed !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(255, 140, 66, 0.2);
}

/* Profile Photo Styles */
#photoPlaceholder {
	position: relative;
	overflow: hidden;
}

#photoPlaceholder.has-image {
	border-style: solid !important;
	border-color: #10b981 !important;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

#photoPlaceholder.has-image span {
	display: none;
}

#photoPlaceholder.has-image::after {
	content: "✓";
	position: absolute;
	top: 4px;
	right: 4px;
	background: #10b981;
	color: white;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: bold;
}

/* Input focus animations */
input:focus {
	transform: translateY(-1px);
}

/* Button hover effects */
button:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 25px rgba(255, 140, 66, 0.3);
}

/* Custom scrollbar for better UX */
::-webkit-scrollbar {
	width: 6px;
}

::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 3px;
}

::-webkit-scrollbar-thumb {
	background: #ff8c42;
	border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
	background: #e67b3b;
}

/* Animation for form switching */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.auth-form:not(.hidden) {
	animation: fadeIn 0.3s ease-out;
}

/* Phone preview frame */
.phone-frame {
	width: 280px;
	height: 500px;
	border: 12px solid #111;
	border-radius: 36px;
	position: relative;
	background: #000;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	overflow: hidden;
}

.phone-notch {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 120px;
	height: 20px;
	background: #111;
	border-radius: 0 0 12px 12px;
	z-index: 10;
}

.phone-screen {
	position: absolute;
	top: 20px;
	left: 0;
	right: 0;
	bottom: 0;
	background: #fff;
	overflow-y: auto;
	padding: 16px;
	text-align: center;
}

/* Dashboard Phone Mockup Styles */
.phone-mockup {
	width: 300px;
	height: 600px;
	background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
	border-radius: 30px;
	padding: 20px;
	position: relative;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.phone-mockup::before {
	content: "";
	position: absolute;
	top: 10px;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 6px;
	background: #666;
	border-radius: 3px;
}

.phone-mockup-screen {
	width: 100%;
	height: 100%;
	background: white;
	border-radius: 25px;
	overflow: hidden;
	position: relative;
}

.preview-content {
	padding: 40px 20px 20px;
	height: 100%;
	overflow-y: auto;
	text-align: center;
}

.preview-header {
	margin-bottom: 30px;
}

.preview-avatar {
	width: 80px;
	height: 80px;
	margin: 0 auto 15px;
	border-radius: 50%;
	overflow: hidden;
	background: #f3f4f6;
	display: flex;
	align-items: center;
	justify-content: center;
}

.preview-name {
	font-size: 20px;
	font-weight: 600;
	color: #1a1a1a;
	margin: 10px 0 5px;
}

.preview-bio {
	font-size: 14px;
	color: #666;
	line-height: 1.4;
	margin-bottom: 25px;
}

.preview-links {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.preview-link {
	display: flex;
	align-items: center;
	padding: 12px 16px;
	background: #f8f9fa;
	border-radius: 12px;
	text-decoration: none;
	color: #333;
	transition: all 0.2s ease;
	border: 1px solid #e9ecef;
}

.preview-link:hover {
	background: #e9ecef;
	transform: translateY(-1px);
}

.preview-link .platform-icon {
	width: 24px;
	height: 24px;
	margin-right: 12px;
	border-radius: 6px;
}

.preview-link .link-title {
	font-weight: 500;
	font-size: 14px;
}


/* Custom scrollbar for preview */
.preview-content::-webkit-scrollbar {
	width: 4px;
}

.preview-content::-webkit-scrollbar-track {
	background: #f1f1f1;
	border-radius: 2px;
}

.preview-content::-webkit-scrollbar-thumb {
	background: #c1c1c1;
	border-radius: 2px;
}

.preview-content::-webkit-scrollbar-thumb:hover {
	background: #a8a8a8;
}

/* Modal */
#linkModal {
	animation: fadeIn 0.2s ease-in-out;
}


/* Dashboard specific styles */
.dashboard-section {
	animation: fadeIn 0.3s ease-out;
}

.nav-btn:hover {
	transform: translateY(-1px);
}

.nav-btn.bg-orange-50 {
	background-color: #fff7ed !important;
	color: #ff8c42 !important;
}

/* Profile photo preview with proper Django template integration */
#profilePhotoPreview.has-photo {
	border-style: solid !important;
	border-color: #10b981 !important;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

#profilePhotoPreview.has-photo span {
	display: none;
}

/* Template card selections matching project theme */
.template-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(255, 140, 66, 0.15);
}

.template-card.selected {
	border-color: #ff8c42 !important;
	background-color: #fff7ed !important;
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(255, 140, 66, 0.2);
}

/* Links management styling */
#linksList li {
	transition: all 0.2s ease-in-out;
}

#linksList li:hover {
	transform: translateX(4px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Form input consistency */
.dashboard-section input:focus,
.dashboard-section textarea:focus,
.dashboard-section select:focus {
	border-color: #ff8c42 !important;
	box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.1);
	transform: translateY(-1px);
}

/* Button hover effects for dashboard */
.dashboard-section button:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
}

/* Analytics section styling */
#analyticsChart {
	border-radius: 8px;
}

.analytics-card {
	transition: transform 0.2s ease-in-out;
}

.analytics-card:hover {
	transform: translateY(-2px);
}

.analytics-card {
	background: white;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	text-align: center;
	transition: transform 0.2s ease;
}

.analytics-card:hover {
	transform: translateY(-2px);
}

.analytics-card .metric-value {
	font-size: 2rem;
	font-weight: 700;
	color: #ff8c42;
	margin-bottom: 8px;
}

.analytics-card .metric-label {
	font-size: 14px;
	color: #666;
	font-weight: 500;
}

/* Modal improvements */
#linkModal {
	backdrop-filter: blur(4px);
}

#linkModal .bg-white {
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Sidebar improvements */
#sidebar {
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

#sidebar .nav-btn {
	transition: all 0.2s ease-in-out;
}

#sidebar .nav-btn:hover {
	background-color: #fff7ed;
	color: #ff8c42;
	padding-left: 1.5rem;
}

.no-scrollbar {
	scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
	display: none;
}



@media (max-width: 768px) {
	/* Mobile adjustments */
	.phone-frame {
		width: 220px;
		height: 400px;
	}

	.phone-mockup {
		width: 250px;
		height: 500px;
		padding: 15px;
	}

	.phone-notch {
		width: 100px;
		height: 16px;
	}

	.phone-screen {
		top: 16px;
		padding: 12px;
	}

	.preview-content {
		padding: 30px 15px 15px;
	}

	.preview-avatar {
		width: 60px;
		height: 60px;
	}

	.preview-name {
		font-size: 18px;
	}

	.preview-bio {
		font-size: 13px;
	}
		/* Ensure sidebar overlay on mobile */
	#sidebar {
		z-index: 60;
	}

	#menuToggle {
		z-index: 70;
	}

	/* Better mobile spacing */
	#linksList li {
		flex-direction: column;
		align-items: flex-start;
	}
	#phoneFrame {
		margin-top: 1rem;
	}
}

/* Additional responsive fixes for dashboard */
@media (max-width: 1024px) {
	.md\\:grid-cols-2 {
		grid-template-columns: 1fr;
	}

	.phone-mockup {
		width: 280px;
		height: 560px;
		margin: 0 auto;
	}
}

@media (max-width: 640px) {
	.dashboard-section {
		padding: 1rem;
	}

	.bg-white.rounded-lg.shadow-lg {
		margin: 0;
		border-radius: 0.5rem;
	}

	.template-card {
		padding: 0.75rem;
	}

	.grid-cols-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
