/* ======================
   RESET & BASE STYLES
   ====================== */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
      Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}
.tool-page {
	padding: 2rem;
	max-width: 1200px;
	margin: 0 auto;
}

.tool-container {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	padding: 2rem;
}

.tool-description {
	margin: 1rem 0 2rem;
	color: #666;
}

.tool-interface {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.upload-section {
	text-align: center;
	padding: 3rem;
	border: 2px dashed #ddd;
	border-radius: 8px;
	background: #f9f9f9;
	transition: border-color 0.3s;
}

.upload-section.drag-over {
	border-color: #007bff;
	background: #f0f7ff;
}

.upload-btn {
	padding: 1rem 2rem;
	font-size: 1.1rem;
	background: #007bff;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.3s;
}

.upload-btn:hover {
	background: #0056b3;
}

.upload-hint {
	margin-top: 1rem;
	color: #666;
	font-style: italic;
}

.files-list {
	margin-bottom: 2rem;
}

.files-list h3 {
	margin-bottom: 1rem;
	color: #333;
}

.list-container {
	background: #f8f9fa;
	border-radius: 8px;
	padding: 1rem;
}

.file-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem;
	background: white;
	border: 1px solid #ddd;
	border-radius: 4px;
	margin-bottom: 0.5rem;
}

.file-info {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.file-icon {
	color: #666;
}

.file-name {
	font-size: 0.9rem;
}

.file-size {
	color: #666;
	font-size: 0.8rem;
}

.remove-file {
	padding: 0.25rem;
	background: none;
	border: none;
	color: #dc3545;
	cursor: pointer;
	transition: color 0.3s;
}

.remove-file:hover {
	color: #bd2130;
}

.controls {
	background: #f8f9fa;
	padding: 1.5rem;
	border-radius: 8px;
}

.conversion-options {
	margin-bottom: 1.5rem;
}

.option-group {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
}

.option-group label {
	min-width: 100px;
	color: #666;
}

.option-group select {
	padding: 0.5rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 1rem;
}

.quality-options {
	display: flex;
	gap: 2rem;
}

.checkbox-group {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	cursor: pointer;
}

.progress-container {
	margin: 1.5rem 0;
}

.progress-bar {
	width: 100%;
	height: 8px;
	background: #e9ecef;
	border-radius: 4px;
	overflow: hidden;
}

.progress {
	width: 0;
	height: 100%;
	background: #007bff;
	transition: width 0.3s ease;
}

.progress-text {
	display: block;
	text-align: center;
	margin-top: 0.5rem;
	color: #666;
	font-size: 0.9rem;
}

.convert-btn,
.download-btn {
	padding: 0.5rem 1.5rem;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.3s;
}

.convert-btn {
	background: #28a745;
}

.convert-btn:hover {
	background: #218838;
}

.download-btn {
	background: #007bff;
	margin-left: 1rem;
}

.download-btn:hover {
	background: #0056b3;
}

.convert-btn i,
.download-btn i {
	margin-right: 0.5rem;
}

@media (max-width: 768px) {
	.quality-options {
		flex-direction: column;
		gap: 1rem;
	}
	
	.option-group {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.option-group label {
		margin-bottom: 0.5rem;
	}
	
	.download-btn {
		margin-left: 0;
		margin-top: 1rem;
	}
}