/* 
 * Cleopatra Layout CSS
 * Custom styles for the reskinned OF website
 * Based on Tailwind CSS with Cleopatra admin template design
 */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Root Variables */
:root {
	--sidebar-width: 16rem;
	--header-height: 4rem;
	--primary-color: #3b82f6;
	--primary-hover: #2563eb;
	--sidebar-bg: #1f2937;
	--sidebar-hover: #374151;
	--sidebar-active: #4b5563;
	--sidebar-text: #d1d5db;
	--sidebar-text-active: #ffffff;
}

/* Base Resets */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Sidebar Enhancements */
#sidebar {
	box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

#sidebar::-webkit-scrollbar {
	width: 6px;
}

#sidebar::-webkit-scrollbar-track {
	background: transparent;
}

#sidebar::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 3px;
}

#sidebar::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.2);
}

/* Mobile Sidebar Overlay */
@media (max-width: 1024px) {
	#sidebar {
		box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
	}
	
	#sidebar.translate-x-0::before {
		content: '';
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		background: rgba(0, 0, 0, 0.5);
		z-index: -1;
	}
}

/* Header Shadow */
header {
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Card Styles */
.card {
	background: white;
	border-radius: 0.5rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	padding: 1.5rem;
	margin-bottom: 1.5rem;
}

.card-header {
	font-size: 1.25rem;
	font-weight: 600;
	color: #1f2937;
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid #e5e7eb;
}

/* Table Styles */
.table-container {
	overflow-x: auto;
	background: white;
	border-radius: 0.5rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

table {
	width: 100%;
	border-collapse: collapse;
}

thead {
	background: #f9fafb;
}

thead th {
	padding: 0.75rem 1rem;
	text-align: left;
	font-weight: 600;
	color: #374151;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-bottom: 2px solid #e5e7eb;
}

tbody tr {
	border-bottom: 1px solid #e5e7eb;
	transition: background-color 0.2s;
}

tbody tr:hover {
	background: #f9fafb;
}

tbody td {
	padding: 1rem;
	color: #1f2937;
}

/* Button Styles */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 500;
	border-radius: 0.375rem;
	transition: all 0.2s;
	cursor: pointer;
	border: none;
	text-decoration: none;
}

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

.btn-primary:hover {
	background: var(--primary-hover);
	transform: translateY(-1px);
	box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
	background: #6b7280;
	color: white;
}

.btn-secondary:hover {
	background: #4b5563;
}

.btn-success {
	background: #10b981;
	color: white;
}

.btn-success:hover {
	background: #059669;
}

.btn-danger {
	background: #ef4444;
	color: white;
}

.btn-danger:hover {
	background: #dc2626;
}

.btn-outline {
	background: transparent;
	border: 1px solid #d1d5db;
	color: #374151;
}

.btn-outline:hover {
	background: #f9fafb;
	border-color: #9ca3af;
}

.btn-sm {
	padding: 0.375rem 0.75rem;
	font-size: 0.8125rem;
}

.btn-lg {
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
}

/* Badge Styles */
.badge {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.625rem;
	font-size: 0.75rem;
	font-weight: 500;
	border-radius: 9999px;
}

.badge-primary {
	background: #dbeafe;
	color: #1e40af;
}

.badge-success {
	background: #d1fae5;
	color: #065f46;
}

.badge-warning {
	background: #fef3c7;
	color: #92400e;
}

.badge-danger {
	background: #fee2e2;
	color: #991b1b;
}

.badge-info {
	background: #dbeafe;
	color: #1e40af;
}

/* Alert Styles */
.alert {
	padding: 1rem;
	border-radius: 0.5rem;
	margin-bottom: 1rem;
	border-left: 4px solid;
}

.alert-success {
	background: #d1fae5;
	border-color: #10b981;
	color: #065f46;
}

.alert-error {
	background: #fee2e2;
	border-color: #ef4444;
	color: #991b1b;
}

.alert-warning {
	background: #fef3c7;
	border-color: #f59e0b;
	color: #92400e;
}

.alert-info {
	background: #dbeafe;
	border-color: #3b82f6;
	color: #1e40af;
}

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

.fade-in {
	animation: fadeIn 0.3s ease-out;
}

/* Loading Spinner */
.spinner {
	border: 3px solid #f3f4f6;
	border-top: 3px solid var(--primary-color);
	border-radius: 50%;
	width: 2rem;
	height: 2rem;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Responsive Utilities */
@media (max-width: 768px) {
	.card {
		padding: 1rem;
	}
	
	thead th {
		padding: 0.5rem;
		font-size: 0.75rem;
	}
	
	tbody td {
		padding: 0.75rem 0.5rem;
		font-size: 0.875rem;
	}
}

/* Print Styles */
@media print {
	#sidebar,
	header,
	footer,
	.no-print {
		display: none !important;
	}
	
	.print-full-width {
		width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
	}
}

/* Custom Scrollbar for Main Content */
main::-webkit-scrollbar {
	width: 8px;
}

main::-webkit-scrollbar-track {
	background: #f3f4f6;
}

main::-webkit-scrollbar-thumb {
	background: #9ca3af;
	border-radius: 4px;
}

main::-webkit-scrollbar-thumb:hover {
	background: #6b7280;
}

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
	outline: 2px solid var(--primary-color);
	outline-offset: 2px;
}

/* Smooth Transitions */
a, button, .btn {
	transition: all 0.2s ease-in-out;
}

/* Page Header */
.page-header {
	margin-bottom: 2rem;
}

.page-title {
	font-size: 1.875rem;
	font-weight: 700;
	color: #1f2937;
	margin-bottom: 0.5rem;
}

.page-description {
	color: #6b7280;
	font-size: 0.875rem;
}

/* Stats Cards */
.stat-card {
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
	color: white;
	padding: 1.5rem;
	border-radius: 0.5rem;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-card-value {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 0.25rem;
}

.stat-card-label {
	font-size: 0.875rem;
	opacity: 0.9;
}

/* Empty State */
.empty-state {
	text-align: center;
	padding: 3rem 1.5rem;
	color: #6b7280;
}

.empty-state-icon {
	font-size: 3rem;
	margin-bottom: 1rem;
	opacity: 0.3;
}

.empty-state-text {
	font-size: 1.125rem;
	font-weight: 500;
	margin-bottom: 0.5rem;
}

.empty-state-description {
	font-size: 0.875rem;
}