.ant-enhanced-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 25px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.ant-enhanced-container h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.ant-enhanced-form {
    text-align: center;
    margin-bottom: 25px;
}

#ant-enhanced-name-input {
    width: 70%;
    padding: 15px;
    border: 3px solid #e1e8ed;
    border-radius: 25px;
    font-size: 16px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    background: #fff;
}

#ant-enhanced-name-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

.color-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.color-options label {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 500;
    color: #34495e;
    gap: 8px;
}

.color-options input[type="color"] {
    width: 60px;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.2s ease;
}

.color-options input[type="color"]:hover {
    transform: scale(1.1);
}

#ant-enhanced-translate-btn, #ant-enhanced-generate-btn {
    padding: 15px 30px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    margin-top: 10px;
}

#ant-enhanced-translate-btn:hover, #ant-enhanced-generate-btn:hover {
    background: linear-gradient(45deg, #2980b9, #1abc9c);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

#ant-enhanced-translate-btn:disabled, #ant-enhanced-generate-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#ant-enhanced-translation-result {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin: 25px 0;
    text-align: center;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

#ant-enhanced-translation-result h4 {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 500;
}

#ant-enhanced-arabic-name {
    font-size: 36px;
    font-weight: bold;
    margin: 20px 0;
    direction: rtl;
    text-align: center;
    font-family: 'AeAlarabiya', 'Amiri', 'Noto Sans Arabic', Arial, sans-serif;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

#ant-enhanced-loading {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 15px;
    color: #d35400;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(252, 182, 159, 0.3);
}

#ant-enhanced-loading p {
    font-style: italic;
    margin: 0;
    font-size: 18px;
}

#ant-enhanced-result {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(168, 237, 234, 0.3);
}

#ant-enhanced-result h4 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 600;
}

#ant-enhanced-result-image {
    max-width: 100%;
    height: auto;
    border: 4px solid #fff;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

#ant-enhanced-result-image:hover {
    transform: scale(1.02);
}

.ant-enhanced-download {
    margin-top: 25px;
}

#ant-enhanced-download-link {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

#ant-enhanced-download-link:hover {
    background: linear-gradient(45deg, #27ae60, #16a085);
    text-decoration: none;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

/* Responsive design */
@media (max-width: 768px) {
    .ant-enhanced-container {
        margin: 10px;
        padding: 20px;
    }
    
    .ant-enhanced-container h3 {
        font-size: 24px;
    }
    
    #ant-enhanced-name-input {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .color-options {
        flex-direction: column;
        gap: 15px;
    }
    
    #ant-enhanced-translate-btn, #ant-enhanced-generate-btn {
        width: 100%;
        margin-top: 15px;
    }
    
    #ant-enhanced-arabic-name {
        font-size: 28px;
    }
}

/* Enhanced loading animation */
#ant-enhanced-loading::after {
    content: '';
    display: inline-block;
    width: 25px;
    height: 25px;
    border: 3px solid #e67e22;
    border-top: 3px solid #d35400;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 15px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fade in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ant-enhanced-container > div {
    animation: fadeInUp 0.6s ease-out;
}

/* Color picker styling */
input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
    border: none;
    border-radius: 8px;
}

input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 8px;
}

/* Button pulse effect */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

#ant-enhanced-translate-btn:focus, #ant-enhanced-generate-btn:focus {
    animation: pulse 2s infinite;
}

/* Enhanced shadows and depth */
.ant-enhanced-container {
    position: relative;
}

.ant-enhanced-container::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.1;
}

/* Template selector styles for enhanced version */
.ant-enhanced-container .template-selector {
    margin: 25px 0;
    text-align: center;
}

.ant-enhanced-container .template-selector > label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 16px;
}

.ant-enhanced-container .template-options {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.ant-enhanced-container .template-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ant-enhanced-container .template-option input[type="radio"] {
    margin-bottom: 10px;
    transform: scale(1.3);
    accent-color: #3498db;
}

.ant-enhanced-container .template-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 3px solid #e9ecef;
    min-width: 160px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.ant-enhanced-container .template-image {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.ant-enhanced-container .template-text {
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    font-size: 14px;
}

.ant-enhanced-container .template-option input[type="radio"]:checked + .template-preview-container {
    transform: scale(1.08);
    border-color: #3498db;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #ebf3fd 0%, #d6eafd 100%);
}

.ant-enhanced-container .template-option input[type="radio"]:checked .template-image {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

/* Enhanced responsive design for template selector */
@media (max-width: 768px) {
    .ant-enhanced-container .template-options {
        flex-direction: column;
        gap: 20px;
    }
    
    .ant-enhanced-container .template-preview-container {
        min-width: 200px;
        padding: 20px 30px;
    }
}

.overlay-instructions {
    font-style: italic;
    color: #666;
    margin: 15px 0;
    padding: 15px;
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%);
    border-radius: 8px;
    border-left: 4px solid #3498db;
    text-align: center;
    font-size: 14px;
}

/* Enhanced T-Shirt Preview Styles */
.ant-enhanced-container .tshirt-previews {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.ant-enhanced-container .tshirt-preview {
    text-align: center;
    padding: 35px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.ant-enhanced-container .tshirt-preview:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.2);
    border-color: #3498db;
}

.ant-enhanced-container .tshirt-preview h5 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.ant-enhanced-container .tshirt-container {
    position: relative;
    margin-bottom: 25px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.ant-enhanced-container .tshirt-base {
    width: 420px;
    height: 420px;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
}

.ant-enhanced-container .overlay-image {
    position: absolute;
    top: 210px;
    left: 200px;
    width: 150px;
    height: 150px;
    transform: translateX(-50%) translateY(-50%);
    object-fit: contain;
    pointer-events: none;
    transition: all 0.3s ease;
}

.ant-enhanced-container .download-btn {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ant-enhanced-container .download-btn:hover {
    background: linear-gradient(45deg, #27ae60, #16a085);
    text-decoration: none;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.4);
} 