@font-face {
    font-family: 'AeAlarabiya';
    src: url('../fonts/AeAlarabiya.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bombay Black';
    src: url('../fonts/Bombay Black.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.ant-container {
    max-width: 1200px;
}

.ant-container h3 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
}

.ant-form {
    text-align: center;
    margin: 40px auto 60px;
    max-width: 600px;
}

#ant-name-input {
    width: 400px;
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 18px;
    margin-bottom: 25px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#ant-create-btn {
    padding: 15px 40px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: background 0.3s ease;
    margin: 0 auto;
    display: block;
}

#ant-create-btn:hover {
    background: #005a8b;
}

#ant-translate-btn, #ant-generate-btn {
    padding: 12px 20px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

#ant-translate-btn:hover, #ant-generate-btn:hover {
    background: #005a8b;
}

#ant-translation-result {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    border-left: 4px solid #007cba;
}

#ant-translation-result h4 {
    color: #333;
    margin-bottom: 10px;
}

#ant-arabic-name {
    font-size: 32px;
    font-weight: bold;
    color: #007cba;
    margin: 15px 0;
    direction: rtl;
    text-align: center;
    font-family: 'AeAlarabiya', 'Arial Unicode MS', 'Tahoma', Arial, sans-serif;
}

#ant-loading {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    color: #666;
}

#ant-loading p {
    font-style: italic;
    margin: 0;
}

#ant-result {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

#ant-result h4 {
    color: #333;
    margin-bottom: 15px;
}

#ant-result-image {
    max-width: 100%;
    height: auto;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ant-download {
    margin-top: 15px;
}

#ant-download-link {
    display: inline-block;
    padding: 12px 25px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

#ant-download-link:hover {
    background: #218838;
    text-decoration: none;
    color: white;
}

.overlay-image {
    position: absolute;
    top: 190px;
    left: 200px;
    width: 150px;
    height: 150px;
    transform: translateX(-50%) translateY(-50%);
    object-fit: contain;
    pointer-events: none;
}

.tshirt-base {
    width: 400px;
    border-radius: 8px;
    display: block;
}

/* Responsive design */
@media (max-width: 768px) {
    .ant-form {
        margin: 20px auto 40px;
        padding: 0 20px;
    }
    
    #ant-name-input {
        width: 100%;
        max-width: 280px;
        margin-bottom: 20px;
        font-size: 16px;
        padding: 12px 15px;
    }
    
    #ant-create-btn {
        width: 100%;
        max-width: 250px;
        padding: 12px 20px;
        font-size: 16px;
    }
    
    #ant-arabic-name {
        font-size: 24px;
    }
    
    .tshirt-previews {
        flex-direction: column;
        gap: 30px;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .tshirt-preview {
        width: 100%;
        padding: 0 !important;
        background: transparent !important; /* Use transparent instead of none for clarity */
        border-radius: 0 !important;
        box-shadow: none !important;
        text-align: left !important;
        transition: none !important;
    }
    
    .tshirt-container {
        position: relative;
        margin-left: auto;
        margin-right: auto;
    }
    
    
    
    /* Mobile styles for design variations */
    .design-variations {
        margin: 20px 10px;
        padding: 15px;
    }
    
    .variation-options {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .variation-option {
        width: 200px;
        padding: 8px 12px;
    }
    
    /* Mobile styles for line layout options */
    .line-layout-options {
        margin: 20px 10px;
        padding: 15px;
    }
    
    .layout-options {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .layout-option {
        width: 250px;
        padding: 10px 15px;
    }
    
    .layout-text {
        font-size: 13px;
    }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .tshirt-previews {
        gap: 40px;
    }
    
    .tshirt-preview {
        padding: 25px;
    }
    
    .tshirt-base {
        width: 350px;
        height: 350px;
    }
    
    .overlay-image {
        top: 184px;  /* 210px * (350px / 400px) = 184px */
        left: 175px; /* 200px * (350px / 400px) = 175px */
        width: 131px; /* 150px * (350px / 400px) = 131px */
        height: 131px; /* 150px * (350px / 400px) = 131px */
    }
}

/* Extra small screens - under 480px */
@media (max-width: 480px) {
    .tshirt-container {
        width: auto;
        height: auto;
    }
    
    .tshirt-base {
        max-width: 100%;
        height: auto;
        width: auto;
    }
    
    .overlay-image {
        /* Scale overlay proportionally with the t-shirt */
        width: calc(100vw * 0.25);  /* Roughly 25% of viewport width */
        height: calc(100vw * 0.25);
        top: calc(100vw * 0.40);    /* Proportional top position */
        left: 50%;
        transform: translateX(-50%) translateY(-50%);
    }
}

/* Loading animation */
#ant-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-top: 2px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

/* Template selector styles */
.template-selector {
    margin: 20px 0;
    text-align: center;
}

.template-selector label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: #333;
}

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

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

.template-option input[type="radio"] {
    margin-bottom: 10px;
    transform: scale(1.2);
    accent-color: #007cba;
}

.template-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 3px solid #ddd;
    background: #f8f9fa;
    min-width: 150px;
}

.template-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.template-text {
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
}

.template-option input[type="radio"]:checked + .template-preview-container {
    transform: scale(1.05);
    border-color: #007cba;
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.3);
    background: #ebf3fd;
}

.overlay-instructions {
    font-style: italic;
    color: #666;
    margin: 10px 0;
    padding: 10px;
    background: #f0f8ff;
    border-radius: 5px;
    border-left: 4px solid #007cba;
}

/* Responsive design for template selector */
@media (max-width: 768px) {
    .template-options {
        flex-direction: column;
        gap: 15px;
    }
    
    .template-preview-container {
        min-width: 200px;
    }
}

/* T-Shirt Preview Styles */
.tshirt-previews {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.tshirt-preview {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.tshirt-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.tshirt-preview h5 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.tshirt-container {
    position: relative;
    margin-bottom: 20px;
    text-align: center;
}

.download-btn {
    display: inline-block;
    padding: 12px 25px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.download-btn:hover {
    background: #218838;
    text-decoration: none;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Design Variation Styles */
.design-variations {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.design-variations h5 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.variation-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.variation-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 10px 15px;
    border-radius: 6px;
}

.variation-option:hover {
    background: #e9ecef;
}

.variation-option input[type="radio"] {
    margin-bottom: 8px;
    transform: scale(1.2);
    accent-color: #007cba;
}

.variation-text {
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.variation-option input[type="radio"]:checked + .variation-text {
    color: #007cba;
    font-weight: 600;
}

/* Line Layout Styles */
.line-layout-options {
    text-align: center;
    margin: 20px 0 30px;
    padding: 20px;
    background: #fff3e0;
    border-radius: 8px;
    border: 2px solid #ffcc80;
}

.line-layout-options h5 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.layout-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.layout-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 12px 20px;
    border-radius: 8px;
    background: #fff;
    border: 2px solid #ffcc80;
}

.layout-option:hover {
    background: #fff8f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 152, 0, 0.2);
}

.layout-option input[type="radio"] {
    margin-bottom: 8px;
    transform: scale(1.3);
    accent-color: #ff9800;
}

.layout-text {
    font-weight: 500;
    color: #bf360c;
    font-size: 14px;
    text-align: center;
}

.layout-option input[type="radio"]:checked {
    accent-color: #f57c00;
}

.layout-option input[type="radio"]:checked + .layout-text {
    color: #f57c00;
    font-weight: 600;
}

/* T-Shirt Grid Layout */
.tshirt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 20px 0;
}

.tshirt-item {
    text-align: center;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.filter-group select {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

/* Size Sections */
.size-section {

}

.size-section h4 {
    color: #007cba;
    margin-bottom: 20px;
    font-size: 20px;
    text-align: center;
}

.layout-section {
    margin: 30px 0;
}

.layout-section h5 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
    text-align: center;
    padding: 10px;
    background: #e9ecef;
    border-radius: 6px;
}

/* Mobile Grid Adjustments */
@media (max-width: 768px) {
    .tshirt-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .filter-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .filter-group select {
        width: 100%;
    }
}

/* Font Selector Styles */
.font-selector {
    text-align: center;
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.font-selector h5 {
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.font-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.font-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 15px;
    border-radius: 8px;
    background: white;
    border: 2px solid #ddd;
    min-width: 180px;
}

.font-option:hover {
    border-color: #007cba;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.1);
}

.font-option input[type="radio"] {
    margin-bottom: 12px;
    transform: scale(1.2);
    accent-color: #007cba;
}

.font-preview {
    font-size: 28px;
    color: #333;
    margin-bottom: 8px;
    direction: rtl;
    text-align: center;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.font-preview.ae-alabiya {
    font-family: 'AeAlarabiya', Arial, sans-serif;
}

.font-preview.bombay-black {
    font-family: 'Bombay Black', Arial, sans-serif;
}

.font-name {
    font-weight: 600;
    color: #666;
    font-size: 14px;
    text-align: center;
}

.font-option input[type="radio"]:checked + .font-preview-container {
    background: #f0f8ff;
    border-color: #007cba;
}

.font-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 6px;
    width: 100%;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .font-options {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .font-option {
        min-width: 250px;
        max-width: 300px;
    }
    
    .font-preview {
        font-size: 24px;
    }
} 