/* BizMall Plugin Styles */

.bizmall-dashboard {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-container {
    display: flex;
    gap: 30px;
}

.dashboard-sidebar {
    width: 250px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.dashboard-user {
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.dashboard-user h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.dashboard-user p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.dashboard-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 5px;
    text-decoration: none;
    color: #333;
    border-radius: 6px;
    transition: all 0.3s;
}

.menu-item:hover {
    background: #f5f5f5;
}

.menu-item.active {
    background: #0073aa;
    color: #fff;
}

.menu-item .icon {
    margin-right: 10px;
    font-size: 18px;
}

.dashboard-content {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    font-size: 32px;
}

.stat-info h3 {
    margin: 0 0 5px 0;
    font-size: 14px;
    opacity: 0.9;
}

.stat-value {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
}

.product-form, .withdrawal-form {
    max-width: 600px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-primary {
    background: #0073aa;
    color: #fff;
}

.btn-primary:hover {
    background: #005a87;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

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

.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

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

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    padding: 15px;
    margin: 0;
    font-size: 18px;
}

.product-card .price {
    padding: 0 15px;
    font-size: 20px;
    font-weight: bold;
    color: #0073aa;
}

.product-card .stock {
    padding: 0 15px 15px;
    color: #666;
}

.product-actions {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.earnings-table, .withdrawals-table, .referrals-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.earnings-table th,
.withdrawals-table th,
.referrals-table th {
    background: #f5f5f5;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.earnings-table td,
.withdrawals-table td,
.referrals-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.status-pending {
    color: #f39c12;
    font-weight: 600;
}

.status-approved {
    color: #27ae60;
    font-weight: 600;
}

.status-rejected {
    color: #e74c3c;
    font-weight: 600;
}

.daily-tasks {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.task-card {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    gap: 20px;
}

.task-card .task-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.task-card .task-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.task-card.completed {
    border-color: #27ae60;
    background: #f0f9f4;
}

.task-icon {
    font-size: 40px;
}

.task-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.task-info {
    flex: 1;
}

.task-info h3 {
    margin: 0 0 5px 0;
}

.task-reward {
    color: #0073aa;
    font-weight: 600;
    margin-top: 5px;
}

.task-completed {
    color: #27ae60;
    font-weight: 600;
}

.referral-link-section {
    max-width: 600px;
}

.referral-code-box,
.referral-link-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.referral-code-box input,
.referral-link-box input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.share-buttons {
    margin-top: 30px;
}

.btn-social {
    margin-right: 10px;
    margin-top: 10px;
}

.notice {
    padding: 12px;
    margin-bottom: 20px;
    border-left: 4px solid;
    border-radius: 4px;
}

.notice-success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.notice-error {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.bizmall-payment-form {
    max-width: 500px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.bizmall-payment-form .price {
    font-size: 24px;
    font-weight: bold;
    color: #0073aa;
    margin: 10px 0;
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        width: 100%;
        position: static;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

