.sdc-comparison-wrapper {
    max-width: 100%;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.sdc-drink-selector {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 25px;
}

.sdc-drink-selector h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.sdc-checkbox-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.sdc-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px;
    transition: background-color 0.2s;
    border-radius: 3px;
}

.sdc-checkbox-label:hover {
    background-color: #e8e8e8;
}

.sdc-checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    cursor: pointer;
}

.sdc-select-all,
.sdc-deselect-all {
    background: #0073aa;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 3px;
    cursor: pointer;
    margin-right: 10px;
    font-size: 14px;
    transition: background-color 0.2s;
}

.sdc-select-all:hover,
.sdc-deselect-all:hover {
    background: #005a87;
}

.sdc-deselect-all {
    background: #666;
}

.sdc-deselect-all:hover {
    background: #444;
}

.sdc-table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.sdc-comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 14px;
}

.sdc-comparison-table thead {
    background: #333;
    color: white;
}

.sdc-comparison-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #555;
    position: relative;
}

.sdc-comparison-table .sdc-metric-header {
    background: #222;
    position: sticky;
    left: 0;
    z-index: 10;
    min-width: 180px;
}

.sdc-drink-header {
    cursor: move;
    user-select: none;
    min-width: 150px;
    transition: background-color 0.2s;
}

.sdc-drink-header:hover {
    background: #444;
}

.sdc-drag-handle {
    display: inline-block;
    margin-right: 8px;
    opacity: 0.7;
    font-size: 12px;
}

.sdc-drink-header.sdc-dragging {
    opacity: 0.5;
    background: #555;
}

.sdc-drink-header.sdc-drag-over {
    background: #0073aa;
}

.sdc-comparison-table tbody tr {
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s;
}

.sdc-comparison-table tbody tr:hover {
    background: #f5f5f5;
}

.sdc-comparison-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.sdc-comparison-table tbody tr:nth-child(even):hover {
    background: #f0f0f0;
}

.sdc-comparison-table td {
    padding: 12px 15px;
    border-right: 1px solid #e0e0e0;
    vertical-align: middle;
}

.sdc-comparison-table td:last-child {
    border-right: none;
}

.sdc-metric-label {
    font-weight: 600;
    background: #f0f0f0;
    position: sticky;
    left: 0;
    z-index: 5;
    min-width: 180px;
    color: #333;
}

.sdc-highlight-row td {
    font-weight: 600;
}

.sdc-best-value {
    background-color: #4CAF50 !important;
    color: white !important;
    font-weight: bold !important;
}

.sdc-worst-value {
    background-color: #f44336 !important;
    color: white !important;
    font-weight: bold !important;
}

.sdc-no-selection-message {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border: 1px solid #ffeaa7;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
}

.sdc-limit-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 15px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

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

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .sdc-checkbox-container {
        grid-template-columns: 1fr;
    }
    
    .sdc-comparison-table {
        font-size: 12px;
    }
    
    .sdc-comparison-table th,
    .sdc-comparison-table td {
        padding: 8px 10px;
    }
    
    .sdc-drink-header {
        min-width: 120px;
    }
}

/* Print styles */
@media print {
    .sdc-drink-selector {
        display: none;
    }
    
    .sdc-comparison-table {
        font-size: 10px;
    }
    
    .sdc-comparison-table th,
    .sdc-comparison-table td {
        padding: 5px;
    }
}
