/**
 * Variation Selection Styling
 */

/* Variation Selection Controls */
.variation-top-controls {
    background-color: #e3f2fd;
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    border: 3px solid #2196f3;
    box-shadow: 0 3px 15px rgba(33, 150, 243, 0.2);
}

/* This class previously was used to inject a duplicate selection box. The
   server-rendered bulk edit panel replaces it; hide any leftover elements. */
.variation-top-controls {
    display: none !important;
}

.variation-selection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.selection-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.selection-info h4 {
    font-weight: bold;
    color: #0d47a1;
    font-size: 18px;
    margin: 0;
}

.variation-selection-count {
    background-color: #bbdefb;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    color: #0d47a1;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.variation-selection-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Batch Tools Styling */
#variation-batch-tools {
    margin: 15px 0; 
    padding: 20px; 
    background-color: #e8f4ff; 
    border: 2px solid #2196f3; 
    border-radius: 8px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#variation-batch-tools h3, #variation-batch-tools h4 {
    margin-top: 0;
    color: #0d47a1;
    font-size: 18px;
    border-bottom: 1px solid #2196f3;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* Batch Tool Header */
#variation-batch-tools > div:first-of-type {
    background-color: #0d47a1;
    color: white;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

#variation-batch-tools > div:first-of-type h3 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    border-bottom: none;
    padding-bottom: 0;
}

#variation-batch-tools > div:first-of-type p {
    margin: 5px 0 0;
    opacity: 0.9;
}

/* Selected Variation Styling */
.variation-item.selected {
    border: 3px solid #2196f3 !important;
    background-color: #e3f2fd !important;
    box-shadow: 0 3px 10px rgba(33, 150, 243, 0.25) !important;
    transform: translateY(-2px);
    transition: all 0.2s ease-in-out;
}

.variation-item {
    position: relative;
    transition: all 0.2s ease-in-out;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    border-radius: 5px;
}

.variation-item.selected:before {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #2196f3;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 10;
}

.variation-select {
    display: flex;
    align-items: center;
    margin-right: 10px;
    min-width: 24px;
}

.variation-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    border: 2px solid #4a90e2;
    border-radius: 3px;
    transform: scale(1.2);
}

/* Input Groups and Buttons */
.button-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.input-with-button {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Custom Colors for Specific Buttons */
#enable-selected-stock {
    background-color: #2196f3;
    color: white;
    font-weight: bold;
}

#disable-selected-stock {
    background-color: #f44336;
    color: white;
    font-weight: bold;
}

#instock-selected {
    background-color: #4caf50;
    color: white;
    font-weight: bold;
}

#outofstock-selected {
    background-color: #f44336;
    color: white;
    font-weight: bold;
}

/* Form Groups in Batch Tools */
#variation-batch-tools .form-group {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #d1e3fa;
}

#variation-batch-tools label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #0d47a1;
    font-size: 16px;
}

#variation-batch-tools input[type="text"] {
    width: 200px;
    padding: 8px;
    border: 1px solid #bbb;
    border-radius: 4px;
}