* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--primary: #6366f1;
	--primary-dark: #4f46e5;
	--success: #10b981;
	--danger: #ef4444;
	--warning: #f59e0b;
	--bg: #f8fafc;
	--card-bg: #ffffff;
	--text: #0f172a;
	--text-light: #64748b;
	--border: #e2e8f0;
	--shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
	--shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: var(--text);
	line-height: 1.6;
	min-height: 100vh;
	padding: 2rem 1rem;
}

.container {
	max-width: 1400px;
	margin: 0 auto;
}

header {
	text-align: center;
	background: linear-gradient(135deg, var(--primary) 0%, #764ba2 100%);
	padding: 1.25rem 1.5rem;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

.header-icon {
	font-size: 2rem;
	filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.header-logo {
	height: 50px;
	width: auto;
	filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

header h1 {
	font-size: 1.5rem;
	font-weight: 700;
	color: white;
	margin: 0;
	text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

header p {
	display: none;
}

.main-content {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	margin-bottom: 2rem;
}

@media (max-width: 1024px) {
	.main-content {
		grid-template-columns: 1fr;
	}
}

.upload-card, .prompt-card {
	background: var(--card-bg);
	padding: 2rem;
	border-radius: 16px;
	box-shadow: var(--shadow-lg);
}

.upload-card h2, .prompt-card h2 {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
	color: var(--text);
}

.file-input-wrapper {
	position: relative;
	margin-bottom: 1.5rem;
}

.file-input-wrapper input[type="file"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.file-label {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 3rem 2rem;
	border: 2px dashed var(--border);
	border-radius: 12px;
	background: var(--bg);
	cursor: pointer;
	transition: all 0.3s ease;
}

.file-label:hover {
	border-color: var(--primary);
	background: #f1f5ff;
}

.file-label svg {
	color: var(--primary);
	margin-bottom: 1rem;
}

.file-label span {
	font-size: 1.1rem;
	font-weight: 500;
	color: var(--text);
	margin-bottom: 0.5rem;
}

.file-label small {
	font-size: 0.9rem;
	color: var(--text-light);
}

.file-list {
	margin-bottom: 1rem;
	max-height: 200px;
	overflow-y: auto;
}

.file-item {
	display: flex;
	align-items: center;
	padding: 0.75rem;
	background: var(--bg);
	border-radius: 8px;
	margin-bottom: 0.5rem;
	font-size: 0.9rem;
	color: var(--text);
}

.file-item::before {
	content: "📄";
	margin-right: 0.5rem;
}

.btn-primary, .btn-export {
	width: 100%;
	padding: 1rem 2rem;
	font-size: 1.1rem;
	font-weight: 600;
	color: white;
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
	border: none;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: var(--shadow);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.btn-primary:hover, .btn-export:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

.btn-primary:active, .btn-export:active {
	transform: translateY(0);
}

.btn-primary:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
}

.btn-export {
	width: auto;
}

.prompt-card textarea {
	width: 100%;
	padding: 1rem;
	border: 1px solid var(--border);
	border-radius: 8px;
	font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
	font-size: 0.9rem;
	resize: vertical;
	min-height: 400px;
	line-height: 1.5;
}

.prompt-card textarea:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.progress-section {
	background: var(--card-bg);
	padding: 2rem;
	border-radius: 16px;
	box-shadow: var(--shadow-lg);
	margin-bottom: 2rem;
}

.progress-section h3 {
	font-size: 1.3rem;
	font-weight: 600;
	margin-bottom: 1rem;
	color: var(--text);
}

#progressContent {
	font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
	font-size: 0.9rem;
	color: var(--text-light);
	white-space: pre-wrap;
	line-height: 1.8;
}

.progress-item {
	padding: 0.5rem;
	margin-bottom: 0.25rem;
	border-radius: 4px;
}

.progress-item.success {
	background: #d1fae5;
	color: #065f46;
}

.progress-item.error {
	background: #fee2e2;
	color: #991b1b;
}

/* Compact Modern Progress Bar */
.global-progress {
	padding: 1.25rem 1.5rem;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(102, 126, 234, 0.25);
	position: relative;
	overflow: hidden;
}

.global-progress::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
	animation: progressShine 3s infinite;
}

@keyframes progressShine {
	0% { left: -100%; }
	100% { left: 100%; }
}

.progress-info {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.75rem;
	position: relative;
	z-index: 1;
}

.progress-status {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: white;
	text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ai-brain-icon {
	width: 28px;
	height: 28px;
	animation: brainPulse 2s ease-in-out infinite;
	filter: drop-shadow(0 2px 8px rgba(255,255,255,0.5));
}

@keyframes brainPulse {
	0%, 100% {
		transform: scale(1) rotate(0deg);
	}
	25% {
		transform: scale(1.15) rotate(-5deg);
	}
	75% {
		transform: scale(1.15) rotate(5deg);
	}
}

.progress-percentage {
	font-size: 2rem;
	font-weight: 800;
	color: white;
	text-shadow: 0 2px 6px rgba(0,0,0,0.3);
	animation: numberChange 0.3s ease;
	letter-spacing: -1px;
}

@keyframes numberChange {
	0% { transform: scale(1.2); }
	100% { transform: scale(1); }
}

.progress-bar-wrapper {
	position: relative;
	width: 100%;
	height: 12px;
	background: rgba(0, 0, 0, 0.25); /* daha koyu track: ilerleme net görünsün */
	border-radius: 20px;
	overflow: hidden;
	box-shadow: inset 0 2px 8px rgba(0,0,0,0.35);
	backdrop-filter: blur(10px);
	z-index: 1;
}

.progress-bar-fill {
	height: 100%;
	/* yüksek kontrastlı, belirgin ilerleme rengi */
	background: linear-gradient(90deg, #60a5fa 0%, #8b5cf6 100%);
	border-radius: 25px;
	transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	box-shadow: 0 4px 14px rgba(99, 102, 241, 0.45);
}

.progress-bar-fill::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 50%;
	background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
	border-radius: 25px 25px 0 0;
}

.progress-bar-fill::after {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 50%;
	height: 100%;
	background: linear-gradient(
		90deg,
		transparent,
		rgba(255, 255, 255, 0.8),
		transparent
	);
	animation: progressSweep 2s ease-in-out infinite;
}

@keyframes progressSweep {
	0% { left: -100%; }
	100% { left: 150%; }
}

.progress-bar-fill.complete {
	background: linear-gradient(90deg, #4ade80 0%, #22c55e 100%);
	box-shadow: 0 4px 20px rgba(74, 222, 128, 0.6);
	animation: completeGlow 0.8s ease-in-out;
}

@keyframes completeGlow {
	0% { 
		box-shadow: 0 4px 20px rgba(74, 222, 128, 0.3);
		transform: scale(0.98);
	}
	50% { 
		box-shadow: 0 6px 32px rgba(74, 222, 128, 0.8);
		transform: scale(1.01);
	}
	100% { 
		box-shadow: 0 4px 20px rgba(74, 222, 128, 0.6);
		transform: scale(1);
	}
}

.progress-bar-fill.complete::after {
	animation: none;
}

.progress-details {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.75rem;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.85);
	padding: 0.5rem 0.75rem;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 8px;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.15);
	position: relative;
	z-index: 1;
}

.progress-current-file {
	font-weight: 600;
	color: white;
	font-family: 'Courier New', monospace;
	font-size: 0.8rem;
}

/* Modern Compact Progress Content */
.progress-content {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.results-section {
	background: var(--card-bg);
	padding: 2rem;
	border-radius: 16px;
	box-shadow: var(--shadow-lg);
}

.results-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
}

.results-header h2 {
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--text);
}

.table-container {
	overflow: auto;
	border-radius: 8px;
	border: 1px solid var(--border);
	max-height: 600px;
	position: relative;
}

table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
	table-layout: auto;
}

thead {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	position: sticky;
	top: 0;
	z-index: 10;
}

th {
	padding: 1rem;
	text-align: left;
	font-weight: 600;
	color: white;
	border-bottom: 2px solid rgba(255, 255, 255, 0.2);
	white-space: nowrap;
	vertical-align: middle;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

td {
	padding: 1rem;
	border-bottom: 1px solid var(--border);
	color: var(--text);
	vertical-align: top;
	word-wrap: break-word;
	max-width: 300px;
	line-height: 1.6;
}

/* Detay sütunu daha geniş */
td:nth-child(6) {
	max-width: 400px;
}

/* Karar tarihi ve sayısı dar */
td:nth-child(1),
td:nth-child(2) {
	white-space: nowrap;
	max-width: 120px;
}

tbody tr {
	transition: background 0.2s ease;
	background: white;
}

tbody tr:nth-child(even) {
	background: #f8fafc;
}

tbody tr:hover {
	background: #e0e7ff !important;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
	transform: scale(1.001);
}

.empty-row td {
	text-align: center;
	color: var(--text-light);
	font-style: italic;
	padding: 2rem;
}

@media (max-width: 768px) {
	body {
		padding: 1rem 0.5rem;
	}
	
	header {
		padding: 2rem 1rem;
	}
	
	header h1 {
		font-size: 1.8rem;
	}
	
	.upload-card, .prompt-card, .progress-section, .results-section {
		padding: 1.5rem;
	}
	
	.file-label {
		padding: 2rem 1rem;
	}
	
	.results-header {
		flex-direction: column;
		gap: 1rem;
		align-items: flex-start;
	}
	
	.btn-export {
		width: 100%;
	}
	
	table {
		font-size: 0.8rem;
	}
	
	th, td {
		padding: 0.75rem 0.5rem;
	}
}

/* Scrollbar styling */
::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

::-webkit-scrollbar-track {
	background: var(--bg);
	border-radius: 5px;
}

::-webkit-scrollbar-thumb {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 5px;
	border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Tablo container scrollbar */
.table-container::-webkit-scrollbar {
	width: 12px;
	height: 12px;
}

.table-container::-webkit-scrollbar-thumb {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 6px;
}
