.tools-parent-container{
.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.header {
    background: #1e1e1e;
    color: white;
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: var(--fs-16-32);
    font-weight: 700;
    margin-bottom: 10px;
}

.header p {
    font-size: var(--fs-12-24);
    opacity: 0.9;
}

.main-content {
    padding: 30px;
    display: flow-root;
}

/* Upload Section */
.upload-section {
    margin-bottom: 30px;
}

.upload-area {
    border: 3px dashed #de9406;
    border-radius: 15px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fffdee;
}

.upload-area:hover {
    border-color: #1e1e1e;
    background: #de920667;
    transform: translateY(-2px);
}

.upload-area i {
    font-size: 3rem;
    color: #de9406;
    margin-bottom: 20px;
}

.upload-area h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.upload-area p {
    color: #666;
    font-size: 1rem;
}

/* Controls Section */
.controls-section {
    background: #f8f9ff;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.controls-grid {
    display: grid;
    gap: 30px;
}

/* Watermark Sections */
.watermark-section {
    background: white;
    border-radius: 15px;
    padding: 25px;
    border: 2px solid #e0e0e0;
    transition: border-color 0.3s ease;
}

.watermark-section:hover {
    border-color: #667eea;
}

.watermark-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.watermark-section h3 i {
    color: #667eea;
}

/* Toggle Switch */
.watermark-toggle {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #667eea;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.control-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.control-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Form Controls */
input[type="text"], select {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus, select:focus {
    outline: none;
    border-color: #667eea;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
}

input[type="color"] {
    width: 60px;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.value-display {
    font-weight: 600;
    color: #667eea;
    font-size: 0.9rem;
}

/* Position Grid */
.position-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 150px;
}

.position-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.position-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.position-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

/* Upload Button */
.upload-btn {
    padding: 12px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
    width: 100%;
}

.upload-btn:hover {
    background: #5a6fd8;
}

/* Watermark Preview */
.watermark-preview {
    margin-top: 15px;
    position: relative;
    display: inline-block;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
}

.watermark-preview img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    display: block;
}

.remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background 0.3s ease;
}

.remove-btn:hover {
    background: rgba(255, 0, 0, 1);
}

/* Preview Section */
.preview-section {
    text-align: center;
}

.preview-container {
    background: #f8f9ff;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    display: inline-block;
    max-width: 100%;
    position: relative;
}

#canvas {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background: #d0d0d0;
    transform: translateY(-2px);
}

/* Disabled State */
.text-controls.disabled,
.image-controls.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .header {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .controls-section {
        padding: 20px;
    }
    
    .watermark-section {
        padding: 20px;
    }
    
    .control-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .upload-area {
        padding: 40px 15px;
    }
    
    .upload-area i {
        font-size: 2rem;
    }
    
    .upload-area h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.5rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .controls-grid {
        gap: 20px;
    }
    
    .position-grid {
        max-width: 120px;
    }
    
    .position-btn {
        width: 35px;
        height: 35px;
    }
    
    .upload-area {
        padding: 30px 10px;
    }
    
    .watermark-section h3 {
        font-size: 1rem;
    }
}

@media (min-width: 1024px) {
    .main-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        align-items: start;
    }
    
    .upload-section {
        grid-column: 1 / -1;
        margin-bottom: 0;
    }
    
    .controls-section {
        margin-bottom: 0;
    }
}

/* Animation for smooth transitions */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}
.text-style-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}
.text-style-controls button {
  width: 32px;
  height: 32px;
  border: 1px solid #e0e0e0;
  background: #f8f9ff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}
.text-style-controls button.active {
  background: #667eea;
  color: #fff;
  border-color: #667eea;
}
.text-style-controls input[type="color"] {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  margin-left: 8px;
}
}