/**
 * WooCommerce Custom Toolkit Styles
 */

/* Unit Selector */
.wc-toolkit-unit-selector {
    margin-bottom: 20px;
    padding: 12px 15px;
    background: #f8f9fa;
    border: 1px solid #e3e4e6;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.3s ease;
}

.wc-toolkit-unit-selector:hover {
    background: #f0f1f3;
    border-color: #d1d3d6;
}

.wc-toolkit-unit-selector label {
    font-weight: 600;
    margin-right: 10px;
    color: #333;
    font-size: 14px;
}

.wc-unit-system-select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    background: white;
    transition: all 0.2s ease;
    min-width: 150px;
}

.wc-unit-system-select:hover {
    border-color: #999;
}

.wc-unit-system-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.wc-unit-system-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Converted Units */
.wc-toolkit-unit-converted {
    position: relative;
    display: inline-block;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.wc-toolkit-unit-converted.updating {
    opacity: 0.5;
}

/* Notifications */
.wc-toolkit-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 12px 20px;
    background: #333;
    color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    font-size: 14px;
    animation: slideInRight 0.3s ease;
}

.wc-toolkit-notification-success {
    background: #46b450;
}

.wc-toolkit-notification-error {
    background: #dc3232;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .wc-toolkit-unit-selector {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    
    .wc-unit-system-select {
        width: 100%;
        margin-top: 8px;
    }
    
    .wc-toolkit-notification {
        left: 10px;
        right: 10px;
        top: 60px;
    }
}

