/* ======================
   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;
}
.coming-soon {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	text-align: center;
	padding: 2rem;
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
	color: #fff;
}

.coming-soon h1 {
	font-size: 3rem;
	margin-bottom: 1rem;
	background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.coming-soon p {
	font-size: 1.2rem;
	margin-bottom: 2rem;
	color: #e2e8f0;
}

.btn-back {
	padding: 1rem 2rem;
	background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
	color: white;
	text-decoration: none;
	border-radius: 8px;
	font-weight: 600;
	transition: all 0.3s ease;
}

.btn-back:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4);
}

/* Responsive styles */
@media (max-width: 768px) {
	.coming-soon h1 {
		font-size: 2.5rem;
	}
	
	.coming-soon p {
		font-size: 1.1rem;
	}
}

@media (max-width: 480px) {
	.coming-soon h1 {
		font-size: 2rem;
	}
	
	.coming-soon p {
		font-size: 1rem;
	}
	
	.btn-back {
		padding: 0.8rem 1.6rem;
	}
}

.tool-page {
	padding: 2rem;
	max-width: 1200px;
	margin: 0 auto;
}

.tool-container {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	padding: 2rem;
	margin-bottom: 4rem;
}

.tool-container h1 {
	font-size: 2.5rem;
	color: #2d3748;
	margin-bottom: 1rem;
	font-weight: 700;
}

.tool-description {
	margin: 1rem 0 2rem;
	color: #4a5568;
	font-size: 1.1rem;
	max-width: 900px;
}

/* ======================
   TOOL INSTRUCTIONS
   ====================== */
   .tool-instructions {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.instructions-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.instruction-step {
    display: flex;
    align-items: flex-start;
    background: white;
    padding: 1.2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.instruction-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}
/* ======================

/* Related Tools */
.related-tools {
	margin: 2rem 0;
}

.related-tools h3 {
	margin-bottom: 1rem;
	color: #2d3748;
	font-size: 1.3rem;
}

.related-tools-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1rem;
}

.related-tool {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	background: #f7fafc;
	border-radius: 8px;
	text-decoration: none;
	color: #2d3748;
	transition: all 0.3s ease;
	text-align: center;
}

.related-tool:hover {
	background: #edf2f7;
	transform: translateY(-2px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.related-tool i {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
	color: #4299e1;
}

/* Tool Interface */
.tool-interface {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

/* Upload Section */
.upload-section {
	text-align: center;
	padding: 4rem 2rem;
	border: 2px dashed #cbd5e0;
	border-radius: 12px;
	background: #f7fafc;
	transition: all 0.3s ease;
}

.upload-section.highlight {
	border-color: #4299e1;
	background-color: #ebf8ff;
}

.upload-section h3 {
	margin-bottom: 1rem;
	color: #2d3748;
}

.upload-section p {
	color: #718096;
	margin-bottom: 1.5rem;
}

.upload-btn {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
	background: #4299e1;
	color: white;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.3s;
	font-weight: 500;
}

.upload-btn:hover {
	background: #3182ce;
}

.upload-dropzone-text {
	margin-top: 1rem;
	color: #718096;
	font-size: 0.9rem;
}

/* Editor Container */
.editor-container {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
}

.editor-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem;
	background: #f7fafc;
	border-bottom: 1px solid #e2e8f0;
}

.editor-header h3 {
	color: #2d3748;
	font-weight: 600;
}

.image-info {
	display: flex;
	gap: 1rem;
	font-size: 0.9rem;
	color: #718096;
}

/* Toolbar */
.editor-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 1rem;
	background: #edf2f7;
	border-bottom: 1px solid #e2e8f0;
}

.tool-btn {
	padding: 0.6rem 1rem;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s;
	font-size: 0.9rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.tool-btn:hover {
	background: #f7fafc;
	border-color: #cbd5e0;
}

.tool-btn.active {
	background: #4299e1;
	color: white;
	border-color: #3182ce;
}

.tool-btn.active i {
	color: white;
}

.tool-btn i {
	color: #4299e1;
}

/* Editor Main */
.editor-main {
	display: flex;
	height: 500px;
}

.canvas-container {
	flex: 1;
	min-width: 300px;
	position: relative;
	background: #f0f0f0;
	background-image: linear-gradient(45deg, #ddd 25%, transparent 25%), 
					  linear-gradient(-45deg, #ddd 25%, transparent 25%),
					  linear-gradient(45deg, transparent 75%, #ddd 75%),
					  linear-gradient(-45deg, transparent 75%, #ddd 75%);
	background-size: 20px 20px;
	background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
	overflow: hidden;
	display: flex;
	justify-content: center;
	align-items: center;
}

#imageCanvas {
	max-width: 100%;
	max-height: 100%;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Editor Panels */
.editor-panels {
	width: 300px;
	background: #f7fafc;
	border-left: 1px solid #e2e8f0;
	overflow-y: auto;
}

.tool-panel {
	padding: 1.5rem;
}

.tool-panel h4 {
	margin-bottom: 1rem;
	color: #2d3748;
	font-weight: 600;
	font-size: 1rem;
}

.panel-controls {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

/* Input Styles */
.input-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.input-group label {
	font-size: 0.9rem;
	color: #4a5568;
	font-weight: 500;
}

.input-group input[type="text"],
.input-group input[type="number"],
.input-group select {
	padding: 0.6rem;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	font-size: 0.9rem;
	transition: border-color 0.2s;
}

.input-group input:focus,
.input-group select:focus {
	border-color: #4299e1;
	outline: none;
}

.checkbox-group {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
	width: 16px;
	height: 16px;
}

/* Slider Styles */
.slider-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.slider-group label {
	font-size: 0.9rem;
	color: #4a5568;
	font-weight: 500;
	display: flex;
	justify-content: space-between;
}

.slider-group input[type="range"] {
	width: 100%;
}

.slider-value {
	font-size: 0.9rem;
	color: #4a5568;
}

/* Preset Buttons */
.preset-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.preset-btn {
	padding: 0.5rem 1rem;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s;
	font-size: 0.9rem;
}

.preset-btn:hover {
	background: #f7fafc;
	border-color: #cbd5e0;
}

.preset-btn.active {
	background: #4299e1;
	color: white;
	border-color: #3182ce;
}

/* Action Buttons */
.action-buttons {
	display: flex;
	gap: 0.5rem;
	margin-top: 1rem;
}

.action-btn {
	padding: 0.6rem 1rem;
	background: #f7fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s;
	font-size: 0.9rem;
	font-weight: 500;
	flex: 1;
	text-align: center;
}

.action-btn:hover {
	background: #edf2f7;
	border-color: #cbd5e0;
}

.action-btn.primary {
	background: #4299e1;
	color: white;
	border-color: #3182ce;
}

.action-btn.primary:hover {
	background: #3182ce;
}

/* Filter Grid */
.filter-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 1rem;
	margin-bottom: 1rem;
}

.filter-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	cursor: pointer;
	transition: all 0.2s;
}

.filter-item span {
	margin-top: 0.5rem;
	font-size: 0.8rem;
	color: #4a5568;
}

.filter-preview {
	width: 100px;
	height: 100px;
	background: #f0f0f0;
	border-radius: 4px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8rem;
	color: #718096;
	border: 2px solid transparent;
}

.filter-item:hover .filter-preview {
	border-color: #cbd5e0;
}

.filter-item.active .filter-preview {
	border-color: #4299e1;
}

/* Rotate and Flip Buttons */
.rotate-buttons,
.flip-buttons {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

/* Editor Footer */
.editor-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem;
	background: #f7fafc;
	border-top: 1px solid #e2e8f0;
}

.history-buttons {
	display: flex;
	gap: 0.5rem;
}

.history-btn {
	padding: 0.6rem 1rem;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.2s;
	font-size: 0.9rem;
}

.history-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.history-btn:not(:disabled):hover {
	background: #f7fafc;
	border-color: #cbd5e0;
}

.save-buttons {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.download-options {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

#formatSelect {
	padding: 0.5rem;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	font-size: 0.9rem;
}

.quality-control {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9rem;
	color: #4a5568;
}

#qualitySlider {
	width: 100px;
}

/* Download Modal */
.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1000;
	justify-content: center;
	align-items: center;
}

.modal-content {
	background: white;
	border-radius: 12px;
	padding: 2rem;
	max-width: 500px;
	width: 90%;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
	position: relative;
}

.close-modal {
	position: absolute;
	top: 1rem;
	right: 1rem;
	font-size: 1.5rem;
	cursor: pointer;
	color: #718096;
}

.download-preview {
	margin: 1.5rem 0;
	display: flex;
	justify-content: center;
}

.download-preview img {
	max-width: 100%;
	max-height: 200px;
	border-radius: 4px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.download-options .format-options,
.download-options .quality-options,
.download-options .filename-options {
	margin-bottom: 1rem;
}

/* Blog Section */
.blog-section {
	margin-top: 4rem;
}

.blog-section h2 {
	font-size: 2rem;
	color: #2d3748;
	margin-bottom: 2rem;
	font-weight: 700;
}

.blog-post {
	margin-bottom: 3rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid #e2e8f0;
}

.blog-post:last-child {
	border-bottom: none;
}

.blog-post h3 {
	font-size: 1.5rem;
	color: #2d3748;
	margin-bottom: 1rem;
}

.blog-post h4 {
	font-size: 1.2rem;
	color: #4a5568;
	margin: 1.5rem 0 0.75rem 0;
}

.blog-post p {
	margin-bottom: 1rem;
	line-height: 1.7;
	color: #4a5568;
}

.blog-post ul, 
.blog-post ol {
	margin: 1rem 0 1.5rem 2rem;
	color: #4a5568;
}

.blog-post li {
	margin-bottom: 0.5rem;
}

.blog-post strong {
	color: #2d3748;
	font-weight: 600;
}

/* Cropper.js Customization */
.cropper-view-box {
	outline: 1px solid #4299e1;
	outline-color: rgba(66, 153, 225, 0.75);
}

.cropper-line {
	background-color: #4299e1;
}

.cropper-point {
	background-color: #4299e1;
}

/* Responsive Styles */
@media (max-width: 1024px) {
	.editor-main {
		flex-direction: column;
		height: auto;
	}
	
	.editor-panels {
		width: 100%;
		border-left: none;
		border-top: 1px solid #e2e8f0;
	}
	
	.canvas-container {
		height: 400px;
	}
}

@media (max-width: 768px) {
	.tool-page {
		padding: 1rem;
	}
	
	.tool-container {
		padding: 1.5rem;
	}
	
	.tool-container h1 {
		font-size: 2rem;
	}
	
	.editor-toolbar {
		overflow-x: auto;
		flex-wrap: nowrap;
		padding: 0.75rem;
	}
	
	.editor-footer {
		flex-direction: column;
		gap: 1rem;
	}
	
	.save-buttons {
		flex-direction: column;
		width: 100%;
	}
	
	.history-buttons {
		width: 100%;
		justify-content: space-between;
	}
}

@media (max-width: 480px) {
	.tool-container h1 {
		font-size: 1.75rem;
	}
	
	.canvas-container {
		height: 300px;
	}
	
	.tool-btn {
		padding: 0.5rem 0.75rem;
		font-size: 0.8rem;
	}
	
	.filter-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Filter Tool Styles */
.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.filter-option {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.filter-option:hover {
    background-color: #e9ecef;
}

.filter-option.active {
    background-color: #007bff;
    color: white;
    border-color: #0069d9;
}

.filter-preview {
    margin-top: 15px;
    text-align: center;
}

.filter-intensity {
    width: 100%;
    margin: 15px 0;
}

/* Filter thumbnails */
.filter-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 15px;
}

.filter-thumbnail {
    position: relative;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
}

.filter-thumbnail.active {
    border-color: #007bff;
}

.filter-thumbnail img {
    width: 100%;
    height: 70px;
    object-fit: cover;
}

.filter-thumbnail .filter-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    text-align: center;
    padding: 4px 0;
    font-size: 12px;
}