:root {
	/* Dark Professional Color Palette */
	--primary-color: #3b82f6;
	--primary-dark: #1d4ed8;
	--primary-light: #60a5fa;
	--secondary-color: #06b6d4;
	--accent-color: #f59e0b;
	--success-color: #10b981;
	--warning-color: #f59e0b;
	--error-color: #ef4444;
	--danger-color: #dc2626;
	
	/* Dark Theme Base Colors */
	--bg-primary: #0a0a0a;
	--bg-secondary: #111111;
	--bg-tertiary: #1a1a1a;
	--bg-quaternary: #222222;
	--bg-elevated: #2a2a2a;
	--bg-surface: #171717;
	--bg-overlay: rgba(0, 0, 0, 0.8);
	
	/* Dark Neutral Colors */
	--gray-50: #f9fafb;
	--gray-100: #f3f4f6;
	--gray-200: #e5e7eb;
	--gray-300: #d1d5db;
	--gray-400: #9ca3af;
	--gray-500: #6b7280;
	--gray-600: #4b5563;
	--gray-700: #374151;
	--gray-800: #1f2937;
	--gray-900: #111827;
	
	/* Dark Text Colors */
	--text-primary: #ffffff;
	--text-secondary: #e5e7eb;
	--text-tertiary: #9ca3af;
	--text-quaternary: #6b7280;
	--text-inverse: #111827;
	
	/* Border Colors */
	--border-primary: #333333;
	--border-secondary: #404040;
	--border-tertiary: #525252;
	--border-focus: var(--primary-color);
	
	/* Typography */
	--font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Courier New', monospace;
	--font-size-xs: 0.75rem;
	--font-size-sm: 0.875rem;
	--font-size-base: 1rem;
	--font-size-lg: 1.125rem;
	--font-size-xl: 1.25rem;
	--font-size-2xl: 1.5rem;
	--font-size-3xl: 1.875rem;
	--font-size-4xl: 2.25rem;
	
	/* Spacing */
	--space-1: 0.25rem;
	--space-2: 0.5rem;
	--space-3: 0.75rem;
	--space-4: 1rem;
	--space-5: 1.25rem;
	--space-6: 1.5rem;
	--space-8: 2rem;
	--space-10: 2.5rem;
	--space-12: 3rem;
	--space-16: 4rem;
	
	/* Borders & Radius */
	--border-radius-sm: 0.25rem;
	--border-radius: 0.375rem;
	--border-radius-lg: 0.5rem;
	--border-radius-xl: 0.75rem;
	--border-radius-2xl: 1rem;
	
	/* Professional Shadows */
	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
	--shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 1px 2px -1px rgba(0, 0, 0, 0.4);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -2px rgba(0, 0, 0, 0.4);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
	--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
	--shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
	
	/* Transitions */
	--transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
	--transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
	--transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Import professional font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ///////////////// */
/* // Core Styles // */
/* ///////////////// */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	overflow-y: scroll;
	scroll-behavior: smooth;
}

body {
	background: var(--bg-primary);
	background-image: 
		radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
		radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
		radial-gradient(circle at 40% 80%, rgba(6, 182, 212, 0.03) 0%, transparent 50%);
	background-attachment: fixed;
	min-height: 100vh;
	
	font-family: var(--font-family);
	font-size: var(--font-size-base);
	font-weight: 400;
	line-height: 1.6;
	color: var(--text-primary);
	
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: var(--space-6);
	
	/* Subtle texture overlay */
	position: relative;
}

body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: 
		repeating-linear-gradient(
			90deg,
			transparent,
			transparent 98px,
			rgba(255, 255, 255, 0.003) 100px
		);
	pointer-events: none;
	z-index: 1;
}

/* Large font size support */
body.font-size-large {
	font-size: var(--font-size-lg);
}

body.font-size-large h1 {
	font-size: var(--font-size-4xl);
}

body.font-size-large h2 {
	font-size: var(--font-size-3xl);
}

body.font-size-large h3 {
	font-size: var(--font-size-2xl);
}

body.font-size-large input,
body.font-size-large textarea,
body.font-size-large button,
body.font-size-large select {
	font-size: var(--font-size-lg);
	padding: var(--space-4);
}

@media (min-width: 768px) {
	body {
		padding: var(--space-8);
	}
}

/* Professional font size toggle */
.font-size-toggle {
	background: var(--bg-tertiary);
	border: 1px solid var(--border-primary);
	border-radius: var(--border-radius-lg);
	padding: var(--space-3) var(--space-4);
	margin-bottom: var(--space-4);
	box-shadow: var(--shadow-sm);
	color: var(--text-secondary);
}

.font-size-toggle a {
	color: var(--primary-color);
	text-decoration: none;
	font-weight: 500;
	padding: var(--space-2) var(--space-3);
	border-radius: var(--border-radius-sm);
	transition: all var(--transition-fast);
}

.font-size-toggle a:hover {
	background: rgba(59, 130, 246, 0.1);
	color: var(--primary-light);
}

/* /////////// */
/* // Links // */
/* /////////// */
a {
	color: var(--primary-color);
	text-decoration: none;
	font-weight: 500;
	transition: color var(--transition-fast);
}

a:hover {
	color: var(--primary-light);
}

/* Professional back link */
.back-link {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	margin-bottom: var(--space-6);
	color: var(--text-secondary);
	font-weight: 500;
	padding: var(--space-3) var(--space-4);
	border-radius: var(--border-radius-lg);
	background: var(--bg-tertiary);
	border: 1px solid var(--border-primary);
	transition: all var(--transition-normal);
}

.back-link:hover {
	background: var(--bg-quaternary);
	border-color: var(--border-secondary);
	color: var(--primary-color);
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}

/* //////////////////// */
/* // Forms Elements // */
/* //////////////////// */
fieldset {
	border: none;
	margin: 0 0 var(--space-4);
	padding: 0;
	width: 100%;
}

input[type="text"],
input[type="password"],
textarea,
select {
	width: 100%;
	padding: var(--space-3) var(--space-4);
	border: 1px solid var(--border-primary);
	border-radius: var(--border-radius-lg);
	background: var(--bg-tertiary);
	font-family: inherit;
	font-size: var(--font-size-base);
	font-weight: 400;
	color: var(--text-primary);
	transition: all var(--transition-normal);
	box-shadow: var(--shadow-sm);
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), var(--shadow-md);
	background: var(--bg-quaternary);
}

input[type="text"]:hover,
input[type="password"]:hover,
textarea:hover,
select:hover {
	border-color: var(--border-secondary);
	background: var(--bg-quaternary);
}

textarea {
	min-height: 120px;
	resize: vertical;
	font-family: var(--font-mono);
	line-height: 1.5;
}

/* Professional select styling */
select {
	appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right var(--space-3) center;
	background-size: 1rem;
	padding-right: var(--space-10);
}

/* Professional file input */
input[type="file"] {
	width: 100%;
	padding: var(--space-2);
	border: 2px dashed var(--border-secondary);
	border-radius: var(--border-radius-xl);
	background: var(--bg-tertiary);
	text-align: center;
	font-family: inherit;
	font-size: var(--font-size-base);
	color: var(--text-tertiary);
	cursor: pointer;
	transition: all var(--transition-normal);
	position: relative;
}

input[type="file"]:hover {
	border-color: var(--primary-color);
	background: var(--bg-quaternary);
	color: var(--primary-color);
}

input[type="file"]:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Professional button styling */
button[type="submit"] {
	width: 100%;
	padding: var(--space-4) var(--space-6);
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
	color: white;
	border: none;
	border-radius: var(--border-radius-lg);
	font-family: inherit;
	font-size: var(--font-size-base);
	font-weight: 600;
	cursor: pointer;
	transition: all var(--transition-normal);
	box-shadow: var(--shadow-md);
	position: relative;
	overflow: hidden;
}

button[type="submit"]::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
	transition: left var(--transition-slow);
}

button[type="submit"]:hover::before {
	left: 100%;
}

button[type="submit"]:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
	background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
}

button[type="submit"]:active {
	transform: translateY(0);
	box-shadow: var(--shadow);
}

/* Danger button variant */
button[type="submit"].serious {
	background: linear-gradient(135deg, var(--error-color) 0%, var(--danger-color) 100%);
}

button[type="submit"].serious:hover {
	background: linear-gradient(135deg, #f87171 0%, var(--error-color) 100%);
}

/* Professional progress bar */
progress {
	width: 100%;
	height: var(--space-2);
	border-radius: var(--border-radius);
	border: none;
	background: var(--bg-tertiary);
	overflow: hidden;
}

progress::-webkit-progress-bar {
	background: var(--bg-tertiary);
	border-radius: var(--border-radius);
}

progress::-webkit-progress-value {
	background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
	border-radius: var(--border-radius);
}

progress::-moz-progress-bar {
	background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
	border-radius: var(--border-radius);
}

/* Professional checkbox styling */
input[type="checkbox"] {
	appearance: none;
	width: 1.25rem;
	height: 1.25rem;
	border: 1px solid var(--border-secondary);
	border-radius: var(--border-radius-sm);
	background: var(--bg-tertiary);
	cursor: pointer;
	position: relative;
	transition: all var(--transition-fast);
}

input[type="checkbox"]:checked {
	background: var(--primary-color);
	border-color: var(--primary-color);
}

input[type="checkbox"]:checked::after {
	content: "✓";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: white;
	font-size: var(--font-size-xs);
	font-weight: bold;
}

fieldset.checkbox {
	display: flex;
	align-items: center;
	gap: var(--space-3);
}

label {
	font-weight: 500;
	color: var(--text-secondary);
	cursor: pointer;
}

/* ///////////////////// */
/* // Text Editor CSS // */
/* ///////////////////// */
.text-editor-container {
	width: 100%;
	max-width: none;
}

.editor-toolbar {
	background: var(--bg-elevated);
	border: 1px solid var(--border-primary);
	border-bottom: none;
	border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
	padding: var(--space-4);
	display: flex;
	gap: var(--space-4);
	align-items: center;
	font-size: var(--font-size-sm);
	color: var(--text-tertiary);
}

.editor-textarea {
	width: 100%;
	min-height: 400px;
	font-family: var(--font-mono);
	font-size: var(--font-size-sm);
	border: 1px solid var(--border-primary);
	border-top: none;
	border-bottom: none;
	padding: var(--space-6);
	resize: vertical;
	background: var(--bg-secondary);
	color: var(--text-primary);
	line-height: 1.6;
}

.font-size-large .editor-textarea {
	font-size: var(--font-size-base);
	min-height: 500px;
}

.editor-info {
	background: var(--bg-elevated);
	border: 1px solid var(--border-primary);
	border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
	padding: var(--space-4);
	font-size: var(--font-size-sm);
	color: var(--text-tertiary);
}

/* ////////////// */
/* // Headings // */
/* ////////////// */
h1 {
	font-size: var(--font-size-3xl);
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: var(--space-8);
	color: var(--text-primary);
	letter-spacing: -0.025em;
}

h2 {
	font-size: var(--font-size-2xl);
	font-weight: 600;
	line-height: 1.3;
	margin-bottom: var(--space-6);
	color: var(--text-primary);
	letter-spacing: -0.015em;
}

h3 {
	font-size: var(--font-size-xl);
	font-weight: 600;
	line-height: 1.4;
	margin-bottom: var(--space-4);
	color: var(--text-secondary);
}

/* ////////////////////////// */
/* // Utility Classes // */
/* ////////////////////////// */
.center { text-align: center; }
.left { text-align: left; }
.right { text-align: right; }
.bold { font-weight: 600; }
.no-display { display: none; }

.hover:hover {
	background: rgba(59, 130, 246, 0.05);
	transition: background-color var(--transition-fast);
}

/* ////////////////////////////////// */
/* // Professional Messages // */
/* ////////////////////////////////// */
.message {
	padding: var(--space-4) var(--space-5);
	border-radius: var(--border-radius-lg);
	font-weight: 500;
	margin-bottom: var(--space-4);
	border: 1px solid transparent;
	position: relative;
}

.message::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
}

.message.ok {
	background: rgba(16, 185, 129, 0.1);
	color: #34d399;
	border-color: rgba(16, 185, 129, 0.2);
}

.message.ok::before {
	background: var(--success-color);
}

.message.warning {
	background: rgba(245, 158, 11, 0.1);
	color: #fbbf24;
	border-color: rgba(245, 158, 11, 0.2);
}

.message.warning::before {
	background: var(--warning-color);
}

.message.error {
	background: rgba(239, 68, 68, 0.1);
	color: #f87171;
	border-color: rgba(239, 68, 68, 0.2);
}

.message.error::before {
	background: var(--error-color);
}

.message.unknown {
	background: rgba(59, 130, 246, 0.1);
	color: var(--primary-light);
	border-color: rgba(59, 130, 246, 0.2);
}

.message.unknown::before {
	background: var(--primary-color);
}

/* ///////////////////////////// */
/* // Main Structure // */
/* ///////////////////////////// */
.main-content {
	width: 100%;
	max-width: 900px;
	background: var(--bg-surface);
	border-radius: var(--border-radius-2xl);
	border: 1px solid var(--border-primary);
	box-shadow: var(--shadow-2xl);
	padding: var(--space-8);
	margin-bottom: var(--space-8);
	position: relative;
	z-index: 2;
}

.main-content::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
	border-radius: var(--border-radius-2xl) var(--border-radius-2xl) 0 0;
}

@media (min-width: 768px) {
	.main-content {
		padding: var(--space-12);
	}
}

body.font-size-large .main-content {
	max-width: none;
	width: 95%;
}

/* /////////// */
/* // Footer // */
/* /////////// */
footer {
	background: var(--bg-tertiary);
	border: 1px solid var(--border-primary);
	border-radius: var(--border-radius-lg);
	padding: var(--space-4);
	margin-top: var(--space-4);
	color: var(--text-tertiary);
	font-size: var(--font-size-sm);
	box-shadow: var(--shadow);
}

/* ///////////////////////// */
/* // Professional Table // */
/* ///////////////////////// */
table.file_list {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background: var(--bg-tertiary);
	border: 1px solid var(--border-primary);
	border-radius: var(--border-radius-lg);
	overflow: hidden;
	box-shadow: var(--shadow);
	margin: var(--space-4) 0;
}

table.file_list th {
	background: var(--bg-elevated);
	padding: var(--space-4);
	font-weight: 600;
	color: var(--text-secondary);
	text-align: left;
	border-bottom: 1px solid var(--border-secondary);
	font-size: var(--font-size-sm);
	letter-spacing: 0.025em;
	text-transform: uppercase;
}

table.file_list td {
	padding: var(--space-3);
	border-bottom: 1px solid var(--border-primary);
	transition: all var(--transition-fast);
	color: var(--text-primary);
}

table.file_list tr:hover td {
	background: rgba(59, 130, 246, 0.05);
}

table.file_list tr:last-child td {
	border-bottom: none;
}

td.number {
	width: 20px;
	font-weight: 500;
	color: var(--text-tertiary);
	font-family: var(--font-mono);
}

td.filename {
	font-weight: 500;
	color: var(--text-primary);
    white-space: nowrap;
}

td.filename i {
	margin-right: var(--space-2);
	color: var(--primary-color);
	width: 16px;
	text-align: center;
}

td.filesize {
	font-weight: 500;
	color: var(--text-primary);
    white-space: nowrap;
}

td.download,
td.edit {
	width: 120px;
	text-align: right;
	white-space: nowrap;
}

td.download a,
td.edit a {
	display: inline-flex;
	align-items: center;
	gap: var(--space-2);
	padding: var(--space-2) var(--space-3);
	background: rgba(59, 130, 246, 0.1);
	color: var(--primary-color);
	border: 1px solid rgba(59, 130, 246, 0.2);
	border-radius: var(--border-radius);
	font-size: var(--font-size-sm);
	font-weight: 500;
	transition: all var(--transition-fast);
	text-decoration: none;
}

td.download a:hover,
td.edit a:hover {
	background: var(--primary-color);
	color: white;
	border-color: var(--primary-color);
	transform: translateY(-1px);
	box-shadow: var(--shadow-md);
}

/* File type specific icons */
td.filename i.fa-image { color: #10b981; }
td.filename i.fa-file-code { color: #f59e0b; }
td.filename i.fa-file-pdf { color: #ef4444; }
td.filename i.fa-file-archive { color: #8b5cf6; }
td.filename i.fa-music { color: #06b6d4; }
td.filename i.fa-file-video { color: #ec4899; }

/* /////////////////// */
/* // Animations // */
/* /////////////////// */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateX(30px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes pulse {
	0%, 100% { 
		transform: scale(1);
		opacity: 1;
	}
	50% { 
		transform: scale(1.02);
		opacity: 0.9;
	}
}

.main-content {
	animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

table.file_list {
	animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

/* Progress animation */
#progress {
	animation: fadeInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Loading states */
.loading {
	opacity: 0.6;
	pointer-events: none;
	position: relative;
}

.loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid var(--border-primary);
	border-top: 2px solid var(--primary-color);
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

@keyframes shake {
	0%, 100% { transform: translateX(0); }
	10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
	20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Professional status indicators */
.status-indicator {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	margin-right: var(--space-2);
}

.status-indicator.online {
	background: var(--success-color);
	box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.status-indicator.offline {
	background: var(--text-quaternary);
}

.status-indicator.error {
	background: var(--error-color);
	box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}

/* Professional tooltips */
.tooltip {
	position: relative;
	cursor: help;
}

.tooltip:hover::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	background: var(--bg-elevated);
	color: var(--text-primary);
	padding: var(--space-2) var(--space-3);
	border-radius: var(--border-radius);
	font-size: var(--font-size-sm);
	white-space: nowrap;
	box-shadow: var(--shadow-lg);
	border: 1px solid var(--border-secondary);
	z-index: 1000;
	margin-bottom: var(--space-2);
}

.tooltip:hover::before {
	content: '';
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: var(--border-secondary);
	z-index: 1000;
}

/* Professional badge styling */
.badge {
	display: inline-flex;
	align-items: center;
	padding: var(--space-1) var(--space-2);
	background: var(--bg-elevated);
	color: var(--text-secondary);
	border: 1px solid var(--border-primary);
	border-radius: var(--border-radius);
	font-size: var(--font-size-xs);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.badge.primary {
	background: rgba(59, 130, 246, 0.1);
	color: var(--primary-color);
	border-color: rgba(59, 130, 246, 0.2);
}

.badge.success {
	background: rgba(16, 185, 129, 0.1);
	color: var(--success-color);
	border-color: rgba(16, 185, 129, 0.2);
}

.badge.warning {
	background: rgba(245, 158, 11, 0.1);
	color: var(--warning-color);
	border-color: rgba(245, 158, 11, 0.2);
}

.badge.error {
	background: rgba(239, 68, 68, 0.1);
	color: var(--error-color);
	border-color: rgba(239, 68, 68, 0.2);
}

/* Professional card styling for future use */
.card {
	background: var(--bg-tertiary);
	border: 1px solid var(--border-primary);
	border-radius: var(--border-radius-lg);
	padding: var(--space-6);
	box-shadow: var(--shadow);
	transition: all var(--transition-normal);
}

.card:hover {
	border-color: var(--border-secondary);
	box-shadow: var(--shadow-md);
	transform: translateY(-1px);
}

.card-header {
	margin-bottom: var(--space-4);
	padding-bottom: var(--space-4);
	border-bottom: 1px solid var(--border-primary);
}

.card-title {
	font-size: var(--font-size-lg);
	font-weight: 600;
	color: var(--text-primary);
	margin: 0;
}

.card-subtitle {
	font-size: var(--font-size-sm);
	color: var(--text-tertiary);
	margin: var(--space-1) 0 0 0;
}

.card-body {
	color: var(--text-secondary);
	line-height: 1.6;
}

.card-footer {
	margin-top: var(--space-4);
	padding-top: var(--space-4);
	border-top: 1px solid var(--border-primary);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* Professional list styling */
.list-group {
	background: var(--bg-tertiary);
	border: 1px solid var(--border-primary);
	border-radius: var(--border-radius-lg);
	overflow: hidden;
}

.list-group-item {
	padding: var(--space-4);
	border-bottom: 1px solid var(--border-primary);
	color: var(--text-primary);
	transition: background-color var(--transition-fast);
}

.list-group-item:last-child {
	border-bottom: none;
}

.list-group-item:hover {
	background: rgba(59, 130, 246, 0.05);
}

.list-group-item.active {
	background: rgba(59, 130, 246, 0.1);
	border-color: rgba(59, 130, 246, 0.2);
	color: var(--primary-color);
}

/* Professional alert styling */
.alert {
	padding: var(--space-4) var(--space-5);
	border-radius: var(--border-radius-lg);
	border: 1px solid transparent;
	margin-bottom: var(--space-4);
	position: relative;
	overflow: hidden;
}

.alert::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
}

.alert-primary {
	background: rgba(59, 130, 246, 0.1);
	color: var(--primary-color);
	border-color: rgba(59, 130, 246, 0.2);
}

.alert-primary::before {
	background: var(--primary-color);
}

.alert-success {
	background: rgba(16, 185, 129, 0.1);
	color: var(--success-color);
	border-color: rgba(16, 185, 129, 0.2);
}

.alert-success::before {
	background: var(--success-color);
}

.alert-warning {
	background: rgba(245, 158, 11, 0.1);
	color: var(--warning-color);
	border-color: rgba(245, 158, 11, 0.2);
}

.alert-warning::before {
	background: var(--warning-color);
}

.alert-error {
	background: rgba(239, 68, 68, 0.1);
	color: var(--error-color);
	border-color: rgba(239, 68, 68, 0.2);
}

.alert-error::before {
	background: var(--error-color);
}

/* Professional skeleton loading */
.skeleton {
	background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-quaternary) 50%, var(--bg-tertiary) 75%);
	background-size: 200% 100%;
	animation: loading 1.5s infinite;
	border-radius: var(--border-radius);
}

@keyframes loading {
	0% {
		background-position: 200% 0;
	}
	100% {
		background-position: -200% 0;
	}
}

.skeleton-text {
	height: 1em;
	margin-bottom: var(--space-2);
}

.skeleton-text:last-child {
	margin-bottom: 0;
	width: 75%;
}

.skeleton-title {
	height: 1.5em;
	margin-bottom: var(--space-3);
}

.skeleton-button {
	height: 2.5em;
	width: 8em;
}

/* Professional breadcrumb styling */
.breadcrumb {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	margin-bottom: var(--space-6);
	padding: var(--space-3) var(--space-4);
	background: var(--bg-tertiary);
	border: 1px solid var(--border-primary);
	border-radius: var(--border-radius-lg);
	font-size: var(--font-size-sm);
}

.breadcrumb-item {
	color: var(--text-tertiary);
}

.breadcrumb-item.active {
	color: var(--text-primary);
	font-weight: 500;
}

.breadcrumb-item:not(:last-child)::after {
	content: '/';
	margin-left: var(--space-2);
	color: var(--text-quaternary);
}

.breadcrumb-item a {
	color: var(--primary-color);
	text-decoration: none;
	transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
	color: var(--primary-light);
}

/* Professional pagination */
.pagination {
	display: flex;
	gap: var(--space-1);
	align-items: center;
	justify-content: center;
	margin: var(--space-6) 0;
}

.pagination-item {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	background: var(--bg-tertiary);
	border: 1px solid var(--border-primary);
	border-radius: var(--border-radius);
	color: var(--text-secondary);
	text-decoration: none;
	font-weight: 500;
	transition: all var(--transition-fast);
}

.pagination-item:hover {
	background: var(--bg-quaternary);
	border-color: var(--border-secondary);
	color: var(--text-primary);
}

.pagination-item.active {
	background: var(--primary-color);
	border-color: var(--primary-color);
	color: white;
}

.pagination-item:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Enhanced file upload drag and drop styling */
input[type="file"].drag-over {
	border-color: var(--primary-color);
	background: rgba(59, 130, 246, 0.05);
	transform: scale(1.02);
}

input[type="file"]::file-selector-button {
	background: var(--primary-color);
	color: white;
	border: none;
	padding: var(--space-2) var(--space-4);
	border-radius: var(--border-radius);
	font-weight: 500;
	margin-right: var(--space-3);
	cursor: pointer;
	transition: all var(--transition-fast);
}

input[type="file"]::file-selector-button:hover {
	background: var(--primary-dark);
	transform: translateY(-1px);
}

/* Professional modal styling for future use */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.8);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transition: all var(--transition-normal);
}

.modal-overlay.active {
	opacity: 1;
	visibility: visible;
}

.modal {
	background: var(--bg-surface);
	border: 1px solid var(--border-primary);
	border-radius: var(--border-radius-xl);
	box-shadow: var(--shadow-2xl);
	max-width: 90vw;
	max-height: 90vh;
	overflow: auto;
	transform: scale(0.9) translateY(20px);
	transition: all var(--transition-normal);
}

.modal-overlay.active .modal {
	transform: scale(1) translateY(0);
}

.modal-header {
	padding: var(--space-6);
	border-bottom: 1px solid var(--border-primary);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.modal-title {
	font-size: var(--font-size-xl);
	font-weight: 600;
	color: var(--text-primary);
	margin: 0;
}

.modal-close {
	background: none;
	border: none;
	color: var(--text-tertiary);
	font-size: var(--font-size-lg);
	cursor: pointer;
	padding: var(--space-2);
	border-radius: var(--border-radius);
	transition: all var(--transition-fast);
}

.modal-close:hover {
	background: var(--bg-quaternary);
	color: var(--text-primary);
}

.modal-body {
	padding: var(--space-6);
}

.modal-footer {
	padding: var(--space-6);
	border-top: 1px solid var(--border-primary);
	display: flex;
	gap: var(--space-3);
	justify-content: flex-end;
}

/* Responsive design */
@media (max-width: 768px) {
	body {
		padding: var(--space-4);
	}
	
	.main-content {
		padding: var(--space-6);
		border-radius: var(--border-radius-xl);
	}
	
	h1 {
		font-size: var(--font-size-2xl);
	}
	
	table.file_list th,
	table.file_list td {
		padding: var(--space-3);
		font-size: var(--font-size-sm);
	}
	
	td.download,
	td.edit {
		width: auto;
	}
	
	td.download a,
	td.edit a {
		padding: var(--space-1) var(--space-2);
		font-size: var(--font-size-xs);
	}
}

/* Professional scrollbar styling */
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-track {
	background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
	background: var(--border-secondary);
	border-radius: var(--border-radius);
}

::-webkit-scrollbar-thumb:hover {
	background: var(--border-tertiary);
}

/* Selection styling */
::selection {
	background: rgba(59, 130, 246, 0.3);
	color: var(--text-primary);
}

/* Focus indicators for accessibility */
*:focus-visible {
	outline: 2px solid var(--primary-color);
	outline-offset: 2px;
}

/* Utility classes */
.success-animation {
	animation: pulse 0.5s ease-in-out;
}

.error-shake {
	animation: shake 0.5s ease-in-out;
}

/* Unordered and ordered list styling */
ul,
ol {
	margin-left: var(--space-6);
	color: var(--text-secondary);
}

ul.spaced,
ol.spaced {
	line-height: 1.8;
}

li {
	margin-bottom: var(--space-1);
}

/* Professional form validation states */
input:invalid {
	border-color: var(--error-color);
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

input:valid {
	border-color: var(--success-color);
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Professional radio button styling */
input[type="radio"] {
	appearance: none;
	width: 1.25rem;
	height: 1.25rem;
	border: 1px solid var(--border-secondary);
	border-radius: 50%;
	background: var(--bg-tertiary);
	cursor: pointer;
	position: relative;
	transition: all var(--transition-fast);
}

input[type="radio"]:checked {
	background: var(--primary-color);
	border-color: var(--primary-color);
}

input[type="radio"]:checked::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 6px;
	height: 6px;
	background: white;
	border-radius: 50%;
}

fieldset.radio {
	display: flex;
	align-items: center;
	gap: var(--space-3);
}

/* Professional disabled state */
input:disabled,
button:disabled,
select:disabled,
textarea:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	background: var(--bg-secondary);
	color: var(--text-quaternary);
}

/* Print styles */
@media print {
	body {
		background: white !important;
		color: black !important;
	}
	
	.main-content {
		background: white !important;
		border: 1px solid #ccc !important;
		box-shadow: none !important;
	}
	
	button, .back-link, footer {
		display: none !important;
	}
	
	table.file_list {
		border: 1px solid #ccc !important;
	}
	
	table.file_list th,
	table.file_list td {
		border: 1px solid #ccc !important;
		background: white !important;
		color: black !important;
	}
	
	h1, h2, h3 {
		color: black !important;
	}
}