/* Frontend Styles */
.dh-bulk-images-sharing {
    margin: 20px 0;
    clear: both;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

/* Motors Theme Specific Styles */
.dh-motors-sharing {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 15px 0;
}

.dh-grid-view {
    text-align: center;
    padding: 10px;
    background: transparent;
    box-shadow: none;
}

.dh-grid-view .dh-sharing-buttons {
    justify-content: center;
    margin-top: 10px;
}

.dh-grid-view .dh-share-button {
    padding: 6px 8px;
    font-size: 12px;
    min-width: auto;
    margin: 2px;
}

.dh-grid-view .dh-share-button i {
    font-size: 14px;
}

.dh-grid-view .dh-share-button span {
    display: none;
}

/* Image Preview */
.dh-image-preview {
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.dh-image-preview h3,
.dh-image-preview h4 {
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.dh-image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.dh-image-item {
    position: relative;
    width: 100px;
    height: 100px;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
}

.dh-image-item:hover {
    border-color: #0073aa;
    transform: scale(1.05);
}

.dh-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dh-image-checkbox {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    z-index: 2;
}

.dh-select-all {
    margin-top: 10px;
    padding: 10px;
    background: #e9ecef;
    border-radius: 4px;
}

.dh-select-all label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #495057;
}

.dh-select-all input[type="checkbox"] {
    margin-right: 8px;
}

/* Sharing Buttons */
.dh-sharing-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.dh-share-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 120px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dh-share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dh-share-button:active {
    transform: translateY(0);
}

.dh-share-button i {
    font-size: 16px;
}

/* Individual Button Styles */
.dh-share-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
}

.dh-share-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E, #25D366);
}

.dh-share-email {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
}

.dh-share-email:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
}

.dh-share-download {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: #fff;
}

.dh-share-download:hover {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.dh-share-copy {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: #fff;
}

.dh-share-copy:hover {
    background: linear-gradient(135deg, #7f8c8d, #95a5a6);
}

/* Inventory Sharing */
.dh-inventory-sharing-container {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dh-inventory-sharing-container h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.dh-inventory-sharing-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dh-inventory-share {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: #fff;
}

.dh-inventory-share:hover {
    background: linear-gradient(135deg, #005a87, #0073aa);
}

/* Button Style Variations */
.dh-share-button.square {
    border-radius: 4px;
}

.dh-share-button.circle {
    border-radius: 50px;
    width: 45px;
    height: 45px;
    padding: 0;
}

.dh-share-button.circle span {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .dh-image-gallery {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    
    .dh-image-item {
        width: 80px;
        height: 80px;
    }
    
    .dh-sharing-buttons {
        justify-content: center;
    }
    
    .dh-share-button {
        padding: 10px 15px;
        font-size: 13px;
        min-width: 100px;
    }
    
    .dh-grid-view .dh-share-button {
        padding: 5px 7px;
        font-size: 11px;
    }
    
    .dh-inventory-sharing-controls {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .dh-sharing-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .dh-share-button {
        width: 100%;
        justify-content: center;
    }
    
    .dh-image-gallery {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }
    
    .dh-image-item {
        width: 60px;
        height: 60px;
    }
}

/* Copy Message */
.dh-copy-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #2ecc71;
    color: #fff;
    padding: 12px 20px;
    border-radius: 4px;
    z-index: 9999;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Email Modal */
.dh-email-modal {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
}

.dh-email-modal input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

.dh-email-modal input[type="email"]:focus {
    outline: none;
    border-color: #0073aa;
}

.dh-email-modal .button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dh-email-modal .button-primary {
    background: #0073aa;
    color: #fff;
}

.dh-email-modal .button-primary:hover {
    background: #005a87;
}

.dh-email-modal .button:not(.button-primary) {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.dh-email-modal .button:not(.button-primary):hover {
    background: #e9ecef;
}