        :root {
            --primary: #0A2540;
            --primary-light: #0A2540;
            --primary-dark: #0A2540;
            --secondary: #FF6584;
            --light: #f8f9fa;
            --dark: #2D3748;
            --gray: #718096;
            --light-gray: #E2E8F0;
            --success: #4CAF50;
        }

        * {
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background-color: #f9fafb;
            color: var(--dark);
            line-height: 1.5;
            margin: 0;
            padding: 0;
        }

        .navbar {
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            padding: 0.75rem 0;
        }

        .hero-section {
            background: linear-gradient(135deg, #0A2540 0%, #2d3e4f 100%);
            color: white;
            padding: 40px 0;
            margin-bottom: 30px;
            position: relative;
            overflow: hidden;
        }

        .hero-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
        }

        .creation-area {
            background: white;
            border-radius: 16px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
            overflow: hidden;
            margin-bottom: 60px;
            width: 100%;
        }

        .form-section {
            padding: 30px;
            background-color: #f9fafb;
            border-right: 1px solid var(--light-gray);
            height: 100%;
            overflow-y: auto;
        }

        .preview-section {
            padding: 30px;
            background: white;
            display: flex;
            flex-direction: column;
            position: sticky;
            top: 20px;
            height: auto;
            overflow-y: auto;
            /* Sabitlenme için önemli stil eklemeleri */
            position: sticky;
            top: 20px;
            align-self: flex-start;
            height: auto;
        }

        .template-selector-container {
            position: relative;
            margin-bottom: 20px;
            margin-top: 50px;
            width: 100%;
        }

        .template-selector {
            display: flex;
            gap: 10px;
            overflow-x: auto;
            padding-bottom: 10px;
            scroll-behavior: smooth;
        }

        .template-selector::-webkit-scrollbar {
            height: 6px;
        }

        .template-selector::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }

        .template-selector::-webkit-scrollbar-thumb {
            background: var(--primary-light);
            border-radius: 10px;
        }

        .template-option {
            flex: 0 0 auto;
            width: 120px;
            border: 2px solid var(--light-gray);
            border-radius: 10px;
            padding: 12px 8px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .template-option:hover, .template-option.active {
            border-color: var(--primary);
            background-color: rgba(108, 99, 255, 0.05);
        }

        /* Template Selector için özel scroll butonları */
        .template-selector-container .scroll-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: white;
            border: 1px solid var(--light-gray);
            border-radius: 50%;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 20; /* Daha yüksek z-index */
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            opacity: 0.8;
            transition: all 0.3s;
        }

        .template-selector-container .scroll-btn:hover {
            opacity: 1;
            background: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        .template-selector-container .scroll-btn.left {
            left: -15px;
        }

        .template-selector-container .scroll-btn.right {
            right: -15px;
        }

        /* Dil ve Para Birimi için scroll butonları */
        .language-selector-container .scroll-btn,
        .currency-selector-container .scroll-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: white;
            border: 1px solid var(--light-gray);
            border-radius: 50%;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 15;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            opacity: 0.7;
            transition: all 0.3s;
            font-size: 0.7rem;
        }

        .language-selector-container .scroll-btn:hover,
        .currency-selector-container .scroll-btn:hover {
            opacity: 1;
            background: var(--primary);
            color: white;
        }

        .language-selector-container .scroll-btn.left,
        .currency-selector-container .scroll-btn.left {
            left: -30px;
        }

        .language-selector-container .scroll-btn.right,
        .currency-selector-container .scroll-btn.right {
            right: -30px;
        }

        .template-preview {
            flex: 1;
            background: white;
            border-radius: 12px;
            box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
            display: flex;
            flex-direction: column;
        }

        .template-content {
            flex: 1;
            padding: 30px;
            overflow-y: visible;
        }

        .template-1 {
            background: white;
        }

        /* YENİ TEMPLATE 2 - Modern Minimal */
        .template-2 {
            background: white;
            position: relative;
            overflow: hidden;
        }

        .template-2::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
        }

        .template-2 .template-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 25px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(0,0,0,0.05);
        }

        .template-2 .template-contact {
            text-align: right;
            font-size: 0.85rem;
            color: var(--gray);
        }

        .template-2 .client-info {
            background: linear-gradient(135deg, rgba(108, 99, 255, 0.05), rgba(255, 101, 132, 0.05));
            padding: 20px;
            border-radius: 12px;
            margin-bottom: 25px;
            border-left: 4px solid var(--primary);
        }

        .template-2 .client-info-title {
            color: var(--primary);
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 10px;
            letter-spacing: 0.5px;
        }

        .template-2 .client-company-name {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 8px;
        }

        .template-2 .client-contact-info {
            color: var(--gray);
            font-size: 0.9rem;
            line-height: 1.5;
        }

        .template-2 h4 {
            text-align: center;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 25px;
            position: relative;
            padding-bottom: 15px;
        }

        .template-2 h4::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            border-radius: 2px;
        }

        .template-2 .product-item {
            background: white;
            padding: 20px;
            border-radius: 12px;
            margin-bottom: 15px;
            box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
            border: 1px solid rgba(108, 99, 255, 0.1);
            transition: all 0.3s ease;
        }

        .template-2 .product-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
            border-color: rgba(108, 99, 255, 0.2);
        }

        .template-2 .product-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--dark);
            margin-bottom: 8px;
        }

        .template-2 .product-description {
            color: var(--gray);
            font-size: 0.9rem;
            line-height: 1.5;
            margin-bottom: 10px;
        }

        .template-2 .price-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            margin: 25px 0;
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
        }

        .template-2 .price-table th {
            background: linear-gradient(135deg, var(--primary), var(--primary-light));
            color: white;
            font-weight: 600;
            padding: 15px 12px;
            text-align: left;
            border: none;
        }

        .template-2 .price-table td {
            padding: 12px;
            border-bottom: 1px solid rgba(108, 99, 255, 0.1);
            background: white;
        }

        .template-2 .price-table tr:last-child td {
            border-bottom: none;
        }

        .template-2 .total-row {
            background: rgba(108, 99, 255, 0.05) !important;
            font-weight: 700;
        }

        .template-2 .total-row td {
            border-top: 2px solid var(--primary);
            font-size: 1.1rem;
        }

        .template-2 .company-description {
            background: white;
            padding: 25px;
            border-radius: 15px;
            box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
            margin: 25px 0;
            border-left: 4px solid var(--secondary);
        }

        .template-2 .notes-section {
            background: white;
            padding: 25px;
            border-radius: 15px;
            box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
            margin: 25px 0;
            border-right: 4px solid var(--primary);
        }

        .template-2 .discount-badge {
            background: linear-gradient(135deg, var(--secondary), #ff8fa3);
            color: white;
            padding: 4px 8px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            margin-left: 8px;
        }

        .template-2 .empty-state {
            background: white;
            padding: 40px 20px;
            border-radius: 15px;
            box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
            text-align: center;
            color: var(--gray);
        }

        .template-2 .empty-state i {
            font-size: 3rem;
            margin-bottom: 15px;
            color: var(--light-gray);
            opacity: 0.7;
        }

        /* Product with image styles for template 2 */
        .template-2 .product-with-image {
            display: flex;
            align-items: flex-start;
            gap: 15px;
            padding: 15px;
            background: white;
            border-radius: 12px;
            margin-bottom: 15px;
            box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
            border: 1px solid rgba(108, 99, 255, 0.1);
        }

        .template-2 .product-image-small {
            width: 80px;
            height: 80px;
            object-fit: cover;
            border-radius: 8px;
            flex-shrink: 0;
        }

        .template-2 .product-details {
            flex: 1;
        }

        .template-3 {
            background: linear-gradient(135deg, #6C63FF, #0A2540);
            color: white;
        }

        .template-4 {
            background: white;
        }

        /* YENİ TEMPLATE 5 - Elegant Gradient */
        .template-5 {
            background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
            font-family: 'Inter', sans-serif;
            position: relative;
            overflow: hidden;
        }

        .template-5::before {
            content: '';
            position: absolute;
            top: 0;
            right: -50px;
            width: 200px;
            height: 200px;
            background: linear-gradient(135deg, rgba(108, 99, 255, 0.05) 0%, rgba(255, 101, 132, 0.05) 100%);
            border-radius: 50%;
            z-index: 0;
        }

        .template-5::after {
            content: '';
            position: absolute;
            bottom: -80px;
            left: -80px;
            width: 250px;
            height: 250px;
            background: linear-gradient(135deg, rgba(108, 99, 255, 0.03) 0%, rgba(255, 101, 132, 0.03) 100%);
            border-radius: 50%;
            z-index: 0;
        }

        .template-5 .template-header {
            background: white;
            padding: 25px 30px;
            margin: -30px -30px 25px -30px;
            border-radius: 0 0 20px 20px;
            box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
            position: relative;
            z-index: 1;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-direction: row !important;
        }

        .template-5 .logo-container {
            display: flex;
            align-items: center;
        }

        .template-5 .template-contact {
            text-align: right;
            font-size: 0.85rem;
            color: var(--gray);
        }

        .template-5 .client-info {
            background: white;
            padding: 20px;
            border-radius: 15px;
            box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
            margin-bottom: 25px;
            border-left: 4px solid var(--primary);
            position: relative;
            z-index: 1;
        }

        .template-5 .client-info-title {
            color: var(--primary);
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 10px;
            letter-spacing: 0.5px;
        }

        .template-5 .client-company-name {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 8px;
        }

        .template-5 .client-contact-info {
            color: var(--gray);
            font-size: 0.9rem;
            line-height: 1.5;
        }

        .template-5 h4 {
            text-align: center;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 25px;
            position: relative;
            padding-bottom: 15px;
        }

        .template-5 h4::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background: linear-gradient(90deg, var(--primary), var(--secondary));
            border-radius: 2px;
        }

        .template-5 .product-item {
            background: white;
            padding: 20px;
            border-radius: 12px;
            margin-bottom: 15px;
            box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
            border: 1px solid rgba(108, 99, 255, 0.1);
            transition: all 0.3s ease;
            position: relative;
            z-index: 1;
        }

        .template-5 .product-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
            border-color: rgba(108, 99, 255, 0.2);
        }

        .template-5 .product-title {
            font-size: 1.1rem;
            font-weight: 600;
            color: var(--dark);
            margin-bottom: 8px;
        }

        .template-5 .product-description {
            color: var(--gray);
            font-size: 0.9rem;
            line-height: 1.5;
            margin-bottom: 10px;
        }

        .template-5 .price-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            margin: 25px 0;
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
            position: relative;
            z-index: 1;
        }

        .template-5 .price-table th {
            background: linear-gradient(135deg, var(--primary), var(--primary-light));
            color: white;
            font-weight: 600;
            padding: 15px 12px;
            text-align: left;
            border: none;
        }

        .template-5 .price-table td {
            padding: 12px;
            border-bottom: 1px solid rgba(108, 99, 255, 0.1);
            background: white;
        }

        .template-5 .price-table tr:last-child td {
            border-bottom: none;
        }

        .template-5 .total-row {
            background: rgba(108, 99, 255, 0.05) !important;
            font-weight: 700;
        }

        .template-5 .total-row td {
            border-top: 2px solid var(--primary);
            font-size: 1.1rem;
        }

        .template-5 .company-description {
            background: white;
            padding: 25px;
            border-radius: 15px;
            box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
            margin: 25px 0;
            border-left: 4px solid var(--secondary);
            position: relative;
            z-index: 1;
        }

        .template-5 .notes-section {
            background: white;
            padding: 25px;
            border-radius: 15px;
            box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
            margin: 25px 0;
            border-right: 4px solid var(--primary);
            position: relative;
            z-index: 1;
        }

        .template-5 .discount-badge {
            background: linear-gradient(135deg, var(--secondary), #ff8fa3);
            color: white;
            padding: 4px 8px;
            border-radius: 20px;
            font-size: 0.75rem;
            font-weight: 600;
            margin-left: 8px;
        }

        .template-5 .empty-state {
            background: white;
            padding: 40px 20px;
            border-radius: 15px;
            box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
            text-align: center;
            color: var(--gray);
            position: relative;
            z-index: 1;
        }

        .template-5 .empty-state i {
            font-size: 3rem;
            margin-bottom: 15px;
            color: var(--light-gray);
            opacity: 0.7;
        }

        /* Product with image styles for template 5 */
        .template-5 .product-with-image {
            display: flex;
            align-items: flex-start;
            gap: 15px;
            padding: 15px;
            background: white;
            border-radius: 12px;
            margin-bottom: 15px;
            box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
            border: 1px solid rgba(108, 99, 255, 0.1);
        }

        .template-5 .product-image-small {
            width: 80px;
            height: 80px;
            object-fit: cover;
            border-radius: 8px;
            flex-shrink: 0;
        }

        .template-5 .product-details {
            flex: 1;
        }

        .template-6 {
            background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
            color: white;
            position: relative;
            overflow: hidden;
        }

        .template-6::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
        }

        .template-7 {
            background: white;
            border: 2px solid var(--primary);
            position: relative;
        }

        .template-7::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 8px;
            background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
        }

        .template-8 {
            background: linear-gradient(135deg, #0A2540 0%, #764ba2 100%);
            color: white;
        }

        .template-9 {
            background: white;
            border-left: 8px solid var(--primary);
        }

        .template-10 {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            color: white;
        }

        .template-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid var(--light-gray);
        }

        .template-3 .template-header,
        .template-6 .template-header,
        .template-8 .template-header,
        .template-10 .template-header {
            border-bottom: 1px solid rgba(255,255,255,0.2);
        }

        .template-4 .template-header {
            flex-direction: column;
            text-align: center;
            gap: 15px;
        }

        .template-5 .template-header {
            flex-direction: column-reverse;
            text-align: center;
            gap: 15px;
        }

        .template-7 .template-header {
            background: rgba(108, 99, 255, 0.05);
            padding: 20px;
            border-radius: 10px;
            margin-top: 10px;
        }

        .template-9 .template-header {
            padding-left: 20px;
        }

        .template-logo {
            max-height: 40px;
            max-width: 140px;
        }

        .logo-placeholder {
            height: 40px;
            width: 140px;
            background-color: var(--light-gray);
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--gray);
            font-size: 0.75rem;
        }

        .template-3 .logo-placeholder,
        .template-6 .logo-placeholder,
        .template-8 .logo-placeholder,
        .template-10 .logo-placeholder {
            background-color: rgba(255,255,255,0.2);
            color: rgba(255,255,255,0.7);
        }

        .template-contact {
            text-align: right;
            font-size: 0.85rem;
            color: var(--gray);
        }

        .template-3 .template-contact,
        .template-6 .template-contact,
        .template-8 .template-contact,
        .template-10 .template-contact {
            color: rgba(255,255,255,0.9);
        }

        .template-4 .template-contact,
        .template-5 .template-contact {
            text-align: center;
        }

        .contact-placeholder {
            color: var(--gray);
            font-style: italic;
        }

        .template-3 .contact-placeholder,
        .template-6 .contact-placeholder,
        .template-8 .contact-placeholder,
        .template-10 .contact-placeholder {
            color: rgba(255,255,255,0.7);
        }

        .client-info {
            padding: 20px 0;
            margin-bottom: 20px;
            font-size: 0.9rem;
            border-bottom: 2px solid var(--primary);
        }

        .template-3 .client-info,
        .template-6 .client-info,
        .template-8 .client-info,
        .template-10 .client-info {
            border-bottom: 2px solid rgba(255,255,255,0.5);
        }

        .template-7 .client-info {
            border-bottom: 2px solid var(--primary);
        }

        .client-info-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
            padding-bottom: 8px;
        }

        .template-3 .client-info-header,
        .template-6 .client-info-header,
        .template-8 .client-info-header,
        .template-10 .client-info-header {
            border-bottom: none;
        }

        .client-info-title {
            font-weight: 700;
            color: var(--primary);
            font-size: 1.2rem;
            letter-spacing: 1px;
        }

        .template-3 .client-info-title,
        .template-6 .client-info-title,
        .template-8 .client-info-title,
        .template-10 .client-info-title {
            color: white;
        }

        .client-company-name {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 5px;
        }

        .template-3 .client-company-name,
        .template-6 .client-company-name,
        .template-8 .client-company-name,
        .template-10 .client-company-name {
            color: white;
        }

        .client-contact-info {
            color: var(--gray);
            font-size: 0.9rem;
        }

        .template-3 .client-contact-info,
        .template-6 .client-contact-info,
        .template-8 .client-contact-info,
        .template-10 .client-contact-info {
            color: rgba(255,255,255,0.8);
        }

        .client-placeholder {
            color: var(--gray);
            font-style: italic;
        }

        .template-3 .client-placeholder,
        .template-6 .client-placeholder,
        .template-8 .client-placeholder,
        .template-10 .client-placeholder {
            color: rgba(255,255,255,0.7);
        }

        .product-image {
            width: 100%;
            height: 100px;
            object-fit: cover;
            border-radius: 6px;
            margin-bottom: 10px;
        }

        .product-image-small {
            width: 60px;
            /*height: 60px;*/
            object-fit: cover;
            border-radius: 6px;
            margin-right: 15px;
        }

        .image-placeholder {
            width: 100%;
            height: 100px;
            background-color: var(--light-gray);
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--gray);
            margin-bottom: 10px;
            font-size: 0.85rem;
        }

        .template-3 .image-placeholder,
        .template-6 .image-placeholder,
        .template-8 .image-placeholder,
        .template-10 .image-placeholder {
            background-color: rgba(255,255,255,0.1);
            color: rgba(255,255,255,0.7);
        }

        .product-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 8px;
            color: var(--dark);
        }

        .template-3 .product-title,
        .template-6 .product-title,
        .template-8 .product-title,
        .template-10 .product-title {
            color: white;
        }

        .title-placeholder {
            height: 1.1rem;
            background-color: var(--light-gray);
            border-radius: 4px;
            margin-bottom: 8px;
        }

        .template-3 .title-placeholder,
        .template-6 .title-placeholder,
        .template-8 .title-placeholder,
        .template-10 .title-placeholder {
            background-color: rgba(255,255,255,0.2);
        }

        .product-description {
            color: var(--gray);
            margin-bottom: 15px;
            font-size: 0.9rem;
        }

        .template-3 .product-description,
        .template-6 .product-description,
        .template-8 .product-description,
        .template-10 .product-description {
            color: rgba(255,255,255,0.8);
        }

        .description-placeholder {
            height: 0.9rem;
            background-color: var(--light-gray);
            border-radius: 4px;
            margin-bottom: 5px;
        }

        .template-3 .description-placeholder,
        .template-6 .description-placeholder,
        .template-8 .description-placeholder,
        .template-10 .description-placeholder {
            background-color: rgba(255,255,255,0.2);
        }

        .description-placeholder.short {
            width: 70%;
        }

        .price-table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: 20px;
            font-size: 0.9rem;
        }

        .price-table th, .price-table td {
            padding: 12px 10px;
            text-align: left;
            border-bottom: 1px solid var(--light-gray);
        }

        .template-3 .price-table th, 
        .template-3 .price-table td,
        .template-6 .price-table th, 
        .template-6 .price-table td,
        .template-8 .price-table th, 
        .template-8 .price-table td,
        .template-10 .price-table th, 
        .template-10 .price-table td {
            border-bottom: 1px solid rgba(255,255,255,0.2);
        }

        .price-table th {
            background-color: #f8f9fa;
            font-weight: 600;
            color: var(--dark);
        }

        .template-3 .price-table th,
        .template-6 .price-table th,
        .template-8 .price-table th,
        .template-10 .price-table th {
            background-color: rgba(255,255,255,0.1);
            color: white;
        }

        .total-row {
            font-weight: bold;
            background-color: rgba(108, 99, 255, 0.05);
        }

        .template-3 .total-row,
        .template-6 .total-row,
        .template-8 .total-row,
        .template-10 .total-row {
            background-color: rgba(255,255,255,0.1);
        }

        .company-description {
            background-color: #f8f9fa;
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 20px;
            font-size: 0.9rem;
        }

        .template-3 .company-description,
        .template-6 .company-description,
        .template-8 .company-description,
        .template-10 .company-description {
            background-color: rgba(255,255,255,0.1);
        }

        .company-placeholder {
            height: 0.9rem;
            background-color: var(--light-gray);
            border-radius: 4px;
            margin-bottom: 8px;
        }

        .template-3 .company-placeholder,
        .template-6 .company-placeholder,
        .template-8 .company-placeholder,
        .template-10 .company-placeholder {
            background-color: rgba(255,255,255,0.2);
        }

        .company-placeholder.short {
            width: 50%;
        }

        .form-label {
            font-weight: 600;
            margin-bottom: 6px;
            color: var(--dark);
            font-size: 0.9rem;
        }

        .form-control, .form-select {
            border-radius: 8px;
            padding: 10px 12px;
            border: 1px solid var(--light-gray);
            transition: all 0.3s;
            font-size: 0.9rem;
            height: auto;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        }

        .form-control:focus, .form-select:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
        }

        .btn-primary {
            background-color: var(--primary);
            border-color: var(--primary);
            border-radius: 8px;
            padding: 10px 20px;
            font-weight: 600;
            transition: all 0.3s;
            font-size: 0.9rem;
        }

        .btn-primary:hover {
            background-color: var(--primary-dark);
            border-color: var(--primary-dark);
            transform: translateY(-1px);
            box-shadow: 0 3px 10px rgba(108, 99, 255, 0.3);
        }

        .btn-outline-primary {
            border-color: var(--primary);
            color: var(--primary);
            border-radius: 8px;
            padding: 10px 20px;
            font-weight: 600;
            transition: all 0.3s;
            font-size: 0.9rem;
        }

        .btn-outline-primary:hover {
            background-color: var(--primary);
            border-color: var(--primary);
            transform: translateY(-1px);
        }

        .section-title {
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 15px;
            padding-bottom: 8px;
            border-bottom: 1px solid var(--light-gray);
            color: var(--dark);
        }

        .file-upload {
            border: 2px dashed var(--light-gray);
            border-radius: 8px;
            padding: 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            background-color: white;
            height: auto;
            min-height: 100px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .file-upload:hover {
            border-color: var(--primary);
            background-color: rgba(108, 99, 255, 0.03);
        }

        .file-upload i {
            font-size: 1.5rem;
            color: var(--gray);
            margin-bottom: 8px;
        }

        .file-upload p {
            margin-bottom: 5px;
            font-size: 0.9rem;
        }

        .file-upload small {
            font-size: 0.8rem;
        }

        .features-section {
            padding: 60px 0;
            background-color: white;
        }

        .feature-card {
            text-align: center;
            padding: 30px 20px;
            border-radius: 12px;
            transition: transform 0.3s, box-shadow 0.3s;
            margin-bottom: 20px;
            border: 1px solid var(--light-gray);
            position: relative;
        }

        .feature-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
            border-color: var(--primary-light);
        }

        .feature-icon {
            font-size: 2.5rem;
            color: var(--primary);
            margin-bottom: 20px;
        }

        footer {
            background-color: var(--dark);
            color: white;
            padding: 50px 0 25px;
        }

        .product-item {
            background: white;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 15px;
            border: 1px solid var(--light-gray);
            transition: all 0.3s;
            position: relative;
        }

        .product-item:hover {
            border-color: var(--primary-light);
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
        }

        .add-product-btn {
            width: 100%;
            padding: 12px;
            border: 2px dashed var(--light-gray);
            border-radius: 8px;
            background: transparent;
            color: var(--gray);
            transition: all 0.3s;
            margin-bottom: 15px;
            font-size: 0.9rem;
        }

        .add-product-btn:hover {
            border-color: var(--primary);
            color: var(--primary);
            background-color: rgba(108, 99, 255, 0.05);
        }

        .optional-section {
            margin-top: 20px;
        }

        .optional-toggle {
            display: flex;
            align-items: center;
            cursor: pointer;
            margin-bottom: 10px;
            font-size: 0.9rem;
        }

        .optional-toggle i {
            margin-right: 8px;
            color: var(--primary);
            transition: transform 0.3s;
            font-size: 0.8rem;
        }

        .optional-content {
            display: none;
            padding: 15px;
            background: white;
            border-radius: 8px;
            border: 1px solid var(--light-gray);
            margin-bottom: 15px;
        }

        .optional-toggle.active i {
            transform: rotate(90deg);
        }

        .optional-toggle.active + .optional-content {
            display: block;
        }

        .template-2 .template-header {
            background: white;
            padding: 20px;
            border-radius: 12px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
        }

        .template-2 .company-description {
            background: white;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
        }

        .empty-state {
            text-align: center;
            padding: 30px 15px;
            color: var(--gray);
        }

        .template-3 .empty-state,
        .template-6 .empty-state,
        .template-8 .empty-state,
        .template-10 .empty-state {
            color: rgba(255,255,255,0.7);
        }

        .empty-state i {
            font-size: 2.5rem;
            margin-bottom: 15px;
            color: var(--light-gray);
        }

        .template-3 .empty-state i,
        .template-6 .empty-state i,
        .template-8 .empty-state i,
        .template-10 .empty-state i {
            color: rgba(255,255,255,0.5);
        }

        .discount-badge {
            background-color: var(--secondary);
            color: white;
            padding: 3px 6px;
            border-radius: 4px;
            font-size: 0.75rem;
            margin-left: 6px;
        }

        .toast-container {
            position: fixed;
            top: 15px;
            right: 15px;
            z-index: 1055;
        }

        .custom-toast {
            border-radius: 8px;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }

        .pricing-options {
            display: flex;
            gap: 8px;
            margin-bottom: 12px;
        }

        .pricing-option {
            flex: 1;
            text-align: center;
            padding: 8px;
            border: 1px solid var(--light-gray);
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 0.85rem;
        }

        .pricing-option.active {
            border-color: var(--primary);
            background-color: rgba(108, 99, 255, 0.05);
        }

        .product-form {
            background: white;
            border-radius: 8px;
            padding: 15px;
            margin-bottom: 15px;
            border: 1px solid var(--light-gray);
        }

        .product-form .form-group {
            margin-bottom: 15px;
        }

        .text-editor {
            border: 1px solid var(--light-gray);
            border-radius: 8px;
            overflow: hidden;
        }

        .text-editor-toolbar {
            background-color: #f8f9fa;
            padding: 8px;
            border-bottom: 1px solid var(--light-gray);
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .text-editor-toolbar button {
            background: none;
            border: none;
            padding: 4px 8px;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 0.8rem;
        }

        .text-editor-toolbar button:hover {
            background-color: rgba(108, 99, 255, 0.1);
        }

        .text-editor-content {
            min-height: 100px;
            padding: 12px;
            font-size: 0.9rem;
        }

        .color-picker {
            display: flex;
            gap: 8px;
            margin-top: 12px;
            flex-wrap: wrap;
            overflow-x: auto;
            padding-bottom: 10px;
        }

        .color-option {
            width: 25px;
            height: 25px;
            border-radius: 50%;
            cursor: pointer;
            border: 2px solid transparent;
            flex-shrink: 0;
        }

        .color-option.active {
            border-color: var(--dark);
        }

        .download-btn-container {
            position: absolute;
            top: 20px;
            right: 30px;
            z-index: 20;
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .download-btn-container .btn-group {
            margin-left: 10px;
        }

        .download-btn-container .dropdown-toggle {
            padding: 10px 20px;
            border-radius: 8px;
        }

        .download-btn-container .dropdown-toggle-width{
            padding: 10px 20px;
            border-radius: 8px;
            width: 290px;
        }

        .download-btn-container .dropdown-menu {
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            border: 1px solid var(--light-gray);
        }

        .download-btn-container .btn-group .dropdown-toggle.processing::after {
            display: none !important;
        }

        /* Butonun border-radius'unu koru */
        .download-btn-container .btn-group .dropdown-toggle.processing {
            border-radius: 8px !important;
            border-top-right-radius: 8px !important;
            border-bottom-right-radius: 8px !important;
        }

        /* Orijinal dropdown buton stillerini koru */
        .download-btn-container .btn-group .dropdown-toggle {
            border-radius: 8px;
            border-top-right-radius: 8px;
            border-bottom-right-radius: 8px;
        }

        .download-btn-container .dropdown-toggle-width {
            padding: 10px 20px;
            border-radius: 8px;
            width: 290px;
        }

        .download-btn-container .dropdown-item {
            padding: 8px 15px;
            font-size: 0.9rem;
            transition: all 0.3s;
        }

        .download-btn-container .dropdown-item:hover {
            background-color: rgba(108, 99, 255, 0.1);
            color: var(--primary);
        }

        /* Responsive düzenlemeler */
        @media (max-width: 768px) {
            .download-btn-container {
                position: static;
                justify-content: center;
                margin-bottom: 20px;
                flex-direction: column;
                gap: 10px;
            }
            
            .download-btn-container .btn-group {
                margin-left: 0;
                width: 100%;
            }
            
            .download-btn-container .dropdown-toggle {
                width: 100%;
            }
        }

        .creative-customization {
            margin-top: 15px;
            padding: 15px;
            background: white;
            border-radius: 8px;
            border: 1px solid var(--light-gray);
        }

        .form-row-compact {
            margin-bottom: 15px;
        }

        .form-row-compact .col {
            padding: 0 5px;
        }

        .form-row-compact .col:first-child {
            padding-left: 0;
        }

        .form-row-compact .col:last-child {
            padding-right: 0;
        }

        .product-actions {
            position: absolute;
            top: 10px;
            right: 10px;
            display: flex;
            gap: 5px;
        }

        .product-actions button {
            background: white;
            border: 1px solid var(--light-gray);
            border-radius: 4px;
            width: 28px;
            height: 28px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s;
        }

        .product-actions button:hover {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }

        .image-preview {
            position: relative;
            display: inline-block;
            margin-bottom: 10px;
        }

        .image-preview img {
            max-width: 100%;
            max-height: 100px;
            border-radius: 6px;
            object-fit: cover;
        }

        .image-preview .remove-image {
            position: absolute;
            top: 5px;
            right: 5px;
            background: rgba(0,0,0,0.7);
            color: white;
            border: none;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }

        .client-form-row {
            margin-bottom: 12px;
        }

        .coming-soon-badge {
            position: absolute;
            top: -5px;
            right: -5px;
            background-color: var(--secondary);
            color: white;
            font-size: 0.6rem;
            padding: 2px 5px;
            border-radius: 10px;
        }

        .general-settings {
            margin-top: 15px;
            padding: 15px;
            background: white;
            border-radius: 8px;
            border: 1px solid var(--light-gray);
        }

        .font-selector {
            display: flex;
            gap: 10px;
            margin-top: 10px;
            flex-wrap: nowrap;
            overflow-x: auto;
            padding-bottom: 10px;
        }

        .font-option {
            flex: 0 0 auto;
            text-align: center;
            padding: 8px;
            border: 1px solid var(--light-gray);
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s;
            min-width: 100px;
        }

        .font-option.active {
            border-color: var(--primary);
            background-color: rgba(108, 99, 255, 0.05);
        }

        .font-sans {
            font-family: 'Inter', sans-serif;
        }

        .font-serif {
            font-family: 'Merriweather', serif;
        }

        .font-mono {
            font-family: 'Source Code Pro', monospace;
        }

        .font-poppins {
            font-family: 'Poppins', sans-serif;
        }

        .font-roboto-slab {
            font-family: 'Roboto Slab', serif;
        }

        .font-playfair {
            font-family: 'Playfair Display', serif;
        }

        .font-montserrat {
            font-family: 'Montserrat', sans-serif;
        }

        .font-open-sans {
            font-family: 'Open Sans', sans-serif;
        }

        .font-raleway {
            font-family: 'Raleway', sans-serif;
        }

        .font-lato {
            font-family: 'Lato', sans-serif;
        }

        .font-oswald {
            font-family: 'Oswald', sans-serif;
        }

        .font-roboto-condensed {
            font-family: 'Roboto Condensed', sans-serif;
        }

        .notes-editor {
            margin-top: 15px;
        }

        .products-list-container {
            max-height: 400px;
            overflow-y: auto;
            border: 1px solid var(--light-gray);
            border-radius: 8px;
            padding: 10px;
            margin-bottom: 15px;
            background: white;
        }

        /* Template-specific color overrides */
        .template-color-override {
            /* These will be set dynamically via JavaScript */
        }

        .form-section {
            height: 1500px;
            overflow: scroll;
        }
        
        .preview-section {
            overflow-y: visible !important;
            height: 1500px;
            overflow: scroll;
        }
        
        .template-content {
            overflow-y: visible !important;
            min-height: 297mm;
        }
        
        .font-selector::-webkit-scrollbar {
            height: 6px;
        }

        .font-selector::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }

        .font-selector::-webkit-scrollbar-thumb {
            background: var(--primary-light);
            border-radius: 10px;
        }

        .color-picker::-webkit-scrollbar {
            height: 6px;
        }

        .color-picker::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }

        .color-picker::-webkit-scrollbar-thumb {
            background: var(--primary-light);
            border-radius: 10px;
        }

        /* Güncellemeler için ek stiller */
        .basic-editor {
            border: 1px solid var(--light-gray);
            border-radius: 8px;
            overflow: hidden;
        }

        .basic-editor-toolbar {
            background-color: #f8f9fa;
            padding: 8px;
            border-bottom: 1px solid var(--light-gray);
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .basic-editor-toolbar button {
            background: none;
            border: none;
            padding: 4px 8px;
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 0.8rem;
        }

        .basic-editor-toolbar button:hover {
            background-color: rgba(108, 99, 255, 0.1);
        }

        .basic-editor-content {
            min-height: 80px;
            padding: 12px;
            font-size: 0.9rem;
        }

        .modern-input {
            border-radius: 8px;
            padding: 10px 12px;
            border: 1px solid var(--light-gray);
            transition: all 0.3s;
            font-size: 0.9rem;
            height: auto;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
            background-color: white;
        }

        .modern-input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
        }

        .modern-textarea {
            border-radius: 8px;
            padding: 10px 12px;
            border: 1px solid var(--light-gray);
            transition: all 0.3s;
            font-size: 0.9rem;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
            background-color: white;
            resize: vertical;
        }

        .modern-textarea:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 2px rgba(108, 99, 255, 0.2);
        }

        .feature-coming-soon {
            position: absolute;
            top: -5px;
            right: -5px;
            background-color: var(--secondary);
            color: white;
            font-size: 0.6rem;
            padding: 2px 5px;
            border-radius: 10px;
        }

        .product-with-image {
            display: flex;
            align-items: flex-start;
        }

        .product-with-image .product-image-small {
            flex-shrink: 0;
        }

        .product-with-image .product-details {
            flex: 1;
        }

        @media (max-width: 992px) {
            .form-section {
                border-right: none;
                border-bottom: 1px solid var(--light-gray);
                max-height: none;
            }
            
            .preview-section {
                position: static;
                height: auto;
            }
            
            .scroll-btn {
                display: none;
            }
            
            .download-btn-container {
                position: static;
                margin-bottom: 20px;
                justify-content: center;
            }
        }

        /* Dil ve Para Birimi Seçimi Stilleri */
        .language-selector-container,
        .currency-selector-container {
            position: relative;
            margin-top: 8px;
        }

        .language-selector,
        .currency-selector {
            display: flex;
            gap: 10px;
            overflow-x: auto;
            overflow-y: hidden;
            padding: 5px 0;
            scroll-behavior: smooth;
            height: 50px;
            align-items: center;
            position: relative;
            z-index: 1;
        }

        .language-selector::-webkit-scrollbar,
        .currency-selector::-webkit-scrollbar {
            height: 6px;
        }

        .language-selector::-webkit-scrollbar-track,
        .currency-selector::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }

        .language-selector::-webkit-scrollbar-thumb,
        .currency-selector::-webkit-scrollbar-thumb {
            background: var(--primary-light);
            border-radius: 10px;
        }

        .language-option,
        .currency-option {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 30px;
            height: 30px;
            border: 2px solid var(--light-gray);
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s;
            background: white;
            position: relative;
            flex-shrink: 0;
            z-index: 2;
        }

        .language-option:hover,
        .currency-option:hover {
            border-color: var(--primary);
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            z-index: 1000; /* Hover durumunda daha yüksek z-index */
        }

        .language-option.active,
        .currency-option.active {
            border-color: var(--primary);
            background-color: rgba(108, 99, 255, 0.1);
            box-shadow: 0 4px 12px rgba(108, 99, 255, 0.2);
        }

        .language-flag,
        .currency-symbol {
            font-size: 0.8rem;
        }

        .language-option::after,
        .currency-option::after {
            content: attr(data-fullname);
            position: absolute;
            top: -40px; /* Üstte göster */
            left: 50%;
            transform: translateX(-50%);
            font-size: 0.7rem;
            font-weight: 500;
            white-space: nowrap;
            opacity: 0;
            transition: all 0.3s ease;
            background: var(--dark);
            color: white;
            padding: 6px 10px;
            border-radius: 6px;
            pointer-events: none;
            z-index: 1001;
            text-align: center;
            min-width: max-content;
            box-shadow: 0 3px 10px rgba(0,0,0,0.2);
        }

        /* Kaydırma butonları */
        .language-selector-container .scroll-btn,
        .currency-selector-container .scroll-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            background: white;
            border: 1px solid var(--light-gray);
            border-radius: 50%;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            opacity: 0.7;
            transition: all 0.3s;
            font-size: 0.7rem;
        }

        .language-selector-container .scroll-btn:hover,
        .currency-selector-container .scroll-btn:hover {
            opacity: 1;
            background: var(--primary);
            color: white;
        }

        .language-selector-container .scroll-btn.left,
        .currency-selector-container .scroll-btn.left {
            left: -30px;
        }

        .language-selector-container .scroll-btn.right,
        .currency-selector-container .scroll-btn.right {
            right: -30px;
        }

        /* Container'lar için z-index düzenlemesi */
        .language-selector-container,
        .currency-selector-container {
            z-index: 100;
        }

        @media (max-width: 768px) {
            .language-selector-container .scroll-btn.left,
            .currency-selector-container .scroll-btn.left {
                left: -25px;
            }
            
            .language-selector-container .scroll-btn.right,
            .currency-selector-container .scroll-btn.right {
                right: -25px;
            }
            
            .language-option::after,
            .currency-option::after {
                font-size: 0.65rem;
                padding: 4px 8px;
                top: -35px;
            }
        }

        /* A4 Preview Modal Styles */
        .modal-a4 .modal-dialog.modal-a4-custom {
            max-width: 240mm; /* A4 genişliğinden biraz daha büyük */
            width: auto;
            margin: 20px auto;
            max-height: 90vh;
        }

        .modal-a4 .modal-content {
            border-radius: 8px;
            overflow: hidden;
            max-height: 90vh;
            display: flex;
            flex-direction: column;
        }

        .modal-a4 .modal-header,
        .modal-a4 .modal-footer {
            flex-shrink: 0;
        }

        .modal-a4 .modal-body {
            padding: 0;
            background-color: #f5f5f5;
            overflow: hidden;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .a4-preview-scroll {
            flex: 1;
            overflow-y: auto;
            display: flex;
            justify-content: center;
            min-height: 0;
        }

        .a4-preview {
            width: 210mm;
            min-height: 297mm;
            background: white;
            box-shadow: 0 0 20px rgba(0,0,0,0.3);
            /*padding: 15mm;*/
            margin: 0;
        }

        /* Scrollbar styling for modal */
        .a4-preview-scroll::-webkit-scrollbar {
            width: 12px;
        }

        .a4-preview-scroll::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 4px;
            margin: 10px 0;
        }

        .a4-preview-scroll::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 6px;
            border: 2px solid #f1f1f1;
        }

        .a4-preview-scroll::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }

        /* Firefox scrollbar */
        .a4-preview-scroll {
            scrollbar-width: thin;
            scrollbar-color: #c1c1c1 #f1f1f1;
        }

        /* Print styles for A4 preview */
        @media print {
            body * {
                visibility: hidden;
            }
            .a4-preview, .a4-preview * {
                visibility: visible;
            }
            .a4-preview {
                position: absolute;
                left: 0;
                top: 0;
                width: 210mm;
                height: 297mm;
                box-shadow: none;
                margin: 0;
                padding: 15mm;
            }
        }

        /* Responsive adjustments */
        @media (max-width: 1200px) {
            .modal-a4 .modal-dialog.modal-a4-custom {
                max-width: 95vw;
                margin: 10px auto;
            }
            
            .a4-preview {
                width: 100%;
                min-width: 0;
                transform: scale(0.9);
                transform-origin: top center;
            }
            
            .a4-preview-scroll {
                padding: 10px;
            }
        }

        @media (max-width: 768px) {
            .modal-a4 .modal-dialog.modal-a4-custom {
                max-width: 100vw;
                margin: 0;
            }
            
            .a4-preview {
                transform: scale(0.8);
            }
            
            .a4-preview-scroll {
                padding: 5px;
            }
        }

        .template-5.template-color-override {
            --primary: #6C63FF;
            --primary-light: #0A2540;
            --secondary: #FF6584;
        }

        /* Renk seçeneklerine göre dinamik güncelleme için */
        .template-5.template-color-override[style*="--primary"] {
            /* Dinamik renkler buradan gelecek */
        }


        /* Detay sayfası için ek stiller */
.product-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 8px;
}

.pricing-summary {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.summary-row.total {
    font-weight: bold;
    font-size: 1.1rem;
    border-bottom: none;
    border-top: 2px solid var(--primary);
    padding-top: 8px;
    margin-top: 8px;
}

.subtotal-row {
    background-color: rgba(108, 99, 255, 0.05);
}

/* Template 3,6,8,10 için beyaz yazı rengi */
.template-3 .product-meta,
.template-6 .product-meta,
.template-8 .product-meta,
.template-10 .product-meta {
    color: rgba(255,255,255,0.8);
}

.template-3 .pricing-summary,
.template-6 .pricing-summary,
.template-8 .pricing-summary,
.template-10 .pricing-summary {
    background: rgba(255,255,255,0.1);
    color: white;
}

.template-3 .summary-row,
.template-6 .summary-row,
.template-8 .summary-row,
.template-10 .summary-row {
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

/* Detay sayfası için template uyumluluk stilleri */
.template-2 .product-with-image,
.template-5 .product-with-image {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(108, 99, 255, 0.1);
}

.template-2 .product-image-small,
.template-5 .product-image-small {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.template-2 .product-details,
.template-5 .product-details {
    flex: 1;
}

/* Template 3,6,8,10 için beyaz yazı rengi uyumluluğu */
.template-3 .d-flex.justify-content-between.text-muted.small,
.template-6 .d-flex.justify-content-between.text-muted.small,
.template-8 .d-flex.justify-content-between.text-muted.small,
.template-10 .d-flex.justify-content-between.text-muted.small {
    color: rgba(255,255,255,0.8) !important;
}

/* Fiyat tablosu uyumluluğu */
.template-2 .price-table,
.template-5 .price-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 25px 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
}

.template-2 .price-table th,
.template-5 .price-table th {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    font-weight: 600;
    padding: 15px 12px;
    text-align: left;
    border: none;
}

.template-2 .price-table td,
.template-5 .price-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(108, 99, 255, 0.1);
    background: white;
}

/* Özet görünüm uyumluluğu */
.template-2 .p-3.mt-3,
.template-5 .p-3.mt-3 {
    background: #f8f9fa !important;
    border-radius: 8px !important;
}

.template-3 .p-3.mt-3,
.template-6 .p-3.mt-3,
.template-8 .p-3.mt-3,
.template-10 .p-3.mt-3 {
    background: rgba(255,255,255,0.1) !important;
    color: white !important;
}

/* Ürün listesinde indirim yoksa indirim badge'ini gizle */
.product-item .discount-badge:empty {
    display: none;
}

/* Tablolarda boş hücreler için stil */
.price-table td:empty,
.price-table td:contains("-") {
    color: var(--gray);
    opacity: 0.7;
}

/* Template 2 ve 5 için özel stiller */
.template-2 .discount-badge:empty,
.template-5 .discount-badge:empty {
    display: none;
}

/* Dinamik tablo stilleri */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.price-table th, .price-table td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.price-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
}

/* Template 3,6,8,10 için beyaz yazı rengi */
.template-3 .price-table th, 
.template-3 .price-table td,
.template-6 .price-table th, 
.template-6 .price-table td,
.template-8 .price-table th, 
.template-8 .price-table td,
.template-10 .price-table th, 
.template-10 .price-table td {
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.template-3 .price-table th,
.template-6 .price-table th,
.template-8 .price-table th,
.template-10 .price-table th {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.total-row {
    font-weight: bold;
    background-color: rgba(108, 99, 255, 0.05);
}

.template-3 .total-row,
.template-6 .total-row,
.template-8 .total-row,
.template-10 .total-row {
    background-color: rgba(255,255,255,0.1);
}

/* Template 2 ve 5 için özel tablo stilleri */
.template-2 .price-table,
.template-5 .price-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 25px 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
}

.template-2 .price-table th,
.template-5 .price-table th {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    font-weight: 600;
    padding: 15px 12px;
    text-align: left;
    border: none;
}

.template-2 .price-table td,
.template-5 .price-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(108, 99, 255, 0.1);
    background: white;
}

.template-2 .price-table tr:last-child td,
.template-5 .price-table tr:last-child td {
    border-bottom: none;
}

/* Ürün detay satırı için flex düzenlemesi */
.product-details .d-flex.justify-content-between.text-muted.small,
.mb-3.p-2.border-bottom .d-flex.justify-content-between.text-muted.small {
    gap: 10px;
    flex-wrap: wrap;
}

/* Boş span'leri gizle */
.product-details .d-flex.justify-content-between.text-muted.small span:empty,
.mb-3.p-2.border-bottom .d-flex.justify-content-between.text-muted.small span:empty {
    display: none;
}

/* Template 2 ve 5 için özel stiller */
.template-2 .product-details .d-flex.justify-content-between.text-muted.small,
.template-5 .product-details .d-flex.justify-content-between.text-muted.small {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.template-2 .product-details .d-flex.justify-content-between.text-muted.small span:empty,
.template-5 .product-details .d-flex.justify-content-between.text-muted.small span:empty {
    display: none;
}

/* Tablo sağa yaslama stilleri */
.price-table .text-end {
    text-align: right !important;
}

.price-table th.text-end,
.price-table td.text-end {
    text-align: right !important;
    padding-right: 15px;
}

/* Template 2 ve 5 için özel stiller */
.template-2 .price-table th.text-end,
.template-2 .price-table td.text-end,
.template-5 .price-table th.text-end,
.template-5 .price-table td.text-end {
    text-align: right !important;
    padding-right: 15px;
}

/* Para birimi değerleri için sağa yaslama */
.price-table td:last-child {
    text-align: right;
    font-weight: 500;
}

/* Template 2 ve 5 için para birimi değerleri */
.template-2 .price-table td:last-child,
.template-5 .price-table td:last-child {
    text-align: right;
    font-weight: 500;
}

/* Toplam satırı için daha kalın yazı tipi */
.price-table .total-row td:last-child {
    font-weight: 700;
    font-size: 1.05rem;
}

.template-2 .price-table .total-row td:last-child,
.template-5 .price-table .total-row td:last-child {
    font-weight: 700;
    font-size: 1.05rem;
}

/* Tablo hücre padding ayarları */
.price-table th,
.price-table td {
    padding: 12px 8px;
}

.price-table th:last-child,
.price-table td:last-child {
    padding-right: 15px;
    padding-left: 8px;
}

/* Template 2 ve 5 için padding ayarları */
.template-2 .price-table th,
.template-2 .price-table td,
.template-5 .price-table th,
.template-5 .price-table td {
    padding: 12px 8px;
}

.template-2 .price-table th:last-child,
.template-2 .price-table td:last-child,
.template-5 .price-table th:last-child,
.template-5 .price-table td:last-child {
    padding-right: 15px;
    padding-left: 8px;
}

/* Template 2 ve 5 için tablo stilleri */
.template-2 .price-table,
.template-5 .price-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 25px 0;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
}

.template-2 .price-table th,
.template-5 .price-table th {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    font-weight: 600;
    padding: 15px 12px;
    text-align: left;
    border: none;
}

.template-2 .price-table th.text-end,
.template-5 .price-table th.text-end {
    text-align: right;
}

.template-2 .price-table td,
.template-5 .price-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(108, 99, 255, 0.1);
    background: white;
}

.template-2 .price-table td.text-end,
.template-5 .price-table td.text-end {
    text-align: right;
    padding-right: 15px;
}

.template-2 .price-table tr:last-child td,
.template-5 .price-table tr:last-child td {
    border-bottom: none;
}

/* Template 2 - Modern Şık için özel stiller */
.template-2.template-color-override .price-table th {
    background: var(--primary) !important;
    background-image: none !important;
}

.template-2.template-color-override .client-info {
    border-left-color: var(--primary) !important;
}

.template-2.template-color-override h4::after {
    background: var(--primary) !important;
    background-image: none !important;
}

/* Template 5 - Elegant Creative için özel stiller */
.template-5.template-color-override .price-table th {
    background: var(--primary) !important;
    background-image: none !important;
}

.template-5.template-color-override .client-info {
    border-left-color: var(--primary) !important;
}

.template-5.template-color-override h4::after {
    background: var(--primary) !important;
    background-image: none !important;
}

/* Template 3 - Yaratıcı Zarif için dinamik arkaplan */
.template-3.template-color-override {
    background: linear-gradient(135deg, var(--primary)) !important;
}

/* Template 6 - Canlı Renkli için dinamik arkaplan */
.template-6.template-color-override {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark), var(--primary-light)) !important;
}

/* Template 8 - Premium Lüks için dinamik arkaplan */
.template-8.template-color-override {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
}

/* Template 10 - Gradyan Modern için dinamik arkaplan */
.template-10.template-color-override {
    background: linear-gradient(135deg, var(--primary-light), var(--primary)) !important;
}

/* Renk değişkenleri için CSS custom properties */
.template-color-override {
    --primary-light: #0A2540;
    --primary-dark: #0A2540;
}

/* JavaScript ile dinamik olarak güncellenecek inline stiller için */
.template-2 .price-table th,
.template-5 .price-table th {
    transition: background-color 0.3s ease;
}

.template-3,
.template-6,
.template-8,
.template-10 {
    transition: background 0.5s ease;
}

/* Logo yükleme alanı küçültme */
.file-upload {
    border: 2px dashed var(--light-gray);
    border-radius: 8px;
    padding: 12px 15px !important; /* Padding küçültüldü */
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background-color: white;
    height: auto;
    min-height: 80px !important; /* Min-height küçültüldü */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.file-upload i {
    font-size: 1.2rem !important; /* İkon küçültüldü */
    color: var(--gray);
    margin-bottom: 5px !important; /* Margin küçültüldü */
}

.file-upload p {
    margin-bottom: 3px !important; /* Margin küçültüldü */
    font-size: 0.85rem !important; /* Yazı boyutu küçültüldü */
}

.file-upload small {
    font-size: 0.75rem !important; /* Küçük yazı boyutu küçültüldü */
}

/* Ürün resim yükleme alanı küçültme */
.product-image-upload {
    min-height: 70px !important; /* Daha da küçük */
    padding: 10px 12px !important;
}

.product-image-upload i {
    font-size: 1.1rem !important;
}

/* Boş ürün listesi alanı küçültme */
.empty-state {
    text-align: center;
    padding: 20px 15px !important; /* Padding küçültüldü */
    color: var(--gray);
}

.empty-state i {
    font-size: 2rem !important; /* İkon küçültüldü */
    margin-bottom: 10px !important; /* Margin küçültüldü */
    color: var(--light-gray);
}

.empty-state p {
    margin-bottom: 8px !important; /* Margin küçültüldü */
    font-size: 0.9rem !important; /* Yazı boyutu küçültüldü */
}

.empty-state small {
    font-size: 0.8rem !important; /* Küçük yazı boyutu küçültüldü */
}

/* Template 3,6,8,10 için boş state stilleri */
.template-3 .empty-state,
.template-6 .empty-state,
.template-8 .empty-state,
.template-10 .empty-state {
    color: rgba(255,255,255,0.7);
}

.template-3 .empty-state i,
.template-6 .empty-state i,
.template-8 .empty-state i,
.template-10 .empty-state i {
    color: rgba(255,255,255,0.5);
}

/* Resim önizleme küçültme */
.image-preview img {
    max-width: 100%;
    max-height: 80px !important; /* Maksimum yükseklik küçültüldü */
    border-radius: 6px;
    object-fit: cover;
}

.product-image {
    width: 100%;
    height: 80px !important; /* Yükseklik küçültüldü */
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px !important; /* Margin küçültüldü */
}

/* Ürün listesi container yüksekliği */
.products-list-container {
    max-height: 350px !important; /* Maksimum yükseklik küçültüldü */
    overflow-y: auto;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
    padding: 8px !important; /* Padding küçültüldü */
    margin-bottom: 15px;
    background: white;
}

/* Form section genel padding ayarı */
.form-section {
    padding: 20px 25px !important; /* Padding biraz küçültüldü */
    background-color: #f9fafb;
    border-right: 1px solid var(--light-gray);
    height: 100%;
    overflow-y: auto;
}

/* Ürün formu padding küçültme */
.product-form {
    background: white;
    border-radius: 8px;
    padding: 12px 15px !important; /* Padding küçültüldü */
    margin-bottom: 15px;
    border: 1px solid var(--light-gray);
}

/* Basic editor yükseklik küçültme */
.basic-editor-content {
    min-height: 60px !important; /* Min-height küçültüldü */
    padding: 10px !important; /* Padding küçültüldü */
    font-size: 0.9rem;
}

.text-editor-content {
    min-height: 80px !important; /* Min-height küçültüldü */
    padding: 10px !important; /* Padding küçültüldü */
    font-size: 0.9rem;
}

/* Toolbar küçültme */
.basic-editor-toolbar,
.text-editor-toolbar {
    background-color: #f8f9fa;
    padding: 6px 8px !important; /* Padding küçültüldü */
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    gap: 6px !important; /* Gap küçültüldü */
    flex-wrap: wrap;
}

.basic-editor-toolbar button,
.text-editor-toolbar button {
    background: none;
    border: none;
    padding: 3px 6px !important; /* Padding küçültüldü */
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.75rem !important; /* Yazı boyutu küçültüldü */
}

/* Responsive daha da küçültme */
@media (max-width: 768px) {
    .file-upload {
        min-height: 70px !important;
        padding: 10px 12px !important;
    }
    
    .file-upload i {
        font-size: 1rem !important;
    }
    
    .file-upload p {
        font-size: 0.8rem !important;
    }
    
    .empty-state {
        padding: 15px 10px !important;
    }
    
    .empty-state i {
        font-size: 1.5rem !important;
    }
    
    .products-list-container {
        max-height: 300px !important;
        padding: 6px !important;
    }
}

/* Daha kompakt form elemanları */
.form-control, .form-select {
    border-radius: 6px;
    padding: 8px 10px !important; /* Padding küçültüldü */
    border: 1px solid var(--light-gray);
    transition: all 0.3s;
    font-size: 0.85rem !important; /* Yazı boyutu küçültüldü */
    height: auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Daha kompakt butonlar */
.btn {
    padding: 8px 16px !important; /* Padding küçültüldü */
    font-size: 0.85rem !important; /* Yazı boyutu küçültüldü */
    border-radius: 6px;
}

/* Label'ları daha kompakt yap */
.form-label {
    font-weight: 600;
    margin-bottom: 4px !important; /* Margin küçültüldü */
    color: var(--dark);
    font-size: 0.85rem !important; /* Yazı boyutu küçültüldü */
}

/* Logo placeholder gizleme */
.logo-placeholder {
    display: none !important;
}

/* Zorunlu alan validasyonu */
.form-control.required:invalid,
.basic-editor-content.required:empty {
    border-color: #dc3545 !important;
}

.required-field::after {
    content: " *";
    color: #dc3545;
}

/* Validasyon hata mesajları */
.validation-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Detay sayfası için logo placeholder gizleme */
.quote-detail-wrapper .logo-placeholder {
    display: none !important;
}

/* Detay sayfası için müşteri bilgisi placeholder gizleme */
.quote-detail-wrapper .client-placeholder {
    display: none !important;
}

/* Önizleme sayfasında logo placeholder gösterilsin */
.template-preview .logo-placeholder {
    display: flex !important;
}

/* Önizleme sayfasında müşteri bilgisi placeholder gösterilsin */
.template-preview .client-placeholder {
    display: block !important;
}

/* Template padding'leri - önizleme ile aynı */
.template-1 { padding: 25px; }
.template-2 { padding: 30px; }
.template-3 { padding: 25px; }
.template-4 { padding: 25px; }
.template-5 { padding: 30px; }
.template-6 { padding: 25px; }
.template-7 { padding: 25px; }
.template-8 { padding: 25px; }
.template-9 { padding: 25px; }
.template-10 { padding: 25px; }

/* Template 3, 6, 8, 10 için dinamik arkaplan stilleri */
.template-3.template-color-override {
    background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
}

.template-6.template-color-override {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark), var(--primary-light)) !important;
}

.template-8.template-color-override {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
}

.template-10.template-color-override {
    background: linear-gradient(135deg, var(--primary-light), var(--primary)) !important;
}

/* Template 2 ve 5 için özel stiller */
.template-2.template-color-override .price-table th {
    background: var(--primary) !important;
    background-image: none !important;
}

.template-5.template-color-override .price-table th {
    background: var(--primary) !important;
    background-image: none !important;
}

/* Renk değişkenleri için CSS custom properties */
.template-color-override {
    --primary-light: #0A2540;
    --primary-dark: #0A2540;
}