 :root {
            --primary-color: #4e73df;
            --secondary-color: #2e59d9;
            --accent-color: #36b9cc;
            --light-bg: #f8f9fc;
            --dark-text: #2d3748;
        }
        
        body {
            background-color: #f0f2f5;
            color: var(--dark-text);
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        .tool-header {
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            border-radius: 0 0 20px 20px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
            margin-bottom: 2rem;
        }
        
        .card {
            border-radius: 15px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
            border: none;
            margin-bottom: 20px;
            transition: transform 0.3s ease;
        }
        
        .card:hover {
            transform: translateY(-5px);
        }
        
        .card-header {
            background-color: white;
            border-bottom: 2px solid var(--light-bg);
            font-weight: 600;
            padding: 15px 20px;
            border-radius: 15px 15px 0 0 !important;
        }
        
        .feature-icons {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--accent-color), #2cc7db);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 15px;
        }
        
        .drop-area {
            border: 2px dashed #d1d3e2;
            border-radius: 10px;
            background-color: var(--light-bg);
            padding: 30px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            min-height: 250px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }
        
        .drop-area:hover, .drop-area.dragover {
            border-color: var(--primary-color);
            background-color: rgba(78, 115, 223, 0.05);
        }
        
        .btn-primary {
            background-color: var(--primary-color);
            border: none;
            padding: 10px 20px;
            font-weight: 600;
            transition: all 0.3s;
        }
        
        .btn-primary:hover {
            background-color: var(--secondary-color);
            transform: translateY(-2px);
        }
        
        .result-container {
            background-color: var(--light-bg);
            border-radius: 10px;
            padding: 20px;
            min-height: 200px;
            max-height: 300px;
            overflow-y: auto;
        }
        
        .image-preview {
            max-width: 100%;
            max-height: 200px;
            border-radius: 8px;
            margin-top: 15px;
            display: none;
        }
        
        .spinner-border {
            width: 1.5rem;
            height: 1.5rem;
            display: none;
        }
        
        .step-icon {
            width: 40px;
            height: 40px;
            background-color: var(--accent-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            margin-right: 15px;
        }
        
        footer {
            background-color: white;
            padding: 25px 0;
            margin-top: 40px;
            border-top: 1px solid rgba(0,0,0,0.05);
        }
        
        .tooltip-inner {
            border-radius: 6px;
        }
        
        .progress {
            height: 8px;
            margin-top: 10px;
            display: none;
        }
        
        @media (max-width: 768px) {
            .drop-area {
                min-height: 200px;
                padding: 20px;
            }
            
            .step-container {
                margin-bottom: 25px;
            }
        }


    /* ======================= heic to jpg ==================== */
       .navbar-brand {
            font-weight: 700;
        }
        
        .hero-section {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            color: white;
            padding: 4rem 0;
            border-radius: 0 0 20px 20px;
            margin-bottom: 2rem;
        }
        
        .converter-box {
            background: white;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            padding: 2rem;
            margin-bottom: 2rem;
        }
        
        .drop-area {
            border: 2px dashed #ccc;
            border-radius: 8px;
            padding: 3rem;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            margin-bottom: 1rem;
        }
        
        .drop-area:hover, .drop-area.highlight {
            border-color: var(--primary-color);
            background-color: rgba(78, 115, 223, 0.05);
        }
        
        .btn-primary {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
        }
        
        .btn-primary:hover {
            background-color: var(--secondary-color);
            border-color: var(--secondary-color);
        }
        
        .feature-icon {
            font-size: 2.5rem;
            color: var(--primary-color);
            margin-bottom: 1rem;
        }
        
        footer {
            background-color: var(--dark-color);
            color: white;
            padding: 2rem 0;
            margin-top: 3rem;
        }
        
        .how-to-use {
            background-color: #f1f6ff;
            /* padding: 2rem; */
            border-radius: 10px;
        }
        
        .step-number {
            display: inline-block;
            width: 30px;
            height: 30px;
            background-color: var(--primary-color);
            color: white;
            text-align: center;
            border-radius: 50%;
            margin-right: 10px;
            line-height: 30px;
        }
        
        @media (max-width: 768px) {
            .hero-section {
                padding: 2rem 0;
            }
            
            .display-4 {
                font-size: 2rem;
            }
        }


        /* ============================ image to pdf ========================== */

        .drop-zone {
            border: 2px dashed #0d6efd;
            border-radius: 10px;
            padding: 30px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            background-color: #f8f9fa;
        }
        .drop-zone:hover {
            background-color: #e9f0ff;
        }
        .drop-zone.active {
            border-color: #198754;
            background-color: #e8f5e9;
        }
        .file-list {
            max-height: 200px;
            overflow-y: auto;
        }
        .file-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px;
            border-bottom: 1px solid #eee;
        }
        .file-item:last-child {
            border-bottom: none;
        }
        .preview-img {
            max-width: 100px;
            max-height: 100px;
            margin-right: 10px;
        }
        .tool-features i {
            color: #0d6efd;
            font-size: 1.5rem;
            margin-bottom: 15px;
        }
.card-body h3 {
  font-size: 20px !important;
  font-weight: bold;
}


/* =========== convert to jpg ========== */

 .converter-box {
            border: 1px solid #e0e0e0;
            border-radius: 10px;
            padding: 30px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            background: white;
        }
        .upload-area {
            border: 2px dashed #ccc;
            border-radius: 8px;
            padding: 40px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            margin-bottom: 20px;
        }
        .upload-area:hover {
            border-color: #0d6efd;
            background-color: #f8f9fa;
        }
        .btn-convert {
            padding: 12px 30px;
            font-weight: 600;
        }
        .features-icon {
            font-size: 2.5rem;
            color: #0d6efd;
            margin-bottom: 15px;
        }
        .how-to-step {
            padding: 15px;
            border-left: 3px solid #0d6efd;
            margin-bottom: 15px;
        }
        footer {
            background-color: #f8f9fa;
            padding: 30px 0;
            margin-top: 50px;
        }
        #filePreview img {
            max-width: 100%;
            max-height: 200px;
            margin-bottom: 15px;
            border-radius: 5px;
        }

/* =============== image Resize ============ */
.hero-section {
            background: linear-gradient(135deg, var(--primary-color) 0%, #224abe 100%);
            color: white;
            padding: 3rem 0;
            margin-bottom: 2rem;
            border-radius: 0 0 10px 10px;
        }
        .tool-container {
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
            padding: 2rem;
            margin-bottom: 2rem;
        }
        .drop-area {
            border: 2px dashed #d1d3e2;
            border-radius: 8px;
            padding: 3rem;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            margin-bottom: 1.5rem;
        }
        .drop-area:hover {
            border-color: var(--primary-color);
            background-color: var(--secondary-color);
        }
        .btn-primary {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
        }
        .btn-primary:hover {
            background-color: #2e59d9;
            border-color: #2653d4;
        }
        .preview-image {
            max-width: 100px;
            max-height: 100px;
            margin: 5px;
            border: 1px solid #eee;
            border-radius: 4px;
        }
        .feature-icon {
            font-size: 2.5rem;
            color: var(--primary-color);
            margin-bottom: 1rem;
        }
        footer {
            background-color: #f8f9fc;
            padding: 2rem 0;
            margin-top: 3rem;
        }
        .progress {
            height: 10px;
            margin-top: 10px;
        }
        
        /* ================== Image Rename ==================== */


         .hero-section {
            background: linear-gradient(135deg, #6e8efb, #a777e3);
            color: white;
            padding: 4rem 0;
            margin-bottom: 3rem;
            border-radius: 0 0 20px 20px;
        }
        .feature-icon {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            color: #6e8efb;
        }
        .tool-container {
            border: 2px dashed #ccc;
            border-radius: 10px;
            padding: 2rem;
            margin-bottom: 3rem;
            background: #f9f9f9;
        }
        .how-to-use {
            background-color: #f8f9fa;
            padding: 2rem;
            border-radius: 10px;
        }
        footer {
            background-color: #343a40;
            color: white;
            padding: 2rem 0;
            margin-top: 3rem;
        }
        .drag-area {
            border: 2px dashed #6e8efb;
            border-radius: 5px;
            padding: 30px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
        }
        .drag-area:hover {
            background-color: #f0f4ff;
        }
        .drag-area.active {
            border-color: #4CAF50;
            background-color: #e8f5e9;
        }
        .preview-image {
            max-width: 100px;
            max-height: 100px;
            margin: 5px;
        }

        /* ========================== image rotate================= */
         /* Hero Section */
        .hero-section {
            background-color: #f8f9fa;
        }
        
        /* Drop Zone */
        .drop-zone {
            border: 2px dashed #adb5bd;
            transition: all 0.3s ease;
            cursor: pointer;
        }
        
        .drop-zone.highlight {
            border-color: #0d6efd;
            background-color: rgba(13, 110, 253, 0.05);
        }
        
        /* Image Containers */
        .original-img-container, .rotated-img-container {
            min-height: 300px;
            display: flex;
            align-items: center;
            justify-content: center;
            background-color: #f8f9fa;
        }
        
        /* Rotation Buttons */
        .rotation-btn {
            flex: 1;
        }
        
        /* Responsive Adjustments */
        @media (max-width: 768px) {
            .hero-section .display-4 {
                font-size: 2.5rem;
            }
            
            .btn-group {
                flex-direction: column;
            }
            
            .rotation-btn {
                width: 100%;
                margin-bottom: 5px;
            }
        }
        
        /* Footer */
        footer a:hover {
            color: white !important;
            text-decoration: underline;
        }
        
        .social-icons a {
            display: inline-block;
            width: 36px;
            height: 36px;
            line-height: 36px;
            text-align: center;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
        }
        
        .social-icons a:hover {
            background-color: rgba(255, 255, 255, 0.2);
            transform: translateY(-3px);
        }

        /* ====================== Photo Edit ============== */

      .hero-section {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
            color: white;
            padding: 5rem 0;
            margin-bottom: 3rem;
        }
        
        .editor-container {
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            background: white;
            padding: 2rem;
            margin-bottom: 3rem;
        }
        
        .upload-area {
            border: 2px dashed #ccc;
            border-radius: 10px;
            padding: 3rem;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            margin-bottom: 2rem;
        }
        
        .upload-area:hover {
            border-color: var(--primary-color);
            background-color: rgba(78, 115, 223, 0.05);
        }
        
        canvas {
            max-width: 100%;
            height: auto;
            display: block;
            margin: 0 auto;
            border: 1px solid #ddd;
            border-radius: 5px;
        }
        
        .btn-outline-primary .fa-spinner {
            margin-right: 0.5rem;
        }
        
        .how-to-use {
            background-color: white;
            border-radius: 10px;
            padding: 2rem;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        
        .step {
            margin-bottom: 1.5rem;
            padding-left: 2rem;
            border-left: 3px solid var(--primary-color);
        }
        
        .step-number {
            display: inline-block;
            background-color: var(--primary-color);
            color: white;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            text-align: center;
            line-height: 30px;
            margin-right: 10px;
            font-weight: bold;
        }
        
        @media (max-width: 768px) {
            .hero-section {
                padding: 3rem 0;
            }
            
            .navbar-brand {
                font-size: 1.5rem;
            }
            
            .editor-container {
                padding: 1rem;
            }
            
            .upload-area {
                padding: 2rem 1rem;
            }
        }