.company-panel-pro {
    font-family: Tahoma, Arial, sans-serif;
    max-width: 1200px;
    margin: 20px auto;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.company-panel-pro h2 {
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.company-panel-pro > p {
    text-align: center;
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.company-panel-tabs {
    display: flex;
    margin: 25px 0;
    border-bottom: 2px solid #ddd;
    justify-content: center;
    flex-wrap: wrap;
}

.tab-button {
    padding: 12px 25px;
    background: #ecf0f1;
    border: none;
    border-radius: 6px 6px 0 0;
    margin: 0 8px 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
    color: #7f8c8d;
    font-size: 15px;
}

.tab-button.active, .tab-button:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.tab-pane {
    display: none;
    padding: 25px;
    background: white;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    min-height: 400px;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.affiliates-list {
    overflow-x: auto;
}

.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.affiliates-list table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    min-width: 600px;
}

.affiliates-list th, .affiliates-list td {
    padding: 12px 15px;
    text-align: right;
    border: 1px solid #e0e0e0;
}

.affiliates-list th {
    background: #3498db;
    color: white;
    font-weight: bold;
}

.affiliates-list tr:nth-child(even) {
    background: #f7f9fc;
}

.affiliates-list tr:hover {
    background: #ecf0f1;
}

.change-password-btn, .change-price-btn {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 13px;
}

.change-password-btn:hover, .change-price-btn:hover {
    background: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.company-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.3s;
}

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

.close {
    color: #aaa;
    position: absolute;
    left: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #e74c3c;
}

.form-group {
    margin-bottom: 20px;
}

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

.form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    transition: border 0.3s;
}

.form-group input:focus, .form-group select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

.submit-btn {
    background: #3498db;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.update-prices-btn {
    margin-top: 20px;
    max-width: 200px;
}

.wallet-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.wallet-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s;
    border-top: 4px solid #3498db;
}

.wallet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.wallet-card h4 {
    margin: 0 0 15px 0;
    color: #7f8c8d;
    font-size: 16px;
}

.wallet-amount {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

.transaction-history {
    margin-top: 30px;
}

.transaction-history h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ecf0f1;
}

.transaction-history table {
    width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    min-width: 600px;
}

.transaction-history th, .transaction-history td {
    padding: 12px 15px;
    text-align: right;
    border: 1px solid #e0e0e0;
}

.transaction-history th {
    background: #34495e;
    color: white;
    font-weight: bold;
}

.transaction-history tr:nth-child(even) {
    background: #f7f9fc;
}

.pricing-section {
    margin-top: 20px;
}

.loading-spinner {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-style: italic;
}

#password-message, #price-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.company-panel-message {
    text-align: center;
    padding: 30px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    color: #856404;
    font-size: 16px;
    margin: 20px 0;
}

/* رسپانسیو برای موبایل */
@media (max-width: 768px) {
    .company-panel-pro {
        padding: 15px;
        margin: 10px;
    }
    
    .company-panel-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        margin: 5px 0;
        border-radius: 5px;
        width: 100%;
        text-align: center;
    }
    
    .wallet-info {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .affiliates-list table,
    .transaction-history table {
        min-width: 100%;
    }
    
    .affiliates-list th,
    .affiliates-list td,
    .transaction-history th,
    .transaction-history td {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    /* استایل برای جدول‌های رسپانسیو */
    .table-responsive table {
        width: 100%;
    }
    
    .table-responsive thead {
        display: none;
    }
    
    .table-responsive tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #e0e0e0;
        border-radius: 5px;
        padding: 10px;
    }
    
    .table-responsive td {
        display: flex;
        justify-content: space-between;
        padding: 8px 5px;
        border: none;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .table-responsive td:last-child {
        border-bottom: none;
    }
    
    .table-responsive td:before {
        content: attr(data-label);
        font-weight: bold;
        color: #34495e;
        margin-left: 10px;
    }
}

/* انیمیشن‌های اضافی */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.wallet-card {
    animation: pulse 2s infinite;
}

.tab-button {
    transition: all 0.3s ease-in-out;
}

.submit-btn {
    transition: all 0.3s ease-in-out;
}

/* استایل برای حالت لودینگ */
.loading-spinner:after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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

.price-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: left;
}

.price-input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}