

body {
    font-family: 'Tajawal', sans-serif;
    background-color: #f8f9fa;
    background-image: linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}

body[dir="rtl"] {
    text-align: right;
}

body[dir="rtl"] .navbar-nav {
    padding-right: 0;
}

body[dir="rtl"] .me-auto {
    margin-right: 0 !important;
    margin-left: auto !important;
}

body[dir="rtl"] .ms-2 {
    margin-left: 0 !important;
    margin-right: 0.5rem !important;
}

body[dir="rtl"] .dropdown-menu {
    text-align: right;
}


.main-container {
    max-width: 1200px;
    margin: 2rem auto;
}

.upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #a084e8;
    background-color: rgba(160, 132, 232, 0.05);
}

.upload-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(160, 132, 232, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.upload-icon i {
    color: #a084e8;
    font-size: 24px;
}

.preview-container {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 20%;
    position: relative;
    margin: 0 auto;
    width: 300px;
    background-size: 20px 20px;
    background-image: 
        linear-gradient(45deg, #e5deff 25%, transparent 25%, transparent 75%, #e5deff 75%),
        linear-gradient(45deg, #e5deff 25%, transparent 25%, transparent 75%, #e5deff 75%);
    background-position: 0 0, 10px 10px;
}

.preview-image {
    width: 100%;
    height: 100%;
    /* max-height: 100px; */
    object-fit: contain;
    position: relative;
    z-index: 5;
    transition: transform 0.3s ease;
}

.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    margin: 0 5px;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.color-swatch:hover {
    transform: scale(1.1);
}

.color-swatch.active {
    border-color: #a084e8;
    transform: scale(1.1);
}

.corner-radius-slider .form-range::-webkit-slider-thumb {
    background: #a084e8;
}

.corner-radius-slider .form-range::-moz-range-thumb {
    background: #a084e8;
}

.download-btn {
    background-color: #a084e8;
    border: none;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background-color: #8a6fe6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.tab-content {
    padding-top: 1.5rem;
}

.nav-tabs .nav-link {
    color: #6c757d;
    border: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: #a084e8;
}

.nav-tabs .nav-link.active {
    color: #a084e8;
    border-bottom: 2px solid #a084e8;
    background: none;
    font-weight: 500;
}

.preview-variations {
    margin-top: 2rem;
}

.variation-item {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 10px;
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.variation-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.variation-item.active {
    border: 2px solid #a084e8;
    box-shadow: 0 4px 12px rgba(160, 132, 232, 0.3);
}

.variation-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
}

footer {
    margin-top: 3rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    color: #6c757d;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: #a084e8;
    transform: translateY(-2px);
}

.tab-pane {
    min-height: 300px;
}

.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    background-color: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.modal-title {
    color: #5e35b1;
    font-weight: 600;
}

.modal-body h4 {
    color: #5e35b1;
    margin-bottom: 1rem;
}

.modal-body h5 {
    color: #7e57c2;
    font-size: 1.1rem;
    margin-top: 1.5rem;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    background-color: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

.variation-preview {
    width: 100%;
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.variation-preview img {
    position: absolute;
    width: 80%;
    height: 80%;
    object-fit: contain;
    pointer-events: none;
    transition: all 0.3s ease;
}

.variation-label {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.7rem;
    color: white;
    background-color: rgba(0,0,0,0.5);
    padding: 2px 0;
    border-radius: 0 0 10px 10px;
}

.btn-outline-secondary {
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    color: #a084e8;
    border-color: #a084e8;
}

.form-range::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
}

.form-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
}

/* Add to your style section */
#removeBgBtn {
transition: all 0.3s ease;
}

#removeBgBtn:hover {
background-color: #a084e8;
color: white;
}

#removeBgBtn:disabled {
opacity: 0.7;
cursor: not-allowed;
}

