
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>VIP Partnership Manager</title>
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap" rel="stylesheet">
    <style>
        :root {
            --primary: #6c5ce7;
            --secondary: #a29bfe;
            --success: #00b894;
            --danger: #d63031;
            --warning: #fdcb6e;
            --info: #0984e3;
            --light: #f5f6fa;
            --dark: #2d3436;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
        }
        
        body {
            background-color: #f8f9fa;
            color: #333;
            line-height: 1.6;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        
        .header {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 30px;
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }
        
        .card {
            background: white;
            border-radius: 10px;
            padding: 25px;
            margin-bottom: 30px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            transition: transform 0.3s ease;
        }
        
        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        }
        
        .card-title {
            font-size: 1.5rem;
            margin-bottom: 20px;
            color: var(--primary);
            border-bottom: 2px solid var(--secondary);
            padding-bottom: 10px;
        }
        
        .form-group {
            margin-bottom: 15px;
        }
        
        label {
            display: block;
            margin-bottom: 5px;
            font-weight: 500;
        }
        
        input, select {
            width: 100%;
            padding: 10px 15px;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 16px;
        }
        
        button {
            background-color: var(--primary);
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
            transition: background 0.3s ease;
        }
        
        button:hover {
            background-color: var(--secondary);
        }
        
        .btn-danger {
            background-color: var(--danger);
        }
        
        .btn-success {
            background-color: var(--success);
        }
        
        .btn-warning {
            background-color: var(--warning);
            color: var(--dark);
        }
        
        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
        }
        
        th, td {
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid #eee;
        }
        
        th {
            background-color: var(--light);
            font-weight: 600;
        }
        
        tr:hover {
            background-color: #f9f9f9;
        }
        
        .positive {
            color: var(--success);
            font-weight: 600;
        }
        
        .negative {
            color: var(--danger);
            font-weight: 600;
        }
        
        .alert {
            padding: 15px;
            margin-bottom: 20px;
            border-radius: 5px;
        }
        
        .alert-success {
            background-color: rgba(0, 184, 148, 0.1);
            color: var(--success);
            border-left: 4px solid var(--success);
        }
        
        .dashboard-stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .stat-card {
            background: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        }
        
        .stat-card h3 {
            color: var(--dark);
            font-size: 1rem;
            margin-bottom: 10px;
        }
        
        .stat-card p {
            font-size: 1.8rem;
            font-weight: 600;
        }
        
        .stat-card .positive {
            color: var(--success);
        }
        
        .stat-card .negative {
            color: var(--danger);
        }
        
        @media (max-width: 768px) {
            .dashboard-stats {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>VIP Partnership Manager</h1>
            <p>bbb & aaa - 50/50 Business Partnership</p>
        </div>
        
                
        <div class="dashboard-stats">
            <div class="stat-card">
                <h3>Total Ad Funds</h3>
                <p>₹0.00</p>
                <small>bbb: ₹0.00</small><br>
                <small>aaa: ₹0.00</small>
            </div>
            
            <div class="stat-card">
                <h3>Net Profit</h3>
                <p class="positive">
                    ₹0.00                </p>
                <small>Per Partner: ₹0.00</small>
            </div>
            
            <div class="stat-card">
                <h3>Final Settlement</h3>
                <p>₹0.00 / ₹0.00</p>
                <small>Difference: ₹0.00</small>
            </div>
        </div>
        
        <div class="row">
            <div class="card">
                <h2 class="card-title">Add Ad Fund</h2>
                <form method="POST">
                    <div class="form-group">
                        <label>Partner</label>
                        <select name="partner" required>
                            <option value="bbb">bbb</option>
                            <option value="aaa">aaa</option>
                        </select>
                    </div>
                    <div class="form-group">
                        <label>Amount (₹)</label>
                        <input type="number" step="0.01" name="amount" required>
                    </div>
                    <button type="submit" name="add_ad_fund">Add Fund</button>
                </form>
            </div>
            
            <div class="card">
                <h2 class="card-title">Add Recharge (10% Bank Charge)</h2>
                <form method="POST">
                    <div class="form-group">
                        <label>Amount (₹)</label>
                        <input type="number" step="0.01" name="amount" required>
                    </div>
                    <button type="submit" name="add_recharge" class="btn-success">Add Recharge</button>
                </form>
            </div>
        </div>
        
        <div class="row">
            <div class="card">
                <h2 class="card-title">Add Profit/Loss</h2>
                <form method="POST">
                    <div class="form-group">
                        <label>Amount (₹) - Positive for profit, Negative for loss</label>
                        <input type="number" step="0.01" name="amount" required>
                    </div>
                    <button type="submit" name="add_profit" class="btn-warning">Add Profit/Loss</button>
                </form>
            </div>
            
            <div class="card">
                <h2 class="card-title">System Control</h2>
                <form method="POST" onsubmit="return confirm('Are you sure you want to reset all data?')">
                    <button type="submit" name="reset" class="btn-danger">Reset All Data</button>
                </form>
            </div>
        </div>
        
        <div class="card">
            <h2 class="card-title">Detailed Financial Report</h2>
            
            <h3>Ad Fund Status</h3>
            <table>
                <tr>
                    <th>Partner</th>
                    <th>Contributed</th>
                    <th>Required</th>
                    <th>Needs To Add</th>
                    <th>Status</th>
                </tr>
                <tr>
                    <td>bbb</td>
                    <td>₹0.00</td>
                    <td>₹0.00</td>
                    <td class="positive">
                        ₹0.00                    </td>
                    <td>
                                                    <span class="positive">Balanced</span>
                                            </td>
                </tr>
                <tr>
                    <td>aaa</td>
                    <td>₹0.00</td>
                    <td>₹0.00</td>
                    <td class="positive">
                        ₹0.00                    </td>
                    <td>
                                                    <span class="positive">Balanced</span>
                                            </td>
                </tr>
            </table>
            
            <h3 style="margin-top: 30px;">Recharge History (Last 10)</h3>
            <table>
                <tr>
                    <th>Date</th>
                    <th>Gross Amount</th>
                    <th>Bank Charge (10%)</th>
                    <th>Net Received</th>
                </tr>
                            </table>
            
            <h3 style="margin-top: 30px;">Final Settlement</h3>
            <table>
                <tr>
                    <th>Partner</th>
                    <th>Ad Fund</th>
                    <th>Profit Share</th>
                    <th>Total Settlement</th>
                </tr>
                <tr>
                    <td>bbb</td>
                    <td>₹0.00</td>
                    <td>₹0.00</td>
                    <td class="positive">
                        ₹0.00                    </td>
                </tr>
                <tr>
                    <td>aaa</td>
                    <td>₹0.00</td>
                    <td>₹0.00</td>
                    <td class="positive">
                        ₹0.00                    </td>
                </tr>
            </table>
            
                            <div class="alert" style="margin-top: 20px; background-color: rgba(0, 184, 148, 0.1); border-left: 4px solid var(--success);">
                    <strong>Accounts are balanced</strong> - No settlement needed
                </div>
                    </div>
    </div>
</body>
</html>