﻿/* Modal Styles */
/*.gallery-admin-modal {
    display: none;*/ /* Hidden by default */
    /*position: fixed;
    z-index: 1001;
    left: 50%;
    top: 0;
    transform: translate(-50%);
    width: 80%;
    height: 100%;*/ /* Fill the whole screen */
    /*background-color: rgba(0, 0, 0, 0.5);*/ /* Faded background */
    /*padding: 50px 0;*/ /* Optional top/bottom spacing */
    /*overflow: auto;*/ /* Allow modal to scroll */
/*}*/

/* Modal content area */
/*.gallery-admin-modal-content {
    background-color: #fff;
    width: calc(100% - 40px);*/ /* Full width minus margin */
    /*height: calc(100% - 40px);*/ /* Full height minus margin */
    /*max-width: 100%;*/ /* Ensure it does not exceed screen width */
    /*max-height: 100%;*/ /* Ensure it does not exceed screen height */
    /*overflow: hidden;*/ /* Prevents content from spilling out */
    /*border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);*/ /* Shadow effect */
    /*display: flex;
    flex-direction: column;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);*/ /* Center modal */
/*}*/

/* Modal Header */
/*.gallery-admin-modal-header {
    background-color: #333;
    color: #fff;
    padding: 15px;
    font-size: 20px;
    font-weight: bold;
    justify-content: flex-start;*/ /* Align items to the left */
    /*align-items: center;*/ /* Center vertically */
    /*position: relative;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}*/
    /* Ensure h2 is aligned to the left and no other styles interfere */
    /*.gallery-admin-modal-header h2 {
        margin: 0;*/ /* Remove any default margins */
        /*padding: 0;*/ /* Remove padding */
        /*text-align: right;*/ /* Force left alignment */
        /*flex: 1 0 auto;*/ /* Let the header grow as needed */
    /*}*/

    /* Close button */
    /*.gallery-admin-modal-header .close {
        font-size: 30px;
        font-weight: bold;
        color: #aaa;
        position: absolute;
        top: 10px;
        right: 20px;
        cursor: pointer;
    }*/

/* Modal Footer */
/*.gallery-admin-modal-footer {
    background-color: #f4f4f9;
    padding: 10px;
    text-align: center;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    position: relative;
}*/

/* Modal Content */
/*.gallery-admin-modal-content-body {
    padding: 20px;
    overflow-y: auto;*/ /* Content can scroll if it's too long */
    /*flex-grow: 1;*/ /* Allow content to grow */
    /*max-height: calc(100% - 140px);*/ /* Adjust height with respect to header and footer */
    /*background-color: white;
}*/

/* Close button (X) */
/*.gallery-admin-close {
    color: #aaa;
    font-size: 30px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    left: 20px;
    cursor: pointer;
}

    .gallery-admin-close:hover,
    .gallery-admin-close:focus {
        color: #000;
        text-decoration: none;
        cursor: pointer;
    }*/

/* Button to open modal */
/*.gallery-admin-btn {
    background-color: #4CAF50 !important;
    color: white !important;
    padding: 10px 20px !important;
    border: none !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    font-size: 16px !important;
    transition: background-color 0.3s !important;
    font-family: IRANSans !important;
}

    .gallery-admin-btn:hover {
        background-color: #45a049;
    }*/

/* Animation */
/*@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}*/
/* Modal Styles - Dark Theme */
.gallery-admin-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%; /* Fill the whole screen */
    background-color: rgba(17, 24, 39, 0.8); /* Dark faded background with blur effect */
    backdrop-filter: blur(5px);
    overflow: auto; /* Allow modal to scroll */
}

/* Modal content area */
.gallery-admin-modal-content {
    background-color: var(--dialog-bg, #1f2937);
    width: 80%; /* 80% of screen width */
    max-height: 80vh; /* 80% of viewport height */
    overflow: hidden; /* Prevents content from spilling out */
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); /* Enhanced shadow effect */
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center modal */
    border-top: 4px solid var(--primary-color, #6d28d9);
}

/* Modal Header */
.gallery-admin-modal-header {
    background-color: var(--dialog-bg, #1f2937);
    color: var(--text-light, #f3f4f6);
    padding: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    justify-content: flex-start; /* Align items to the left */
    align-items: center; /* Center vertically */
    position: relative;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    border-bottom: 1px solid var(--border-color, #374151);
    display: flex;
    flex-shrink: 0; /* Prevent header from shrinking */
}

    /* Ensure h2 is aligned to the left and no other styles interfere */
    .gallery-admin-modal-header h2 {
        margin: 0; /* Remove any default margins */
        padding: 0; /* Remove padding */
        text-align: right; /* Force right alignment */
        flex: 1 0 auto; /* Let the header grow as needed */
        color: var(--text-light, #f3f4f6);
        font-weight: 600;
    }

    /* Close button */
    .gallery-admin-modal-header .close {
        font-size: 1.5rem;
        font-weight: bold;
        color: var(--text-muted, #9ca3af);
        position: absolute;
        top: 1rem;
        right: 1.5rem;
        cursor: pointer;
        transition: color 0.2s ease;
        background: none;
        border: none;
        padding: 0.5rem;
        border-radius: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .gallery-admin-modal-header .close:hover {
            color: var(--text-light, #f3f4f6);
            background-color: var(--hover-bg, #374151);
        }

/* Modal Footer */
.gallery-admin-modal-footer {
    background-color: var(--dialog-bg, #1f2937);
    padding: 1rem 1.5rem;
    text-align: center;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    position: relative;
    border-top: 1px solid var(--border-color, #374151);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    flex-shrink: 0; /* Prevent footer from shrinking */
}

/* Modal Content */
.gallery-admin-modal-content-body {
    padding: 1.5rem;
    overflow-y: auto; /* Content can scroll if it's too long */
    flex-grow: 1; /* Allow content to grow */
    background-color: var(--dialog-bg, #1f2937);
    color: var(--text-light, #f3f4f6);
}

    /* Custom scrollbar for the modal content */
    .gallery-admin-modal-content-body::-webkit-scrollbar {
        width: 6px;
    }

    .gallery-admin-modal-content-body::-webkit-scrollbar-track {
        background: rgba(17, 24, 39, 0.5);
        border-radius: 3px;
    }

    .gallery-admin-modal-content-body::-webkit-scrollbar-thumb {
        background-color: var(--border-color, #374151);
        border-radius: 3px;
    }

/* Close button (X) */
.gallery-admin-close {
    color: var(--text-muted, #9ca3af);
    font-size: 1.5rem;
    font-weight: bold;
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

    .gallery-admin-close:hover,
    .gallery-admin-close:focus {
        color: var(--text-light, #f3f4f6);
        text-decoration: none;
        cursor: pointer;
    }

/* Button to open modal */
.gallery-admin-btn {
    background-color: var(--primary-color, #6d28d9) !important;
    color: white !important;
    padding: 0.75rem 1.5rem !important;
    border: none !important;
    border-radius: 0.5rem !important;
    cursor: pointer !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    font-family: IRANSans !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

    .gallery-admin-btn:hover {
        background-color: var(--primary-light, #8b5cf6) !important;
        transform: translateY(-2px) !important;
    }

/* Animation */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -48%);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.gallery-admin-modal.active {
    animation: fadeIn 0.3s ease forwards;
}













/*.gallery-admin-drop-area {
    border: 2px dashed #ddd;
    padding: 20px;
    text-align: center;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    cursor: pointer;
    background-color: #f9f9f9;
}

    .gallery-admin-drop-area.highlight {
        border-color: #4CAF50;
        background-color: #e7ffe7;
    }

    .gallery-admin-drop-area input[type="file"] {
        display: none;
    }

.gallery-admin-image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.preview-item {
    position: relative;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    overflow: hidden;
    background: #fff;
    width: 100px;
    padding: 5px;
    font-size: 12px;
    text-align: center;
}

    .preview-item.single {
        width: 200px;
    }

    .preview-item img,
    .preview-item video {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 4px;
    }

    .preview-item audio {
        width: 100%;
    }

.preview-info {
    margin-top: 5px;
    font-size: 11px;
    color: #444;
    word-break: break-all;
}

.gallery-admin-remove-btn {
    position: absolute !important;
    top: 3px !important;
    right: 3px !important;
    background-color: rgba(255, 0, 0, 0.7) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    padding: 3px !important;
    cursor: pointer !important;
    font-size: 16px !important;
    width: 20px !important;
    height: 20px !important;
    display: none !important;
    justify-content: center !important;
    align-items: center !important;
    opacity: 0 !important;
    transition: opacity 0.2s !important;
}

.preview-item:hover .gallery-admin-remove-btn {
    display: flex !important;
    opacity: 1 !important;
}*/
/* Theme Variables */
:root {
    --primary-color: #6d28d9;
    --primary-light: #8b5cf6;
    --dark-bg: rgba(17, 24, 39, 0.8);
    --dialog-bg: #1f2937;
    --text-light: #f3f4f6;
    --text-muted: #9ca3af;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;
    --border-color: #374151;
    --hover-bg: #374151;
    --item-bg: #111827;
}

/* Drop Area Styles - Dark Theme */
.gallery-admin-drop-area {
    border: 2px dashed var(--border-color);
    padding: 2rem;
    text-align: center;
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    cursor: pointer;
    background-color: rgba(17, 24, 39, 0.3);
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    color: var(--text-light);
}

    .gallery-admin-drop-area:hover {
        border-color: var(--primary-color);
        background-color: rgba(109, 40, 217, 0.05);
    }

    .gallery-admin-drop-area.highlight {
        border-color: var(--primary-color);
        background-color: rgba(109, 40, 217, 0.1);
    }

    .gallery-admin-drop-area input[type="file"] {
        display: none;
    }

.gallery-admin-drop-area-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    color: var(--text-muted);
}

.gallery-admin-drop-area-text {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.gallery-admin-drop-area-subtext {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Image Preview Container - Dark Theme */
.gallery-admin-image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Preview Item - Dark Theme */
.preview-item {
    position: relative;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
    overflow: hidden;
    background: var(--item-bg);
    width: 100px;
    padding: 0.5rem;
    font-size: 0.75rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

    .preview-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        border-color: var(--primary-color);
    }

    .preview-item.single {
        width: 200px;
    }

    .preview-item img,
    .preview-item video {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 0.375rem;
    }

    .preview-item audio {
        width: 100%;
    }

/* Preview Info - Dark Theme */
.preview-info {
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    word-break: break-all;
}

/* Remove Button - Dark Theme */
.gallery-admin-remove-btn {
    position: absolute !important;
    top: 0.25rem !important;
    right: 0.25rem !important;
    background-color: rgba(239, 68, 68, 0.8) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    padding: 0 !important;
    cursor: pointer !important;
    font-size: 0.875rem !important;
    width: 1.5rem !important;
    height: 1.5rem !important;
    display: none !important;
    justify-content: center !important;
    align-items: center !important;
    opacity: 0 !important;
    transition: opacity 0.2s !important;
}

    .gallery-admin-remove-btn:hover {
        background-color: var(--error-color) !important;
    }

.preview-item:hover .gallery-admin-remove-btn {
    display: flex !important;
    opacity: 1 !important;
}

/* Custom Checkbox - Dark Theme */
.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-family: IRANSans !important;
    margin: 0.75rem 0;
}

    .custom-checkbox input {
        display: none;
    }

.checkmark {
    width: 1.25rem;
    height: 1.25rem;
    background-color: rgba(17, 24, 39, 0.8);
    border: 2px solid var(--border-color);
    border-radius: 0.375rem;
    margin-right: 0.75rem;
    position: relative;
    transition: all 0.2s ease-in-out;
}

.custom-checkbox input:checked + .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

    .custom-checkbox input:checked + .checkmark::after {
        content: "";
        position: absolute;
        left: 0.3125rem;
        top: 0.0625rem;
        width: 0.3125rem;
        height: 0.625rem;
        border: solid white;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

.custom-checkbox:has(input:checked) .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

    .custom-checkbox:has(input:checked) .checkmark::after {
        content: "";
        position: absolute;
        left: 0.3125rem;
        top: 0.0625rem;
        width: 0.3125rem;
        height: 0.625rem;
        border: solid white;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

.label-text {
    font-size: 0.875rem;
    color: var(--text-light);
}













/* Overlay */
.confirm-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.7) !important;
    display: none;
    justify-content: center !important;
    align-items: center !important;
    z-index: 9999 !important;
}

/* Modal box */
.confirm-modal {
    background-color: #fff !important;
    padding: 25px 30px !important;
    border-radius: 8px !important;
    text-align: center !important;
    max-width: 400px !important;
    width: 90% !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    position: relative !important;
}

/* Title and message */
.confirm-modal-title {
    font-size: 20px !important;
    margin-bottom: 15px !important;
}

.confirm-modal-message {
    font-size: 16px !important;
    margin-bottom: 25px !important;
}

/* Buttons */
.confirm-modal-actions {
    display: flex !important;
    justify-content: center !important;
    gap: 15px !important;
}

.confirm-modal-btn {
    padding: 8px 20px !important;
    font-size: 16px !important;
    cursor: pointer !important;
    border: none !important;
    border-radius: 6px !important;
    transition: background-color 0.3s ease !important;
}

.confirm-yes-btn {
    background-color: #d9534f !important;
    color: #fff !important;
    font-family: IRANSans !important;
}

    .confirm-yes-btn:hover {
        background-color: #c9302c !important;
    }

.confirm-no-btn {
    background-color: #6c757d !important;
    color: #fff !important;
    font-family: IRANSans !important;
}

    .confirm-no-btn:hover {
        background-color: #5a6268 !important;
    }



















/*.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-family: sans-serif;
}

    .custom-checkbox input {
        display: none;
    }

.checkmark {
    width: 20px;
    height: 20px;
    background-color: #f0f0f0;
    border: 2px solid #ccc;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.2s ease-in-out;
}

.custom-checkbox input:checked + .checkmark {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

    .custom-checkbox input:checked + .checkmark::after {
        content: "";
        position: absolute;
        left: 5px;
        top: 1px;
        width: 5px;
        height: 10px;
        border: solid white;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

.custom-checkbox:has(input:checked) .checkmark {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

    .custom-checkbox:has(input:checked) .checkmark::after {
        content: "";
        position: absolute;
        left: 5px;
        top: 1px;
        width: 5px;
        height: 10px;
        border: solid white;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }


.label-text {
    font-size: 16px;
    color: #333;
}










.admin-edit-preview-prev-item{

}
.admin-edit-preview-prev-item img{

}*/

















/*.lst-image-thumbnail-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
    background-color: white;
}

.lst-image-thumbnail {
    position: relative;
    width: 150px;
    height: 100px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

    .lst-image-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
        display: block;
    }

.lst-remove-btn {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background-color: rgba(0, 0, 0, 0.5) !important;*/ /* transparent dark background */
    /*color: white !important;
    border: none !important;
    border-radius: 50% !important;
    font-size: 20px !important;
    width: 40px !important;
    height: 40px !important;
    cursor: pointer !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    transition: opacity 0.3s !important;
}

.lst-image-thumbnail:hover .lst-remove-btn {
    display: flex !important;
}*/
/* Image Thumbnail List - Dark Theme */
.lst-image-thumbnail-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--dialog-bg);
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border-color);
}

.lst-image-thumbnail {
    position: relative;
    width: 150px;
    height: 100px;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

    .lst-image-thumbnail:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
        border-color: var(--primary-color);
    }

    .lst-image-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0.75rem;
        display: block;
        transition: filter 0.3s ease;
    }

    .lst-image-thumbnail:hover img {
        filter: brightness(0.7);
    }

.lst-remove-btn {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background-color: rgba(239, 68, 68, 0.8) !important; /* Using error color with transparency */
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    font-size: 1.25rem !important;
    width: 2.5rem !important;
    height: 2.5rem !important;
    cursor: pointer !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s !important;
    opacity: 0 !important;
    z-index: 10 !important;
}

    .lst-remove-btn:hover {
        background-color: var(--error-color) !important;
        transform: translate(-50%, -50%) scale(1.1) !important;
    }

.lst-image-thumbnail:hover .lst-remove-btn {
    display: flex !important;
    opacity: 1 !important;
}

/* Video indicator */
.lst-video-indicator {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Selected state */
.lst-image-thumbnail.selected {
    border: 2px solid var(--primary-color);
}

    .lst-image-thumbnail.selected::after {
        content: "✓";
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        background-color: var(--primary-color);
        color: white;
        border-radius: 50%;
        width: 1.5rem;
        height: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.875rem;
    }