/* Global Variables */
:root {
	--primary-color: #4f46e5;
	--primary-hover: #4338ca;
	--secondary-color: #0ea5e9;
	--success-color: #10b981;
	--warning-color: #f59e0b;
	--danger-color: #ef4444;
	--neutral-color: #6b7280;
	--light-bg: #f9fafb;
	--dark-bg: #1f2937;
	--border-radius: 0.5rem;
	--box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	--font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Base Styles */
body {
	font-family: var(--font-sans);
	color: #374151;
	line-height: 1.5;
}

.wrap {
	max-width: 1200px !important;
	margin: 0 auto;
	padding: 2rem 1rem;
}

/* Typography Enhancements */
h2, h3, h4 {
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 0.5rem;
}

p {
	margin-bottom: 1rem;
}

/* Card & Container Styles */
.form-shadow {
	box-shadow: var(--box-shadow);
	transition: var(--transition);
}

.form-shadow:hover {
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.gradient-header {
	background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
	border-bottom: 1px solid rgba(79, 70, 229, 0.1);
	padding: 1.5rem 2rem;
}

/* Form Elements */
input[type="text"],
textarea {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid #d1d5db;
	border-radius: var(--border-radius);
	font-size: 1rem;
	transition: var(--transition);
}

input[type="text"]:focus,
textarea:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

button {
	background-color: var(--primary-color);
	color: white;
	font-weight: 600;
	padding: 0.75rem 1.5rem;
	border-radius: var(--border-radius);
	border: none;
	cursor: pointer;
	transition: var(--transition);
}

button:hover {
	background-color: var(--primary-hover);
	transform: translateY(-1px);
}

button:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

/* Ticket List Styles */
.ticket-hover {
	transition: var(--transition);
	border: 1px solid #e5e7eb;
	border-radius: var(--border-radius);
	overflow: hidden;
}

.ticket-hover:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
	border-color: #d1d5db;
}

/* Status Badge Styles */
.status-badge {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.25rem 0.75rem;
	font-weight: 600;
	font-size: 0.875rem;
	border-radius: 9999px;
}

.status-badge::before {
	content: '';
	position: absolute;
	inset: 0;
	background: currentColor;
	opacity: 0.12;
	border-radius: inherit;
}

/* Modal Styles */
.modal {
	position: fixed;
	inset: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: var(--transition);
	visibility: hidden;
	opacity: 0;
}

.modal.active {
	visibility: visible;
	opacity: 1;
}

.modal-backdrop {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(4px);
}

.modal-content {
	position: relative;
	background-color: white;
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
	max-width: 32rem;
	width: 100%;
	transform: scale(0.95);
	opacity: 0;
	transition: var(--transition);
}

.modal.active .modal-content {
	transform: scale(1);
	opacity: 1;
}

/* Animation for Loading States */
@keyframes pulse {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0.5;
	}
}

.animate-pulse {
	animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
	.wrap {
		padding: 1rem;
	}

	.gradient-header {
		padding: 1rem;
	}

	.modal-content {
		max-width: 90%;
		margin: 0 1rem;
	}
}
