/* Shared styles for partners pages (OTA, PMS, Other Connections) */
.tab-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 0;
}

.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.tab-btn:hover {
    color: #1a73e8;
    border-bottom-color: #1a73e8;
}

.tab-btn.active {
    color: #1a73e8;
    border-bottom-color: #1a73e8;
}

/* Tab Content Visibility */
.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.product-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 20px;
    text-align: center;
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.product-card img {
    width: 100%;
    height: auto;
    max-width: 180px;
    min-width: 180px;
    max-height: 100px;
    min-height: 100px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
}

.product-card h3 {
    margin: 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card h3 a {
    color: #1a73e8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-card h3 a:hover {
    color: #174ea6;
    text-decoration: underline;
}

.product-card p {
    margin: 10px 0 0 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.count-badge {
    background: #e8f0fe;
    color: #1a73e8;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 5px;
    font-weight: normal;
    display: inline-block;
}

.pms-container,
.distributors-channels-container,
.other-connections-container {
    width: 100%;
}

/* Loading Spinner */
.loading-wrapper {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.spinner {
    width: 45px;
    height: 45px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1a73e8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: #666;
    font-size: 16px;
    font-weight: 500;
}