/**
 * Oto Yedek Parça - Ürün Sayfası Tab CSS
 * Frontend ve admin ortak stiller
 */

/* ============================================================
   Frontend Product Tab
   ============================================================ */
.product-compatibilities-container {
    padding: 20px 0;
}

.product-compatibilities-container h4 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.compatibilities-filters {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.compatibilities-filters .form-group {
    margin-bottom: 0;
}

.compatibilities-filters label {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 5px;
}

.compatibilities-filters select {
    font-size: 14px;
}

.compatibilities-table {
    margin-bottom: 20px;
}

.compatibilities-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.compatibilities-table td {
    vertical-align: middle;
}

.compatibilities-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Empty State */
#compatibilities-empty {
    margin-top: 20px;
}

/* Filter badges */
.compatibilities-filters select option:first-child {
    font-style: italic;
    color: #666;
}

/* ============================================================
   Admin Product Tab
   ============================================================ */
.oyp-product-compat-panel {
    padding: 15px;
}

.oyp-product-compat-panel .oyp-panel {
    border: 1px solid #dde2e6;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.oyp-product-compat-panel .panel-heading {
    padding: 12px 16px;
    background: #f5f8f9;
    border-bottom: 1px solid #dde2e6;
    font-size: 15px;
    font-weight: 600;
    border-radius: 3px 3px 0 0;
}

.oyp-product-compat-panel .panel-body {
    padding: 16px;
}

.oyp-product-compat-panel .panel-heading .badge {
    margin-left: 8px;
    background: #25b9d7;
}

.oyp-form-title {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #363a41;
}

.oyp-select-row .form-group {
    margin-bottom: 12px;
}

.oyp-select-row label {
    font-weight: 600;
    font-size: 12px;
    color: #555;
    margin-bottom: 4px;
}

.oyp-select-row select:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.oyp-btn-create-entity {
    border-color: #25b9d7 !important;
    color: #25b9d7 !important;
}

.oyp-btn-create-entity:hover {
    background: #25b9d7 !important;
    color: #fff !important;
}

.oyp-btn-create-entity.disabled,
.oyp-btn-create-entity[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.oyp-action-buttons {
    margin: 12px 0 0 0;
}

.oyp-action-buttons .btn {
    margin-right: 6px;
}

.oyp-table-title {
    margin: 20px 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #363a41;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.oyp-table thead th {
    background: #f5f8f9;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 2px solid #dde2e6;
}

.oyp-table td {
    vertical-align: middle;
}

.oyp-table tbody tr:hover {
    background: #f5fbff;
}

.oyp-compat-count {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #eee;
}

/* Inline creation forms */
.oyp-inline-form {
    margin-top: 10px;
    padding: 12px;
    background: #f0f7ff;
    border: 1px solid #bee5eb;
    border-radius: 4px;
}

.oyp-inline-form h5 {
    margin: 0 0 10px 0;
    color: #25b9d7;
    font-weight: 600;
    font-size: 13px;
}

.oyp-inline-form .btn-sm {
    margin-right: 4px;
}

.oyp-add-form.well {
    background: #fafbfc;
    border: 1px solid #e7eaed;
    border-radius: 4px;
    padding: 16px 16px 8px 16px;
    margin-bottom: 16px;
    box-shadow: none;
}

.oyp-add-form .help-block {
    font-size: 12px;
    color: #888;
    margin: 0 0 12px 0;
}

/* ============================================================
   Admin tab nav badge
   ============================================================ */
#oyp-compat-tab-nav .badge {
    background: #25b9d7;
    margin-left: 4px;
}

#oyp-compat-tab-nav.active .badge {
    background: #fff;
    color: #25b9d7;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .product-compatibilities-filters .row > div {
        margin-bottom: 10px;
    }

    .product-compatibilities-filters .row > div:last-child {
        margin-bottom: 0;
    }

    .product-compatibilities-table {
        font-size: 12px;
    }

    .product-compatibilities-table th,
    .product-compatibilities-table td {
        padding: 8px;
    }

    .oyp-select-row .col-xs-6 {
        margin-bottom: 4px;
    }
}
