﻿ 

.btn-check-custom {
    display: inline-block;
    cursor: pointer;
}

    .btn-check-custom input {
        display: none;
    }

    .btn-check-custom span {
        display: inline-block;
        padding: 8px 18px;
        border: 1px solid #ccc;
        border-radius: 8px;
        background: #f5f5f5;
        transition: all .2s;
    }

    .btn-check-custom input:checked + span {
        background: #0d6efd;
        color: white;
        border-color: #0d6efd;
    }


    .btn-check-custom span {
        height: 56px; /* ارتفاع input lg بوت استرپ */
        display: flex;
        align-items: center;
        justify-content: center;
    }


.toggle-btn input {
    display: none;
}

.toggle-btn span {
    padding: 10px 22px;
    border-radius: 30px;
    background: #eee;
    cursor: pointer;
    transition: all .3s;
    display: inline-block;
    font-weight: 500;
}

.toggle-btn input:checked + span {
    background: linear-gradient(45deg,#28a745,#20c997);
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
}


.modern-check {
    display: inline-block;
    cursor: pointer;
}

    .modern-check input {
        display: none;
    }

.modern-check-ui {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 14px;
    background: #f1f3f6;
    border: 1px solid #e0e3e8;
    transition: all .25s ease;
    font-weight: 500;
    color: #555;
}

    .modern-check-ui .check-icon {
        width: 22px;
        height: 22px;
        border-radius: 6px;
        background: white;
        border: 1px solid #d0d5dd;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        opacity: 0;
        transform: scale(.7);
        transition: all .25s ease;
    }

/* حالت انتخاب شده */
.modern-check input:checked + .modern-check-ui {
    background: linear-gradient(135deg,#4f8cff,#6c63ff);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(79,140,255,.25);
}

    .modern-check input:checked + .modern-check-ui .check-icon {
        background: white;
        color: #4f8cff;
        opacity: 1;
        transform: scale(1);
    }



.switch-modern {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

    /* مخفی کردن چک باکس اصلی */
    .switch-modern input {
        display: none;
    }

/* بدنه اسلایدر */
.slider-modern {
    position: relative;
    width: 54px;
    height: 28px;
    background: #e4e7ec;
    border-radius: 50px;
    transition: all .3s ease;
}

    /* دایره داخل */
    .slider-modern::before {
        content: "";
        position: absolute;
        width: 22px;
        height: 22px;
        left: 3px;
        top: 3px;
        background: white;
        border-radius: 50%;
        box-shadow: 0 2px 6px rgba(0,0,0,.2);
        transition: all .3s ease;
    }

/* وقتی انتخاب شد */
.switch-modern input:checked + .slider-modern {
    background: linear-gradient(135deg,#4f8cff,#6c63ff);
}

    /* حرکت دایره */
    .switch-modern input:checked + .slider-modern::before {
        transform: translateX(26px);
    }

/* متن */
.switch-label {
    font-weight: 500;
    color: #444;
}


.hr-with-text {
    display: flex;
    align-items: center;
    width: 100%;
}

    .hr-with-text span {
        white-space: nowrap;
        margin-left: 12px;
        font-weight: 600;
        color: #555;
    }

    .hr-with-text::after {
        content: "";
        flex-grow: 1;
        height: 1px;
        background: #ccc;
    }




.select-btn {
    display: inline-block;
    cursor: pointer;
}

    .select-btn input {
        display: none;
    }

/* ظاهر دکمه */
.btn-content {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    font-weight: 500;
    color: #334155;
    transition: all 0.25s ease;
}

/* آیکن تیک */
.check-mark {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    background: #e2e8f0;
    color: transparent;
    transition: all 0.25s ease;
}

/* Hover */
.select-btn:hover .btn-content {
    border-color: #2563eb;
    transform: translateY(-1px);
}

/* وقتی انتخاب شد */
.select-btn input:checked + .btn-content {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

    /* تیک وقتی انتخاب شد */
    .select-btn input:checked + .btn-content .check-mark {
        background: white;
        color: #2563eb;
    }


 /*file upluad --------------------------------*/
.upload-card {
    border-radius: 16px;
    padding: 5px;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    box-shadow: 0 6px 22px rgba(0,0,0,0.06);
}

.upload-area {
    border: 2px dashed #cfd6e1;
    border-radius: 14px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: .25s ease;
    background: #fafafa;
}

    .upload-area:hover {
        border-color: #6aa9ff;
        background: #f3f8ff;
    }

    .upload-area i {
        font-size: 48px;
        color: #4f8cff;
        margin-bottom: 12px;
        opacity: .9;
        transition: .25s;
    }

    .upload-area:hover i {
        transform: scale(1.07);
        opacity: 1;
    }

    .upload-area input[type="file"] {
        display: none;
    }

.upload-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #3b3b3b;
}

.upload-desc {
    font-size: .85rem;
    color: #7d7d7d;
    margin-top: 4px;
}




/*compact uplouder*/

.upload-card-compact {
    border-radius: 14px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e6e6e6;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.upload-area-compact {
    border: 2px dashed #d4d8df;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: .2s;
    background: #fafafa;
}

    .upload-area-compact:hover {
        border-color: #6aa9ff;
        background: #f3f8ff;
    }

    .upload-area-compact i {
        font-size: 32px;
        color: #4f8cff;
        margin-bottom: 6px;
        transition: .2s ease;
    }

    .upload-area-compact:hover i {
        transform: scale(1.08);
    }

    .upload-area-compact input {
        display: none;
    }

.uc-title {
    font-size: .95rem;
    font-weight: 600;
    color: #333;
}

.uc-desc {
    font-size: .75rem;
    color: #7b7b7b;
}


.submit-btn {
    background-color: #6aa9ff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    margin-top: 15px;
    transition: .3s;
}

    .submit-btn:hover {
        background-color: #5796de;
    }
/*file upluad --------------------------------*/


/*file upluad Card container */
.chic-upload-card {
    background: #f8f9fa; /* Light background for the card */
    border-radius: 16px;
    padding: 30px;
    border: 1px solid #dee2e6;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transition: all 0.3s ease-in-out;
    width: 90%; /* Use percentage for width */
    max-width: 500px; /* Max width for better appearance */
    margin: 20px auto; /* Center the card */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

/* Media Query for smaller screens (e.g., mobile phones) */
@media (max-width: 768px) {
    .chic-upload-card {
        width: 95%; /* Slightly wider on very small screens */
        padding: 20px; /* Reduce padding */
        margin-top: 15px;
        margin-bottom: 15px;
    }
}

/* Media Query for extremely small screens (optional) */
@media (max-width: 480px) {
    .chic-upload-card {
        width: 100%; /* Full width on the smallest screens */
        border-radius: 0; /* Remove border-radius for a full-width "card" look */
        padding: 15px; /* Further reduce padding */
        margin-left: 0;
        margin-right: 0;
        box-shadow: none; /* Remove shadow for full-width elements */
    }
}


    .chic-upload-card:hover {
        box-shadow: 0 12px 36px rgba(0,0,0,0.12);
        transform: translateY(-3px);
    }

/* Upload area styling */
.chic-upload-area {
    border: 2px dashed #a0c4ff; /* Softer dashed border */
    border-radius: 14px;
    padding: 40px 20px; /* Increased padding for more space */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    background: #ffffff; /* White background for the upload area */
}

    .chic-upload-area:hover {
        background: #eaf4ff; /* Light blue hover background */
        border-color: #6ca8ff; /* Brighter border on hover */
    }

    .chic-upload-area i {
        font-size: 48px; /* Larger icon */
        color: #3b82f6; /* Vibrant blue icon */
        margin-bottom: 12px;
        transition: transform 0.3s ease-out;
    }

    .chic-upload-area:hover i {
        transform: scale(1.15); /* Slight zoom effect on icon */
    }

    .chic-upload-area .upload-title {
        font-size: 1.1rem; /* Slightly larger title */
        font-weight: 600;
        color: #1f2937; /* Darker text for title */
        margin-bottom: 6px;
    }

    .chic-upload-area .upload-description {
        font-size: 0.8rem;
        color: #6b7280; /* Muted description text */
    }

    .chic-upload-area input[type="file"] {
        display: none; /* Hide the default file input */
    }

/* Stylish Button */
.chic-submit-button {
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%); /* Gradient background */
    color: white !important; /* Ensure text is white */
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    display: block; /* Make it a block element */
    width: 100%; /* Full width */
    margin-top: 25px; /* Space from upload area */
    box-shadow: 0 4px 12px rgba(106, 17, 203, 0.3); /* Shadow matching gradient */
}

    .chic-submit-button:hover {
        background: linear-gradient(90deg, #2575fc 0%, #6a11cb 100%); /* Reverse gradient on hover */
        color: white !important;
        box-shadow: 0 8px 20px rgba(37, 117, 252, 0.4); /* Enhanced shadow on hover */
        transform: translateY(-2px);
    }

.upload-status {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #28a745; /* Bootstrap success color */
    text-align: center;
}

/*file upluad Card container */

.td-color-badge {
    display: inline-block;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 1px solid #ccc;
    vertical-align: middle;
    margin-right: 6px;
}

.edit-image-preview {
    width: 100%;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
}

    .edit-image-preview img {
        width: 20%;
        height: auto;
        display: block;
        margin:auto;
    }

     