/**
 * EED Compatibility Tools CSS
 * Device-to-Product Matching, Compatibility Checking, Device Finder
 */

/* Main Container */
.eed-compatibility-tools-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    position: relative;
}

/* Tab Navigation */
.eed-tools-tabs {
    display: flex;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0;
    margin: 0;
    border-bottom: none;
}

.eed-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 20px 16px;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.eed-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.eed-tab-btn.active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.eed-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #ffffff;
}


.tab-text {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tab Content */
.eed-tools-content {
    position: relative;
    min-height: 500px;
}

.eed-tab-content {
    display: none;
    padding: 40px;
    animation: fadeIn 0.3s ease-in-out;
}

.eed-tab-content.active {
    display: block;
}

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

/* Tool Headers */
.eed-tool-header {
    text-align: center;
    margin-bottom: 40px;
}

.eed-tool-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 12px 0;
}

.eed-tool-header p {
    font-size: 16px;
    color: #7f8c8d;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Form Styles */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-end;
}

.form-group {
    flex: 1;
    position: relative;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 8px;
    font-size: 14px;
}

.eed-form-input {
    width: 100%;
    padding: 18px 22px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #2c3e50;
}

.eed-form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow:
        0 0 0 3px rgba(102, 126, 234, 0.1),
        0 4px 12px rgba(102, 126, 234, 0.08);
    background: #ffffff;
    transform: translateY(-1px);
}

.eed-form-input:hover {
    border-color: #b3c1f5;
    transform: translateY(-1px);
}

.eed-form-input::placeholder {
    color: #95a5c6;
    font-weight: 400;
    font-style: italic;
}

/* Button Styles */
.eed-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.eed-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.eed-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.eed-btn-secondary {
    background: #ffffff;
    color: #667eea;
    border: 2px solid #667eea;
}

.eed-btn-secondary:hover {
    background: #667eea;
    color: #ffffff;
}

.eed-btn-success {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    color: #ffffff;
}

.eed-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(86, 171, 47, 0.3);
}


/* Device Suggestions */
.device-suggestions,
.compatibility-device-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.device-suggestion {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
}

.device-suggestion:hover {
    background: #f8f9fa;
}

.device-suggestion:last-child {
    border-bottom: none;
}

/* Results Sections */
.eed-device-to-products-results {
    margin-top: 40px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f1f3f4;
}

.results-header h4 {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.results-count {
    background: #667eea;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.product-card {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.product-image {
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.product-image .product-placeholder {
    font-size: 48px;
    color: #bdc3c7;
}

.product-details {
    padding: 20px;
}

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #e74c3c;
    margin: 8px 0 16px 0;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-actions .eed-btn {
    flex: 1;
    justify-content: center;
    padding: 12px 16px;
    font-size: 13px;
}

/* Compatibility Check Results */
.eed-compatibility-result {
    margin-top: 40px;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
}

.compatibility-status {
    margin-bottom: 20px;
}

.compatibility-status.compatible {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    color: #ffffff;
}

.compatibility-status.not-compatible {
    background: linear-gradient(135deg, #e74c3c 0%, #f39c12 100%);
    color: #ffffff;
}

.compatibility-status h4 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.compatibility-status p {
    font-size: 16px;
    margin: 0;
    opacity: 0.9;
}

.compatibility-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.compatibility-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

.compatibility-item h5 {
    font-size: 14px;
    font-weight: 600;
    color: #7f8c8d;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compatibility-item p {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

/* Device Finder Styles */
.eed-device-finder-wizard {
    max-width: 800px;
    margin: 0 auto;
}

.finder-step {
    display: none;
    animation: slideIn 0.3s ease-in-out;
}

.finder-step.active {
    display: block;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f3f4;
}

.step-header h4 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.step-progress {
    background: #667eea;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.current-step {
    font-weight: 700;
}

/* Manufacturer Search */
.manufacturer-search {
    margin-bottom: 30px;
}

.search-controls {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.search-controls .eed-form-input {
    flex: 1;
    margin-bottom: 0;
}

.search-controls .eed-btn {
    flex-shrink: 0;
    padding: 16px 20px;
}

.search-info {
    font-size: 14px;
    color: #7f8c8d;
    font-style: italic;
}

.no-manufacturers {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
}

/* Manufacturer Dropdown Selector - Reset and Enhanced Styles */
.eed-compatibility-tools-container .manufacturer-selector {
    margin-bottom: 30px;
}

/* Force new dropdown styles with higher specificity */
.eed-compatibility-tools-container .manufacturer-dropdown-container,
.eed-device-finder-wizard .manufacturer-dropdown-container {
    position: relative !important;
}

.manufacturer-dropdown-container {
    position: relative;
}

.manufacturer-dropdown-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.eed-compatibility-tools-container .dropdown-wrapper,
.eed-device-finder-wizard .dropdown-wrapper {
    position: relative !important;
}

.eed-compatibility-tools-container .manufacturer-search-input,
.eed-device-finder-wizard .manufacturer-search-input,
.manufacturer-search-input {
    width: 100% !important;
    padding-right: 50px !important;
    cursor: pointer !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 2px solid transparent !important;
    background-clip: padding-box !important;
    position: relative !important;
    font-weight: 500 !important;
}

.manufacturer-search-input:focus {
    background: #ffffff;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.eed-compatibility-tools-container .dropdown-arrow,
.eed-device-finder-wizard .dropdown-arrow,
.dropdown-arrow {
    position: absolute !important;
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #667eea !important;
    pointer-events: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    background: rgba(102, 126, 234, 0.1) !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.dropdown-wrapper.active .dropdown-arrow {
    transform: translateY(-50%) rotate(180deg);
    background: rgba(102, 126, 234, 0.2);
    color: #5a67d8;
}

.eed-compatibility-tools-container .manufacturer-dropdown,
.eed-device-finder-wizard .manufacturer-dropdown,
.manufacturer-dropdown {
    position: absolute !important;
    top: calc(100% + 4px) !important;
    left: 0 !important;
    right: 0 !important;
    background: #ffffff !important;
    border: 2px solid #667eea !important;
    border-radius: 16px !important;
    box-shadow:
        0 10px 40px rgba(102, 126, 234, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(102, 126, 234, 0.05) !important;
    z-index: 1000 !important;
    max-height: 380px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    transform: translateY(-10px) scale(0.95) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.manufacturer-dropdown[style*="block"] {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.dropdown-header {
    padding: 16px 24px 12px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(164, 176, 246, 0.08) 100%);
    border-bottom: 1px solid rgba(102, 126, 234, 0.12);
    border-radius: 14px 14px 0 0;
    position: relative;
}

.dropdown-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 14px 14px 0 0;
}

.dropdown-status {
    font-size: 12px;
    font-weight: 700;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.dropdown-status::before {
    content: "★";
    color: #f39c12;
    font-size: 16px;
    filter: drop-shadow(0 2px 4px rgba(243, 156, 18, 0.3));
}

.manufacturer-options {
    max-height: 280px;
    overflow-y: auto;
    padding: 8px 0;
}

.manufacturer-options::-webkit-scrollbar {
    width: 6px;
}

.manufacturer-options::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 3px;
}

.manufacturer-options::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 3px;
}

.manufacturer-options::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46a3 100%);
}

.manufacturer-option {
    padding: 16px 24px;
    cursor: pointer;
    border-bottom: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    margin: 2px 8px;
    border-radius: 10px;
}

.manufacturer-option:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(164, 176, 246, 0.12) 100%);
    transform: translateX(6px) scale(1.02);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.manufacturer-option:last-child {
    border-bottom: none;
}

.manufacturer-option.popular {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(164, 176, 246, 0.1) 100%);
    font-weight: 700;
    color: #2c3e50;
    border: 1px solid rgba(243, 156, 18, 0.2);
    position: relative;
}

.manufacturer-option.popular::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    border-radius: 2px;
}

.manufacturer-option.popular:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.16) 0%, rgba(164, 176, 246, 0.16) 100%);
    border-color: rgba(243, 156, 18, 0.3);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.2), 0 4px 12px rgba(102, 126, 234, 0.15);
}

.manufacturer-option.popular::after {
    content: "★";
    color: #f39c12;
    font-size: 16px;
    font-weight: bold;
    filter: drop-shadow(0 2px 4px rgba(243, 156, 18, 0.3));
    animation: twinkle 2s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.dropdown-footer {
    padding: 12px 24px 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(164, 176, 246, 0.03) 100%);
    border-top: 1px solid rgba(102, 126, 234, 0.08);
    border-radius: 0 0 14px 14px;
    text-align: center;
    position: relative;
}

.dropdown-footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-radius: 0 0 14px 14px;
}

.dropdown-footer small {
    color: #667eea;
    font-size: 11px;
    font-weight: 600;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0.8;
}

.dropdown-footer small::before {
    content: "⚡";
    font-size: 12px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.selected-manufacturer {
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.12) 0%, rgba(164, 176, 246, 0.12) 100%);
    border: 2px solid #667eea;
    border-radius: 16px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.selected-manufacturer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.selection-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.selected-label {
    font-size: 13px;
    color: #667eea;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.selected-label::before {
    content: "✓";
    background: #667eea;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

.selected-name {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.selected-name::after {
    content: "★";
    color: #f39c12;
    font-size: 16px;
    filter: drop-shadow(0 2px 4px rgba(243, 156, 18, 0.3));
}

.change-manufacturer-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.change-manufacturer-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46a3 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Legacy grid support (hidden by default) */
.manufacturer-grid {
    display: none;
}

.manufacturer-btn {
    background: #ffffff;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    justify-content: center;
}

.manufacturer-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.manufacturer-btn.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.manufacturer-btn span {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

/* Device Type Grid */
.device-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.loading-device-types {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loading-device-types .loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-device-types p {
    margin: 0;
    color: #7f8c8d;
    font-style: italic;
}

.device-type-btn {
    background: #ffffff;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.device-type-btn:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.device-type-btn.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.device-type-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.device-type-count {
    font-size: 14px;
    color: #7f8c8d;
}

/* Model Search */
.model-search {
    margin-bottom: 30px;
}

.model-search-input {
    margin-bottom: 20px;
}

.model-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.model-result-item {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.model-result-item:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.model-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.model-details {
    font-size: 14px;
    color: #7f8c8d;
}

/* Step Navigation */
.step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e8ed;
}

/* Finder Device Result */
.finder-device-result {
    text-align: center;
}

.device-card {
    background: #ffffff;
    border: 2px solid #667eea;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    display: inline-block;
    min-width: 300px;
}

.device-info h5 {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.device-info p {
    font-size: 16px;
    color: #7f8c8d;
    margin: 4px 0;
}

.device-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
}

/* Loading Overlay */
.eed-tools-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 16px;
    color: #7f8c8d;
    margin: 0;
}

/* Messages */
.eed-tools-messages {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
}

.eed-message {
    background: #ffffff;
    border-left: 4px solid #667eea;
    border-radius: 4px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: slideInRight 0.3s ease-in-out;
    max-width: 300px;
}

.eed-message.error {
    border-left-color: #e74c3c;
}

.eed-message.success {
    border-left-color: #27ae60;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .eed-compatibility-tools-container {
        margin: 0 16px;
        border-radius: 8px;
    }

    .eed-tab-content {
        padding: 24px 20px;
    }

    .eed-tools-tabs {
        flex-direction: row;
        overflow-x: auto;
    }

    .eed-tab-btn {
        min-width: 120px;
        padding: 16px 12px;
    }

    .tab-text {
        font-size: 11px;
    }

    .form-row {
        flex-direction: column;
        gap: 16px;
    }

    .manufacturer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .manufacturer-btn {
        padding: 20px 12px;
    }

    .manufacturer-logo {
        font-size: 28px;
        height: 40px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
    }

    .compatibility-details {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .device-actions {
        flex-direction: column;
    }

    .step-navigation {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .eed-tab-content {
        padding: 20px 16px;
    }

    .eed-tool-header h3 {
        font-size: 24px;
    }

    .eed-tool-header p {
        font-size: 14px;
    }

    .manufacturer-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .model-results {
        grid-template-columns: 1fr;
    }

    .device-type-grid {
        grid-template-columns: 1fr;
    }
}