/**
 * Strategic Samples Plugin Styles
 */

/* Frontend Sample Dropdown */
.strategic-samples-form {
    background: white;
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 0;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.strategic-samples-banner {
    background: #4CAF50;
    color: white;
    padding: 12px 20px;
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.strategic-samples-content {
    padding: 15px;
}

.strategic-samples-product {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    align-items: flex-start;
}

.strategic-samples-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #ddd;
    background: #f5f5f5;
}

.strategic-samples-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.strategic-samples-details {
    flex: 1;
    min-width: 0;
}

.strategic-samples-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.strategic-samples-form select {
    width: 100%;
    max-width: 280px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 10px;
    background: white;
}

.strategic-samples-form select:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 3px rgba(76, 175, 80, 0.3);
}

.strategic-samples-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
}

.strategic-samples-form .button {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    text-align: center;
}

.strategic-samples-form .button:hover {
    background: #c82333;
}

/* Admin Page Improvements */
.strategic-samples-admin .form-table th {
    width: 200px;
    font-weight: 600;
}

.strategic-samples-admin .sample-debug {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
    color: #856404;
}

.strategic-samples-admin .sample-debug strong {
    color: #6c5700;
}

.strategic-samples-admin .sample-tables h3 {
    background: #f1f1f1;
    padding: 10px 15px;
    margin: 20px 0 0 0;
    border-left: 4px solid #0073aa;
}

.strategic-samples-admin .widefat {
    margin-top: 0;
    border-radius: 0 0 4px 4px;
}

.strategic-samples-admin .stock-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.strategic-samples-admin .stock-form input[type="number"] {
    width: 80px;
    padding: 4px 8px;
}

.strategic-samples-admin .stock-form .button {
    padding: 4px 12px;
    font-size: 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .strategic-samples-content {
        padding: 12px;
    }
    
    .strategic-samples-product {
        gap: 10px;
    }
    
    .strategic-samples-image {
        width: 50px;
        height: 50px;
    }
    
    .strategic-samples-form select {
        max-width: 100%;
        font-size: 14px;
    }
    
    .strategic-samples-form .button {
        width: 100%;
        padding: 12px;
        font-size: 15px;
    }
}

/* Cart/Checkout Integration */
.woocommerce .strategic-samples-form {
    border-color: var(--wc-primary-color, #0073aa);
}

.woocommerce .strategic-samples-form .button {
    background: var(--wc-primary-color, #0073aa);
}

.woocommerce .strategic-samples-form .button:hover {
    background: var(--wc-primary-color-hover, #005a87);
}
