<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Welcome to KSO Chandigarh Admin Panel</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            line-height: 1.6;
            color: #333;
            margin: 0;
            padding: 0;
        }
        .container {
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
            border: 1px solid #ddd;
            border-radius: 5px;
        }
        .header {
            background-color: #007bff;
            color: white;
            padding: 20px;
            text-align: center;
            border-radius: 5px 5px 0 0;
        }
        .content {
            padding: 20px;
        }
        .footer {
            background-color: #f4f4f4;
            padding: 15px;
            text-align: center;
            font-size: 12px;
            color: #666;
            border-radius: 0 0 5px 5px;
        }
        table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
        }
        table, th, td {
            border: 1px solid #ddd;
        }
        th, td {
            padding: 10px;
            text-align: left;
        }
        th {
            background-color: #f2f2f2;
        }
        .btn {
            display: inline-block;
            background-color: #007bff;
            color: white;
            padding: 10px 20px;
            text-decoration: none;
            border-radius: 5px;
            margin-top: 15px;
        }
        .credentials {
            background-color: #f9f9f9;
            padding: 15px;
            border-radius: 5px;
            margin: 20px 0;
        }
        .warning {
            color: #dc3545;
            font-weight: bold;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>Welcome to KUKI STUDENTS' ORGANISATION Chandigarh Admin Panel</h1>
            <p>Your administrator account has been created</p>
        </div>
        
        <div class="content">
            <p>Dear {{name}},</p>
            
            <p>Welcome to the KUKI STUDENTS' ORGANISATION administration team. Your admin account has been created successfully with the following details:</p>
            
            <div class="credentials">
                <table>
                    <tr>
                        <th>Name</th>
                        <td>{{name}}</td>
                    </tr>
                    <tr>
                        <th>KSO ID</th>
                        <td>{{kso_id}}</td>
                    </tr>
                    <tr>
                        <th>Email</th>
                        <td>{{email}}</td>
                    </tr>
                    <tr>
                        <th>Role</th>
                        <td>{{role}}</td>
                    </tr>
                    <tr>
                        <th>Admin Level</th>
                        <td>{{admin_level}}</td>
                    </tr>
                    <tr>
                        <th>Password</th>
                        <td>{{password}} <span class="warning">(Please change upon first login)</span></td>
                    </tr>
                </table>
            </div>
            
            <p>You can now log in to the admin panel using your email and the provided password. For security reasons, we strongly recommend changing your password immediately after your first login.</p>
            
            <p>Your account has the following permissions:</p>
            <ul>
                {{permissions_list}}
            </ul>
            
            <a href="{{login_url}}" class="btn">Login to Admin Panel</a>
            
            <p>If you have any questions or need assistance, please contact the super administrator.</p>
            
            <p>Thank you for your service to KUKI STUDENTS' ORGANISATION Chandigarh!</p>
            
            <p>Best regards,<br>KUKI STUDENTS' ORGANISATION Administration</p>
        </div>
        
        <div class="footer">
            <p>© {{current_year}} KUKI STUDENTS' ORGANISATION, Chandigarh. All rights reserved.</p>
            <p>This is an automated message. Please do not reply to this email.</p>
            <p>If you received this email by mistake, please contact us immediately.</p>
        </div>
    </div>
</body>
</html>
