.modal-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}
.modal-body {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 20px;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
}
.modal-body::-webkit-scrollbar {
    width: 8px;
}
.modal-body::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 10px;
}
.modal-body::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 10px;
}
.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}
.modal-header .shop-icon {
    width: 60px;
    height: 60px;
    margin-right: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.modal-header h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.modal-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    width: 100%;
}
.modal-image-container {
    width: 100%;
    height: 350px;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}
.modal-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1)
}
.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px
}
.modal-buttons .btn {
    flex: 1;
    max-width: 180px;
    text-align: center;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.modal-info {
    max-height: none;
    height: auto;
    flex: 1;
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    overflow-y: auto;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
    overflow: auto;
    opacity: 0;
    transition: opacity 0.3s ease
}
.modal.show {
    display: flex;
    opacity: 1
}
.modal-content {
    position: relative;
    background-color: var(--modal-content-background);
    margin: 0;
    padding: 20px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform: scale(0.9);
    opacity: 0;
}
body.dark-theme .modal-content {
    background-color: var(--modal-content-background);
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.modal.show .modal-content {
    opacity: 1
}
.dark-theme .modal-content {
    background-color: var(--modal-content-background);
}
.modal-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 12px;
    padding: 0;
    position: relative;
}
.modal-images img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    transition: all 0.25s ease;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-images img:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}
.modal-footer {
    padding: 15px;
    text-align: center;
    display: flex;
    justify-content: center;
}
.modal-images .shop-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.modal-images .shop-image:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}
.info-value.description {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
    margin: 0;
    background-color: rgba(255, 255, 255, 0.08);
    padding: 15px;
    border-radius: 8px;
    line-height: 1.6;
    max-height: 300px;
    overflow-y: auto;
}
.shop-status-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 10px;
}
.shop-status-wrapper .info-item {
    margin-bottom: 0;
    min-width: 120px;
}
.info-value.status-open, 
.info-value.status-closed {
    font-weight: 700;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
}
.info-value.status-open {
    background-color: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
}
.info-value.status-closed {
    background-color: rgba(244, 67, 54, 0.15);
    color: #F44336;
}
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}
.tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--secondary-color);
    color: var(--text-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}
.tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.discord-btn {
    background-color: #5865F2;
    color: white;
}
.vrchat-btn {
    background-color: #3e98c7;
    color: white;
}
.vrchat-btn:hover {
    background-color: #5f5fff;
}
.edit-shop-modal-btn {
    background-color: #ff9800;
    color: white;
    margin-right: 10px;
}
.edit-shop-modal-btn:hover {
    background-color: #f57c00;
}
.shop-promote {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 10px;
}
.shop-promote:hover {
    transform: scale(1.02);
}
.gallery-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 6px;
}
.gallery-title i {
    font-size: 1.1rem;
}
.dark-theme .gallery-title {
    border-bottom-color: rgba(255,255,255,0.1);
}
@media (max-width: 1024px) {
    .modal-images {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 15px;
        margin: 10px auto;
        max-height: 85vh;
    }
    .modal-header {
        margin-bottom: 15px;
    }
    .modal-body {
        flex-direction: column;
        padding: 10px;
        gap: 15px;
    }
    .modal-info {
        margin-bottom: 15px;
        padding: 20px;
    }
    .info-value.description {
        max-height: 200px;
        padding: 12px;
    }
    .modal-image-container {
        height: 250px;
        margin-bottom: 15px;
    }
    .modal-images {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        margin-top: 10px;
    }
    .modal-images img {
        height: 120px;
    }
    .modal-footer {
        text-align: center;
        display: flex;
        justify-content: center;
    }
    .modal-buttons {
        flex-wrap: wrap;
        gap: 10px;
    }
    .modal-buttons .btn {
        padding: 10px 15px;
        max-width: none;
    }
    
    /* Improved admin modal responsive styles */
    .admin-modal-content {
        width: 90%;
        padding: 15px;
        margin: 10px auto;
        background-color: var(--modal-content-background);
    }
    
    .admin-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .admin-btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    /* Improved settings modal responsive styles */
    .settings-modal-content {
        width: 90%;
        padding: 15px;
        margin: 10px auto;
        max-height: 85vh;
        overflow-y: auto;
        background-color: var(--modal-content-background);
    }
    
    .settings-grid {
        display: flex;
        flex-direction: column;
    }
    
    .settings-footer .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    .shop-status-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .tag {
        padding: 4px 10px;
        font-size: 0.8rem;
    }
    
    .modal-header .shop-icon {
        width: 50px;
        height: 50px;
        margin-right: 15px;
    }
    .gallery-title {
        margin-top: 10px;
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    #job-modal-content .modal-info {
        width: 100%;
        order: 1;
    }
    
    #job-modal-content .modal-images {
        width: 100%;
        order: 2;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    #job-modal-content .job-description pre {
        max-height: 150px;
        overflow-y: auto;
        white-space: pre-wrap;
        background-color: rgba(0, 0, 0, 0.05);
        padding: 10px;
        border-radius: 8px;
    }
    
    .dark-theme #job-modal-content .job-description pre {
        background-color: rgba(255, 255, 255, 0.05);
    }
}
@media (max-width: 480px) {
    .modal {
        align-items: center;
    }
    .modal-header {
        flex-direction: row;
        align-items: center;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
    .modal-header .shop-icon {
        width: 40px;
        height: 40px;
    }
    .modal-header h2 {
        font-size: 1.4rem;
    }
    .modal-image-container {
        height: 200px;
    }
    .modal-info {
        padding: 15px;
    }
    .info-item {
        margin-bottom: 10px;
    }
    .info-separator {
        margin: 10px 0;
    }
    .modal-images {
        margin-top: 20px;
        margin-bottom: 25px;
        position: relative;
        z-index: 5;
        max-width: 100%;
        width: 100%;
        overflow-x: auto;
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        padding: 15px 0;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        min-height: 140px;
        background-color: rgba(0, 0, 0, 0.03);
        border-radius: 8px;
    }
    .modal-images img {
        height: 110px;
        min-width: 160px;
        flex: 0 0 auto;
        margin-right: 8px;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
        border: 2px solid rgba(255, 255, 255, 0.2);
    }
    .modal-images::-webkit-scrollbar {
        height: 6px;
    }
    .modal-images::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 3px;
    }
    .modal-images::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 3px;
    }
    .modal-buttons .btn {
        font-size: 0.9rem;
        padding: 10px;
    }
    
    /* Improved admin modal responsive styles for smaller screens */
    .admin-modal-content {
        width: 95%;
        padding: 15px;
        border-radius: 10px;
    }
    
    .admin-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .admin-input input {
        padding: 8px;
        font-size: 14px;
    }
    
    /* Improved settings modal responsive styles for smaller screens */
    .settings-modal-content {
        width: 95%;
        padding: 15px;
        border-radius: 10px;
    }
    
    .settings-modal-content h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .settings-option {
        margin-bottom: 12px;
    }
    
    .settings-option label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .settings-option select {
        padding: 8px;
        font-size: 14px;
    }
    .shop-status-wrapper {
        gap: 8px;
    }
    
    .info-value.status-open, 
    .info-value.status-closed {
        padding: 3px 8px;
        font-size: 0.8rem;
    }
    
    .tag {
        padding: 3px 8px;
        font-size: 0.75rem;
    }
    .gallery-title {
        font-size: 0.95rem;
        padding-bottom: 5px;
    }
    
    /* Job modal specific styles for small screens */
    #job-modal-content {
        width: 95%;
        margin: 0 auto;
        max-height: 90vh;
        overflow: hidden;
    }
    
    #job-modal-content .modal-content {
        max-height: 85vh;
        overflow-y: auto;
        padding: 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    #job-modal-content .modal-body {
        padding: 10px;
        overflow-x: hidden;
        width: 100%;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        gap: 25px;
    }
    
    #job-modal-content .modal-header {
        flex-direction: row;
        align-items: center;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }
    
    #job-modal-content .modal-header h2 {
        font-size: 1.4rem;
    }
    
    #job-modal-content .modal-info {
        margin-bottom: 0;
        width: 100%;
        padding: 12px;
        box-sizing: border-box;
    }
    
    #job-modal-content .job-description pre {
        max-height: 120px;
        font-size: 0.85rem;
        padding: 8px;
    }
    
    /* Image gallery styling with improved visibility */
    #job-modal-content .modal-images {
        margin-top: 10px;
        margin-bottom: 10px;
        position: relative;
        z-index: 5;
        max-width: 100%;
        width: 100%;
        overflow-x: auto;
        display: flex;
        flex-wrap: nowrap;
        gap: 15px;
        padding: 15px 5px;
        padding-bottom: 10px;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        min-height: 200px;
        background-color: rgba(0, 0, 0, 0.03);
        border-radius: 8px;
    }
    
    #job-modal-content .modal-images::before {
        content: "รูปภาพ";
        display: block;
        position: absolute;
        top: -20px;
        left: 0;
        font-size: 0.9rem;
        font-weight: bold;
        color: var(--primary-color);
    }
    
    /* Make each image container take up more space */
    #job-modal-content .modal-images > * {
        flex: 0 0 85%;
        max-width: 85%;
        scroll-snap-align: center;
    }
    
    /* Make images fill their containers */
    #job-modal-content .modal-images img {
        height: 180px;
        width: 100%;
        flex: none;
        object-fit: cover;
        margin-right: 0;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
        border: 2px solid rgba(255, 255, 255, 0.2);
    }
    
    /* Special styling for shop-image class */
    #job-modal-content .modal-images .shop-image {
        height: 180px;
        width: 100%;
        object-fit: cover;
        border-radius: 6px;
        transition: all 0.25s ease;
        cursor: pointer;
        box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
        border: 2px solid rgba(255, 255, 255, 0.2);
    }
    
    /* Make the promoted image larger if needed */
    #job-modal-content .modal-images .shop-promote {
        height: 180px;
        width: 100%;
        object-fit: cover;
    }
    
    /* Footer styling */
    #job-modal-content .modal-footer {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 0;
        padding-top: 15px;
        border-top: 1px solid rgba(128, 128, 128, 0.2);
        align-items: center;
    }
    
    #job-modal-content .modal-footer .btn {
        width: 100%;
        margin: 0;
        padding: 12px;
        font-size: 1rem;
        text-align: center;
    }
    
    /* Scrollbar styles */
    #job-modal-content .modal-images::-webkit-scrollbar {
        height: 6px;
    }
    
    #job-modal-content .modal-images::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 3px;
    }
    
    #job-modal-content .modal-images::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 3px;
    }
}

/* Additional media query for larger tablets and smaller desktop screens */
@media (min-width: 769px) and (max-width: 1024px) {
    .admin-modal-content,
    .settings-modal-content {
        width: 80%;
        max-width: 650px;
        margin: 5% auto;
        background-color: var(--modal-content-background);
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    .admin-btn {
        flex: 1 1 calc(50% - 10px);
        min-width: 130px;
    }
}

/* Ensure modals don't take up too much space on very large screens */
@media (min-width: 1200px) {
    .admin-modal-content,
    .settings-modal-content {
        max-width: 700px;
        background-color: var(--modal-content-background);
    }
}

/* Image zoom modal */
.image-zoom-modal {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-zoom-modal.active {
    opacity: 1;
}

.zoomed-image-container {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.zoomed-image {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.image-zoom-modal.active .zoomed-image {
    transform: scale(1);
}

.zoom-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
}

.zoom-close-btn {
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.zoom-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.zoom-caption {
    color: white;
    margin-top: 15px;
    font-size: 1rem;
    text-align: center;
    max-width: 80%;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .zoomed-image-container {
        max-width: 95%;
    }
    
    .zoomed-image {
        max-height: 70vh;
    }
    
    .zoom-close-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .zoomed-image-container {
        max-width: 100%;
    }
    
    .zoom-controls {
        top: 10px;
        right: 10px;
    }
    
    .zoom-close-btn {
        width: 32px;
        height: 32px;
    }
    
    .zoom-caption {
        font-size: 0.9rem;
        margin-top: 10px;
    }
}

#job-modal-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 800px;
    background-color: var(--modal-content-background);
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.dark-theme #job-modal-content {
    background-color: var(--modal-content-background);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 769px) {
    #job-modal-content .modal-body {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    #job-modal-content .modal-info {
        padding-right: 15px;
    }
    
    #job-modal-content .modal-images {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        align-content: start;
    }
    
    #job-modal-content .shop-promote {
        grid-column: span 2;
    }
    
    #job-modal-content .job-description pre {
        max-height: 200px;
        overflow-y: auto;
        white-space: pre-wrap;
        background-color: rgba(0, 0, 0, 0.05);
        padding: 15px;
        border-radius: 8px;
        font-family: 'Kanit', sans-serif;
        font-size: 0.9rem;
    }
    
    .dark-theme #job-modal-content .job-description pre {
        background-color: rgba(255, 255, 255, 0.05);
    }
    
    #job-modal-content .modal-footer {
        display: flex;
        justify-content: center;
        padding: 15px 0 0;
    }
}

/* Improve close button positioning and styling */
.close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #888;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.close:hover,
.close:focus {
    color: #333;
    background-color: #f0f0f0;
    transform: scale(1.1);
    text-decoration: none;
}

.dark-theme .close {
    background-color: rgba(50, 50, 50, 0.8);
    color: #ddd;
}

.dark-theme .close:hover,
.dark-theme .close:focus {
    background-color: rgba(70, 70, 70, 0.9);
    color: #fff;
}

/* Specific adjustments for mobile */
@media (max-width: 768px) {
    .close {
        top: 10px;
        right: 10px;
        font-size: 24px;
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .close {
        top: 8px;
        right: 8px;
        font-size: 22px;
        width: 28px;
        height: 28px;
    }
}

/* Media Container Styles */
.modal-media {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
}

.media-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Video Styles */
.video-container {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #000;
    position: relative;
}

.shop-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Fullscreen button */
.fullscreen-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    z-index: 5;
}

.video-container:hover .fullscreen-btn {
    opacity: 1;
}

.fullscreen-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.fullscreen-btn i {
    font-size: 1rem;
}

/* When in fullscreen */
.shop-video:fullscreen {
    object-fit: contain;
    background-color: black;
}

/* Fix for Firefox */
.shop-video:-moz-full-screen {
    object-fit: contain;
    background-color: black;
}

/* Fix for Safari and others */
.shop-video:-webkit-full-screen {
    object-fit: contain;
    background-color: black;
}

/* Responsive fixes for mobile */
@media (max-width: 480px) {
    .fullscreen-btn {
        opacity: 1;
        width: 36px;
        height: 36px;
    }
    
    .fullscreen-btn i {
        font-size: 0.9rem;
    }
}

/* Audio Styles */
.audio-container {
    padding: 15px;
    background: var(--card-background-color);
    border: 1px solid var(--border-color);
}

.shop-audio {
    width: 100%;
}

/* Embed Styles */
.embed-container {
    width: 100%;
    aspect-ratio: 16/9;
}

.shop-embed {
    width: 100%;
    height: 100%;
    border: none;
}

/* Caption Styles */
.media-caption {
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.9rem;
    text-align: center;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.media-item:hover .media-caption {
    opacity: 1;
}

.dark-theme .audio-container {
    background-color: var(--dark-card-background);
    border-color: var(--dark-border-color);
}

/* Mobile Responsiveness for Media */
@media (max-width: 768px) {
    .modal-media {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .media-caption {
        font-size: 0.8rem;
        padding: 8px;
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .video-container,
    .embed-container {
        aspect-ratio: 4/3;
    }
    
    .audio-container {
        padding: 10px;
    }
}

/* Add scroll indicators */
.modal-images-container {
    position: relative;
}

.modal-images-scroll-indicator {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.modal-images-scroll-indicator:hover {
    opacity: 1;
}

.modal-images-scroll-indicator.left {
    left: 5px;
}

.modal-images-scroll-indicator.right {
    right: 5px;
}

.modal-images-container:not(:hover) .modal-images-scroll-indicator {
    opacity: 0.3;
}

/* Form editing styles */
.edit-form-section {
    padding: 24px;
    background-color: var(--card-background, #fff);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color, #3a7ca5);
    transition: color 0.2s;
    font-size: 1rem;
}

.form-control {
    width: 100%;
    padding: 12px;
    height: 48px; /* Fixed height for consistency */
    border-radius: 8px;
    border: 1px solid var(--border-color, #ddd);
    background-color: var(--input-bg, #fff);
    color: var(--input-text, #333);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.dark-theme select.form-control {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eee' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
}

textarea.form-control {
    height: auto;
    min-height: 120px;
    resize: vertical;
    line-height: 1.5;
}

.dark-theme .form-control {
    background-color: rgba(30, 30, 30, 0.8);
    border-color: #444;
    color: #eee;
}

.form-control:focus {
    border-color: var(--primary-color, #3a7ca5);
    box-shadow: 0 0 0 3px rgba(58, 124, 165, 0.25);
    outline: none;
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: var(--placeholder-color, #aaa);
    opacity: 0.7;
}

.dark-theme .form-control::placeholder {
    color: #777;
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: var(--text-muted, #777);
    font-size: 0.85rem;
    transition: opacity 0.2s;
}

.form-group:hover small {
    opacity: 1;
}

/* Enhanced Tags Selection */
.tags-selection {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    min-height: 48px;
    padding: 8px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.02);
    transition: background-color 0.2s;
    border: 1px solid var(--border-color, #ddd);
}

.dark-theme .tags-selection {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: #444;
}

.tags-selection:focus-within {
    background-color: rgba(58, 124, 165, 0.05);
    border-color: var(--primary-color, #3a7ca5);
}

.tag-item {
    display: inline-flex;
    align-items: center;
    background-color: var(--tag-bg, #f0f0f0);
    padding: 8px 14px;
    border-radius: 20px;
    transition: all 0.2s;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    height: 32px;
}

.dark-theme .tag-item {
    background-color: rgba(50, 50, 50, 0.8);
}

.tag-item:hover {
    background-color: var(--tag-bg-hover, #e0e0e0);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.dark-theme .tag-item:hover {
    background-color: rgba(70, 70, 70, 0.9);
}

.tag-checkbox-input {
    position: absolute;
    opacity: 0;
}

.tag-item span {
    font-size: 0.9rem;
    font-weight: 500;
    margin-right: 8px;
    line-height: 1;
}

.tag-remove-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    transition: all 0.2s;
}

.tag-remove-btn:hover {
    background-color: rgba(255, 0, 0, 0.1);
    color: #f44336;
    transform: scale(1.1);
}

.tag-add {
    background-color: rgba(76, 175, 80, 0.15);
    padding: 8px;
    border: 2px dashed rgba(76, 175, 80, 0.3);
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tag-add button {
    background: none;
    border: none;
    color: #4CAF50;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    transition: transform 0.2s;
    padding: 0;
}

.tag-add button:hover {
    transform: scale(1.2);
}

/* Image Upload Styling with Drag & Drop */
.img-upload-container {
    position: relative;
    display: inline-block;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px dashed rgba(0, 0, 0, 0.1);
}

.dark-theme .img-upload-container {
    border-color: rgba(255, 255, 255, 0.1);
}

.img-upload-container.drag-over {
    border-color: var(--primary-color);
    background-color: rgba(58, 124, 165, 0.05);
    transform: scale(1.01);
}

.img-upload-container img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.modal-header .img-upload-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 20px;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.promote-container {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 10px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.img-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.img-upload-container:hover .img-upload-overlay {
    opacity: 1;
}

.img-upload-container:hover img {
    filter: brightness(0.9);
    transform: scale(1.03);
}

.img-upload-btn {
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    font-size: 1rem;
}

.img-upload-btn:hover {
    background-color: #fff;
    transform: scale(1.1);
}

.img-upload-input {
    position: absolute;
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

/* Time Input Special Styling */
.time-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.time-input-container .form-control {
    padding-left: 36px; /* Space for the icon */
}

.time-input-container::before {
    content: "\f017"; /* Clock icon from Font Awesome */
    font-family: "Font Awesome 5 Free";
    font-weight: 400;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    font-size: 16px;
    z-index: 2;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .modal-header .img-upload-container {
        width: 50px;
        height: 50px;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .form-control {
        height: 44px;
        padding: 10px;
    }
    
    .img-upload-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .gallery-images {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .gallery-img-item, .gallery-img-add {
        height: 120px;
    }
    
    .modal-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .modal-buttons .btn {
        max-width: 100%;
        width: 100%;
        padding: 12px;
    }
    
    .promote-container {
        height: 200px;
    }
    
    .edit-form-section {
        padding: 20px;
    }
    
    .tags-selection {
        padding: 6px;
        min-height: 42px;
    }
}

@media (max-width: 480px) {
    .modal-header .img-upload-container {
        width: 40px;
        height: 40px;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .form-control {
        height: 40px;
        padding: 8px 10px;
        font-size: 0.9rem;
    }
    
    .time-input-container .form-control {
        padding-left: 30px;
    }
    
    .time-input-container::before {
        left: 10px;
        font-size: 14px;
    }
    
    .img-upload-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .gallery-images {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .gallery-img-item, .gallery-img-add {
        height: 100px;
    }
    
    .gallery-img-remove {
        width: 30px;
        height: 30px;
    }
    
    .gallery-add-btn {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .promote-container {
        height: 160px;
    }
    
    .edit-form-section {
        padding: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        margin-bottom: 6px;
        font-size: 0.95rem;
    }
    
    .form-group small {
        font-size: 0.8rem;
    }
    
    .modal-buttons .btn {
        padding: 10px;
        font-size: 0.95rem;
    }
    
    .tag-item {
        padding: 6px 10px;
        height: 28px;
    }
    
    .tag-item span {
        font-size: 0.8rem;
    }
    
    .tag-remove-btn {
        width: 18px;
        height: 18px;
    }
    
    .inline-tag-form {
        padding: 8px 10px;
    }
    
    .inline-tag-form input {
        font-size: 0.9rem;
        padding: 6px 8px;
    }
    
    .tag-form-buttons button {
        width: 26px;
        height: 26px;
    }
}

/* Toast notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 320px;
}

.toast {
    background-color: white;
    color: #333;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
    position: relative;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.toast-info::before {
    background-color: #3498db;
}

.toast-success::before {
    background-color: #2ecc71;
}

.toast-warning::before {
    background-color: #f39c12;
}

.toast-error::before {
    background-color: #e74c3c;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-content i {
    font-size: 1.2rem;
}

.toast-info i {
    color: #3498db;
}

.toast-success i {
    color: #2ecc71;
}

.toast-warning i {
    color: #f39c12;
}

.toast-error i {
    color: #e74c3c;
}

.toast-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #333;
}

.toast-visible {
    transform: translateX(0);
    opacity: 1;
}

.toast-hiding {
    transform: translateX(120%);
    opacity: 0;
}

.dark-theme .toast {
    background-color: #333;
    color: #eee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dark-theme .toast-close {
    color: #aaa;
}

.dark-theme .toast-close:hover {
    color: #fff;
}

/* Tag animations */
.tag-new {
    animation: tagNew 0.6s ease;
}

@keyframes tagNew {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

.tag-removing {
    animation: tagRemoving 0.3s ease forwards;
}

@keyframes tagRemoving {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(0.8);
        opacity: 0;
    }
}

.tag-exists {
    animation: tagExists 1s ease;
}

@keyframes tagExists {
    0% {
        transform: scale(1);
        background-color: var(--tag-bg, #f0f0f0);
    }
    30% {
        transform: scale(1.1);
        background-color: rgba(244, 67, 54, 0.2);
    }
    60% {
        transform: scale(1);
        background-color: rgba(244, 67, 54, 0.2);
    }
    100% {
        transform: scale(1);
        background-color: var(--tag-bg, #f0f0f0);
    }
}

.dark-theme .tag-exists {
    animation: tagExistsDark 1s ease;
}

@keyframes tagExistsDark {
    0% {
        transform: scale(1);
        background-color: rgba(50, 50, 50, 0.8);
    }
    30% {
        transform: scale(1.1);
        background-color: rgba(244, 67, 54, 0.3);
    }
    60% {
        transform: scale(1);
        background-color: rgba(244, 67, 54, 0.3);
    }
    100% {
        transform: scale(1);
        background-color: rgba(50, 50, 50, 0.8);
    }
}

/* Image preview animation */
.preview-animation {
    animation: previewAnimation 0.5s ease;
}

@keyframes previewAnimation {
    0% {
        filter: brightness(1.5) blur(5px);
    }
    100% {
        filter: brightness(1) blur(0);
    }
}

/* Fade animations */
.fade-in {
    animation: fadeIn 0.4s ease;
}

.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.9);
    }
}

/* Responsive toast styles */
@media (max-width: 768px) {
    .toast-container {
        top: auto;
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
    }
    
    .toast {
        width: 100%;
    }
}

/* Upload progress styles */
.upload-progress-container {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px 20px;
    z-index: 1010;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: slideUpProgress 0.3s ease;
}

.dark-theme .upload-progress-container {
    background-color: rgba(30, 30, 30, 0.95);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

@keyframes slideUpProgress {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.upload-progress-bar {
    height: 6px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.dark-theme .upload-progress-bar {
    background-color: rgba(255, 255, 255, 0.1);
}

.upload-progress-fill {
    height: 100%;
    background-color: var(--primary-color, #3a7ca5);
    width: 0;
    transition: width 0.3s ease;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.upload-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(100%);
    }
}

.upload-progress-text {
    font-size: 0.9rem;
    color: var(--text-color, #333);
    text-align: center;
}

.dark-theme .upload-progress-text {
    color: #eee;
}

/* Gallery Editor Styling with Grid Layout */
.gallery-editor-container {
    margin-top: 15px;
}

.gallery-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.gallery-img-item {
    position: relative;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
    transform-origin: center;
}

.gallery-img-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    z-index: 5;
}

.gallery-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s;
}

.gallery-img-actions {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-img-item:hover .gallery-img-actions {
    opacity: 1;
}

.gallery-img-item:hover img {
    transform: scale(1.05);
}

.gallery-img-remove {
    background-color: rgba(244, 67, 54, 0.9);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.gallery-img-remove:hover {
    background-color: #f44336;
    transform: scale(1.1) rotate(90deg);
}

.gallery-img-add {
    height: 150px;
    border: 2px dashed #ccc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    background-color: rgba(0, 0, 0, 0.02);
}

.gallery-img-add:hover {
    border-color: var(--primary-color);
    background-color: rgba(58, 124, 165, 0.05);
    transform: translateY(-3px);
}

.gallery-add-btn {
    background-color: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.gallery-add-btn:hover {
    background-color: rgba(76, 175, 80, 0.3);
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.dark-theme .gallery-img-add {
    border-color: #555;
    background-color: rgba(255, 255, 255, 0.03);
}

.dark-theme .gallery-add-btn {
    background-color: rgba(76, 175, 80, 0.15);
    color: #81C784;
}

/* Modern buttons styling */
.btn {
    position: relative;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 13px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    text-transform: none;
    outline: none;
}

.btn i {
    font-size: 16px; 
    transition: transform 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
    z-index: 1;
}

.btn:hover::before {
    transform: translateX(0);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12), 0 2px 5px rgba(0, 0, 0, 0.08);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn:hover i {
    transform: scale(1.2);
}

.btn * {
    position: relative;
    z-index: 2;
}

/* Save button specific styling */
.save-btn {
    background: linear-gradient(135deg, #48BB78 0%, #38A169 100%);
    color: white;
}

.save-btn:hover {
    background: linear-gradient(135deg, #38A169 0%, #2F855A 100%);
}

.save-btn:focus {
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.4);
}

/* Cancel button specific styling */
.cancel-btn {
    background: linear-gradient(135deg, #F56565 0%, #E53E3E 100%);
    color: white;
}

.cancel-btn:hover {
    background: linear-gradient(135deg, #E53E3E 0%, #C53030 100%);
}
.cancel-btn:focus {
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.4);
}

/* Edit button specific styling */
.edit-shop-modal-btn {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
}

.edit-shop-modal-btn:hover {
    background: linear-gradient(135deg, #3182ce 0%, #2b6cb0 100%);
}

.edit-shop-modal-btn:focus {
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.4);
}

/* Modal buttons container styling */
.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.modal-buttons .btn {
    flex: 1;
    max-width: 220px;
    text-align: center;
    padding: 14px 24px;
    font-weight: 600;
}

/* Ripple effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    width: 100px;
    height: 100px;
    margin-top: -50px;
    margin-left: -50px;
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    from {
        transform: scale(0);
        opacity: 1;
    }
    to {
        transform: scale(3);
        opacity: 0;
    }
}

.dark-theme .ripple-effect {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Add confirmation animation for save button */
@keyframes saveConfirm {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.save-confirm {
    animation: saveConfirm 0.5s ease;
}

/* Inline tag form with better styling */
.inline-tag-form {
    display: flex;
    width: 100%;
    margin: 10px 0;
    background-color: var(--card-background, #f8f8f8);
    border-radius: 20px;
    padding: 10px 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    align-items: center;
    position: relative;
    animation: fadeIn 0.3s ease;
    border: 1px solid var(--primary-color, #3a7ca5);
}

.dark-theme .inline-tag-form {
    background-color: rgba(50, 50, 50, 0.8);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.inline-tag-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 12px;
    font-size: 0.95rem;
    color: var(--text-color, #333);
    outline: none;
}

.dark-theme .inline-tag-form input {
    color: #eee;
}

.tag-form-buttons {
    display: flex;
    gap: 8px;
}

.tag-form-buttons button {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.tag-cancel-btn {
    color: #f44336;
}

.tag-confirm-btn {
    color: #4CAF50;
}

.tag-form-buttons button:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
}

.dark-theme .tag-form-buttons button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Error and validation styling */
.form-control.error {
    border-color: #f44336;
    box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.25);
}

.error-message {
    color: #f44336;
        font-size: 0.85rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    animation: fadeIn 0.3s ease;
}

.error-message i {
    font-size: 0.9rem;
}

/* Success indicator */
.form-group.success label {
    color: #4CAF50;
}

.form-control.success {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.15);
}

/* File drop zone indicators */
.drop-zone {
    position: relative;
}

.drop-zone-indicator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(58, 124, 165, 0.1);
    border: 3px dashed var(--primary-color, #3a7ca5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 10px;
}

.drop-zone.active .drop-zone-indicator {
    opacity: 1;
}

.drop-zone-text {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-color, #3a7ca5);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.dark-theme .drop-zone-text {
    background-color: rgba(50, 50, 50, 0.9);
    color: #81C784;
}

/* Input fields with icons */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon .form-control {
    padding-left: 36px; /* Space for the icon */
}

.input-with-icon::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 400;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    font-size: 16px;
    z-index: 2;
}

.input-with-icon.icon-discord::before {
    content: "\f392"; /* Discord icon */
    font-family: "Font Awesome 5 Brands";
    color: #5865F2;
}

.input-with-icon.icon-vrchat::before {
    content: "\f1b3"; /* Building icon for VRChat */
    font-weight: 900;
    color: #3e98c7;
}

.input-with-icon.icon-clock::before {
    content: "\f017"; /* Clock icon */
    color: #777;
}

.input-with-icon.icon-tag::before {
    content: "\f02b"; /* Tag icon */
    font-weight: 900;
    color: #777;
}

.input-with-icon.icon-shop::before {
    content: "\f54f"; /* Store icon */
    font-weight: 900;
    color: #777;
}

.input-with-icon.icon-description::before {
    content: "\f15c"; /* Note icon */
    font-weight: 400;
    color: #777;
}
