/* استایل اصلی */
.pbm-container {
    max-width: 1200px;
    margin: 20px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.pbm-title {
    color: #23282d;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

/* دکمه‌ها */
.pbm-container .button {
    transition: all 0.3s ease;
    margin: 2px;
}

.pbm-container .button-primary {
    background: #2271b1;
    border-color: #2271b1;
    color: white;
}

.pbm-container .button-primary:hover {
    background: #135e96;
    border-color: #135e96;
}

.pbm-container .button-danger {
    background: #dc3232;
    border-color: #dc3232;
    color: white;
}

.pbm-container .button-danger:hover {
    background: #a00;
    border-color: #a00;
}

/* جدول */
.pbm-table-container {
    margin-top: 20px;
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.pbm-brands-table {
    width: 100%;
    border-collapse: collapse;
}

.pbm-brands-table th {
    background-color: #f8f9fa;
    padding: 12px;
    text-align: right;
    font-weight: 600;
    color: #555;
}

.pbm-brands-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.pbm-brands-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.pbm-brands-table tr:hover {
    background-color: #f0f0f0;
}

.pbm-thumbnail {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* مودال */
.pbm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.pbm-modal.show {
    display: flex;
}

.pbm-modal-content {
    background: white;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.pbm-close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.pbm-close-modal:hover {
    color: #000;
}

/* فرم */
.pbm-form-group {
    margin-bottom: 15px;
}

.pbm-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.pbm-form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.pbm-form-control:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 1px #2271b1;
}

textarea.pbm-form-control {
    min-height: 100px;
}

/* آپلود تصویر */
#pbm-upload-image-btn {
    background: #f0f0f1;
    border: 1px dashed #8c8f94;
    color: #2c3338;
    padding: 8px 16px;
    margin-bottom: 10px;
}

#pbm-upload-image-btn:hover {
    background: #e0e0e0;
    border-color: #2c3338;
}

.pbm-thumbnail-preview {
    margin-top: 10px;
}

.pbm-thumbnail-preview img {
    max-width: 100px;
    height: auto;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: block;
}

/* دکمه‌های فرم */
.pbm-form-actions {
    margin-top: 20px;
    text-align: left;
}

/* حالت واکنش‌گرا */
@media (max-width: 782px) {
    .pbm-container {
        padding: 15px;
    }
    
    .pbm-brands-table td, 
    .pbm-brands-table th {
        padding: 8px 5px;
        font-size: 14px;
    }
    
    .pbm-container .button {
        padding: 6px 10px;
        font-size: 13px;
    }
}