make this codes (<?php
// public/users/manage_users.php
// Now include the header after handling actions
require_once __DIR__ . '/../../includes/header.php';

// Enable error reporting for debugging (disable in production)
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

// Include authentication and database connection
require_once '../../includes/auth.php';
require_once '../../includes/db_connect.php';

// Check if the user is an admin
if ($_SESSION['role'] != 'admin') {
    die("Access denied. Only admins can manage users.");
}

$success = '';
$error = '';

// Function to sanitize input data
function sanitize_input($data) {
    return htmlspecialchars(trim($data));
}

// Handle Add/Edit/Delete actions
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    // Add User
    if (isset($_POST['add_user'])) {
        $username = sanitize_input($_POST['username']);
        $password = $_POST['password'];
        $role = sanitize_input($_POST['role']);

        // Basic validation
        if (empty($username) || empty($password) || empty($role)) {
            $error = "All fields are required.";
        } else {
            // Hash the password
            $hashed_password = password_hash($password, PASSWORD_BCRYPT);

            // Prepare and execute the insert statement
            $add_sql = "INSERT INTO users (username, password, role) VALUES (?, ?, ?)";
            $stmt = $conn->prepare($add_sql);
            if ($stmt) {
                $stmt->bind_param("sss", $username, $hashed_password, $role);
                if ($stmt->execute()) {
                    $success = "User added successfully!";
                } else {
                    $error = "Error adding user: " . $stmt->error;
                }
                $stmt->close();
            } else {
                $error = "Prepare statement failed: " . $conn->error;
            }
        }
    }
    // Edit User
    elseif (isset($_POST['edit_user'])) {
        $id = intval($_POST['id']);
        $username = sanitize_input($_POST['username']);
        $role = sanitize_input($_POST['role']);
        $password = $_POST['password'];

        // Basic validation
        if (empty($username) || empty($role)) {
            $error = "Username and role are required.";
        } else {
            if (!empty($password)) {
                // If password is provided, hash it
                $hashed_password = password_hash($password, PASSWORD_BCRYPT);
                $edit_sql = "UPDATE users SET username = ?, role = ?, password = ? WHERE id = ?";
                $stmt = $conn->prepare($edit_sql);
                if ($stmt) {
                    $stmt->bind_param("sssi", $username, $role, $hashed_password, $id);
                }
            } else {
                // If password is not provided, do not update it
                $edit_sql = "UPDATE users SET username = ?, role = ? WHERE id = ?";
                $stmt = $conn->prepare($edit_sql);
                if ($stmt) {
                    $stmt->bind_param("ssi", $username, $role, $id);
                }
            }

            if ($stmt) {
                if ($stmt->execute()) {
                    $success = "User updated successfully!";
                } else {
                    $error = "Error updating user: " . $stmt->error;
                }
                $stmt->close();
            } else {
                $error = "Prepare statement failed: " . $conn->error;
            }
        }
    }
    // Delete User
    elseif (isset($_POST['delete_user'])) {
        $id = intval($_POST['id']);

        // Prevent deleting oneself
        if ($id == $_SESSION['user_id']) {
            $error = "You cannot delete yourself.";
        } else {
            // Prepare and execute the delete statement
            $delete_sql = "DELETE FROM users WHERE id = ?";
            $stmt = $conn->prepare($delete_sql);
            if ($stmt) {
                $stmt->bind_param("i", $id);
                if ($stmt->execute()) {
                    $success = "User deleted successfully!";
                } else {
                    $error = "Error deleting user: " . $stmt->error;
                }
                $stmt->close();
            } else {
                $error = "Prepare statement failed: " . $conn->error;
            }
        }
    }
}

// Fetch all users
$users_sql = "SELECT * FROM users ORDER BY username ASC";
$users_result = $conn->query($users_sql);
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Manage Users - Kaak Alia Management System</title>
    
    <!-- Google Fonts -->
    <link href="https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap" rel="stylesheet">
    
    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="../../public/bootstrap/css/bootstrap.min.css">
    
    <!-- Bootstrap Icons -->
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css">
    
    <!-- Embedded Custom Styles -->
    <style>
        /* ---------------------------------------------------
           1. CSS Variables for Consistent Design
        ---------------------------------------------------- */
        :root {
            --dark-gray: #333333; /* Header and Footer Background */
            --primary-color: #b78d67; /* Buttons and Highlights */
            --secondary-color: #515151; /* Text and Icons */
            --success-color: #06D6A0; /* Success Messages */
            --error-color: #EF476F; /* Error Messages */
            --white: #FFFFFF;
            --background-gradient: linear-gradient(to bottom, #f5f7fa, #c3cfe2);
            --divider-color: #FFD166;
        }

        /* ---------------------------------------------------
           2. Global Styles
        ---------------------------------------------------- */
        body {
            font-family: 'Cairo', sans-serif;
            background: var(--background-gradient);
            margin: 0;
            padding: 20px;
            box-sizing: border-box;
        }

        h1, h3, h4, h5, p {
            margin: 0;
        }

        /* ---------------------------------------------------
           3. Header Styles
        ---------------------------------------------------- */
        .header {
            padding: 20px 30px;
            background-color: var(--dark-gray);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
        }

        .header h1 {
            color: var(--white);
            font-size: 24px;
            font-weight: bold;
        }

        /* ---------------------------------------------------
           4. Welcome Section (Optional)
        ---------------------------------------------------- */
        .welcome-section {
            background-color: var(--white);
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            border-radius: 8px;
            padding: 20px;
            text-align: center;
            margin-bottom: 20px;
        }

        .welcome-section h3 {
            font-size: 20px;
            color: var(--secondary-color);
            margin-bottom: 10px;
        }

        .welcome-section hr {
            width: 50px;
            height: 3px;
            background-color: var(--primary-color);
            border: none;
            margin: 10px auto;
        }

        /* ---------------------------------------------------
           5. Add User Form Card
        ---------------------------------------------------- */
        .add-user-card {
            background-color: var(--white);
            border: 1px solid #ccc;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            margin-bottom: 30px;
        }

        .add-user-card .card-header {
            background-color: var(--primary-color);
            color: var(--white);
            font-weight: bold;
            border-top-left-radius: 8px;
            border-top-right-radius: 8px;
        }

        .add-user-card .form-label {
            font-weight: 600;
            color: var(--secondary-color);
        }

        .add-user-card .btn-primary {
            background-color: var(--primary-color);
            border: none;
            transition: background-color 0.3s, transform 0.3s;
        }

        .add-user-card .btn-primary:hover {
            background-color: #a77c55;
            transform: scale(1.05);
        }

        /* ---------------------------------------------------
           6. Users Table Styles
        ---------------------------------------------------- */
        .users-table-section {
            background-color: var(--white);
            border: 1px solid #ccc;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

        .users-table-section h4 {
            font-size: 18px;
            font-weight: bold;
            color: var(--secondary-color);
            margin-bottom: 15px;
        }

        .users-table-section table {
            width: 100%;
            border-collapse: collapse;
        }

        .users-table-section th, 
        .users-table-section td {
            padding: 12px;
            text-align: left;
            border: 1px solid #ccc;
            font-size: 14px;
        }

        .users-table-section th {
            background-color: var(--dark-gray);
            color: var(--white);
            font-weight: bold;
        }

        .users-table-section tr:nth-child(even) {
            background-color: #F9F9F9;
        }

        .users-table-section tr:hover {
            background-color: #e6f7ff;
        }

        .users-table-section td {
            color: var(--secondary-color);
        }

        /* ---------------------------------------------------
           7. Action Buttons in Table
        ---------------------------------------------------- */
        .action-buttons-table .btn {
            margin-right: 5px;
            text-decoration: none;
            font-size: 14px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 5px 8px;
            border-radius: 4px;
            transition: background-color 0.3s, transform 0.3s;
        }

        .btn-warning {
            background-color: #ff9800;
            color: var(--white);
            border: none;
        }

        .btn-warning:hover {
            background-color: #e68900;
            transform: scale(1.05);
        }

        .btn-danger {
            background-color: #dc3545;
            color: var(--white);
            border: none;
        }

        .btn-danger:hover {
            background-color: #c82333;
            transform: scale(1.05);
        }

        /* ---------------------------------------------------
           8. Edit Modal Styles
        ---------------------------------------------------- */
        .modal-header {
            background-color: var(--primary-color);
            color: var(--white);
            border-bottom: none;
            border-top-left-radius: 8px;
            border-top-right-radius: 8px;
        }

        .modal-title {
            font-weight: bold;
        }

        .modal-footer .btn-primary {
            background-color: var(--primary-color);
            border: none;
        }

        .modal-footer .btn-primary:hover {
            background-color: #a77c55;
            transform: scale(1.05);
        }

        /* ---------------------------------------------------
           9. Footer Styles
        ---------------------------------------------------- */
        .footer {
            background-color: var(--dark-gray);
            color: var(--white);
            padding: 15px;
            text-align: center;
            border-radius: 8px;
            font-size: 14px;
            line-height: 20px;
            margin-top: 40px;
        }

        /* ---------------------------------------------------
           10. Responsive Design Enhancements
        ---------------------------------------------------- */
        @media (max-width: 768px) {
            .add-user-card, .users-table-section {
                padding: 15px;
            }

            .action-buttons-table .btn {
                font-size: 12px;
                padding: 4px 6px;
            }

            .header h1 {
                font-size: 20px;
            }

            .add-user-card .form-group {
                margin-bottom: 15px;
            }

            .users-table-section th, 
            .users-table-section td {
                font-size: 12px;
                padding: 10px;
            }
        }

        @media (max-width: 480px) {
            .header {
                padding: 15px 20px;
            }

            .header h1 {
                font-size: 18px;
            }

            .add-user-card .btn-primary {
                width: 100%;
                padding: 10px;
                height: 50px;
                font-size: 16px;
            }

            .users-table-section th, 
            .users-table-section td {
                font-size: 10px;
                padding: 8px;
            }

            .action-buttons-table .btn {
                font-size: 10px;
                padding: 3px 5px;
            }
        }
    </style>
</head>
<body>

    <!-- Header -->
    <div class="header">
        <h1>Kaak Alia Management System</h1>
    </div>

    <!-- Welcome Section (Optional) -->
    <!--
    <div class="welcome-section">
        <h3>Manage Your Users Efficiently</h3>
        <hr>
    </div>
    -->

    <!-- Container -->
    <div class="container">
        <!-- Display Success or Error Messages -->
        <?php if ($success): ?>
            <div class="alert alert-success mb-4"><?= htmlspecialchars($success) ?></div>
        <?php endif; ?>

        <?php if ($error): ?>
            <div class="alert alert-danger mb-4"><?= htmlspecialchars($error) ?></div>
        <?php endif; ?>

        <!-- Add User Form -->
        <div class="add-user-card">
            <div class="card-header">
                Add New User
            </div>
            <div class="card-body">
                <form method="POST" action="">
                    <div class="row">
                        <!-- Username Field -->
                        <div class="col-md-4 mb-3">
                            <label for="username" class="form-label">Username <span class="text-danger">*</span></label>
                            <input type="text" id="username" name="username" class="form-control" required>
                        </div>
                        <!-- Password Field -->
                        <div class="col-md-4 mb-3">
                            <label for="password" class="form-label">Password <span class="text-danger">*</span></label>
                            <input type="password" id="password" name="password" class="form-control" required>
                        </div>
                        <!-- Role Field -->
                        <div class="col-md-4 mb-3">
                            <label for="role" class="form-label">Role <span class="text-danger">*</span></label>
                            <select id="role" name="role" class="form-control" required>
                                <option value="">Select Role</option>
                                <option value="staff">Staff</option>
                                <option value="admin">Admin</option>
                            </select>
                        </div>
                    </div>
                    <!-- Submit Button -->
                    <button type="submit" name="add_user" class="btn btn-primary">Add User</button>
                </form>
            </div>
        </div>

        <!-- Users List Table -->
        <div class="users-table-section">
            <h4>All Users</h4>
            <table>
                <thead>
                    <tr>
                        <th>#ID</th>
                        <th>Username</th>
                        <th>Role</th>
                        <th>Actions</th>
                    </tr>
                </thead>
                <tbody>
                    <?php if ($users_result && $users_result->num_rows > 0): ?>
                        <?php while($user = $users_result->fetch_assoc()): ?>
                            <tr>
                                <td><?= htmlspecialchars($user['id']) ?></td>
                                <td><?= htmlspecialchars($user['username']) ?></td>
                                <td><?= htmlspecialchars(ucfirst($user['role'])) ?></td>
                                <td class="action-buttons-table">
                                    <!-- Edit Button triggers modal -->
                                    <button type="button" class="btn btn-warning" data-bs-toggle="modal" data-bs-target="#editModal<?= htmlspecialchars($user['id']) ?>" title="Edit User">
                                        <i class="bi bi-pencil-fill"></i>
                                    </button>
                                    
                                    <!-- Delete Form -->
                                    <form method="POST" action="" class="d-inline" onsubmit="return confirm('Are you sure you want to delete this user?');">
                                        <input type="hidden" name="id" value="<?= htmlspecialchars($user['id']) ?>">
                                        <button type="submit" name="delete_user" class="btn btn-danger" title="Delete User">
                                            <i class="bi bi-trash-fill"></i>
                                        </button>
                                    </form>
                                    
                                    <!-- Edit Modal -->
                                    <div class="modal fade" id="editModal<?= htmlspecialchars($user['id']) ?>" tabindex="-1" aria-labelledby="editModalLabel<?= htmlspecialchars($user['id']) ?>" aria-hidden="true">
                                      <div class="modal-dialog">
                                        <div class="modal-content">
                                          <form method="POST" action="">
                                              <div class="modal-header">
                                                <h5 class="modal-title" id="editModalLabel<?= htmlspecialchars($user['id']) ?>">Edit User</h5>
                                                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
                                              </div>
                                              <div class="modal-body">
                                                  <input type="hidden" name="id" value="<?= htmlspecialchars($user['id']) ?>">
                                                  <!-- Username Field -->
                                                  <div class="mb-3">
                                                      <label for="edit_username_<?= htmlspecialchars($user['id']) ?>" class="form-label">Username <span class="text-danger">*</span></label>
                                                      <input type="text" id="edit_username_<?= htmlspecialchars($user['id']) ?>" name="username" class="form-control" value="<?= htmlspecialchars($user['username']) ?>" required>
                                                  </div>
                                                  <!-- Password Field -->
                                                  <div class="mb-3">
                                                      <label for="edit_password_<?= htmlspecialchars($user['id']) ?>" class="form-label">Password <small class="text-muted">(Leave blank to keep current password)</small></label>
                                                      <input type="password" id="edit_password_<?= htmlspecialchars($user['id']) ?>" name="password" class="form-control">
                                                  </div>
                                                  <!-- Role Field -->
                                                  <div class="mb-3">
                                                      <label for="edit_role_<?= htmlspecialchars($user['id']) ?>" class="form-label">Role <span class="text-danger">*</span></label>
                                                      <select id="edit_role_<?= htmlspecialchars($user['id']) ?>" name="role" class="form-control" required>
                                                          <option value="staff" <?= ($user['role'] == 'staff') ? 'selected' : '' ?>>Staff</option>
                                                          <option value="admin" <?= ($user['role'] == 'admin') ? 'selected' : '' ?>>Admin</option>
                                                      </select>
                                                  </div>
                                              </div>
                                              <div class="modal-footer">
                                                <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
                                                <button type="submit" name="edit_user" class="btn btn-primary">Save Changes</button>
                                              </div>
                                          </form>
                                        </div>
                                      </div>
                                    </div>
                                </td>
                            </tr>
                        <?php endwhile; ?>
                    <?php else: ?>
                        <tr>
                            <td colspan="4" class="text-center">No users found.</td>
                        </tr>
                    <?php endif; ?>
                </tbody>
            </table>
        </div>
    </div>

    <!-- Footer -->
    <div class="footer">
        &copy; 2024 Kaak Alia Bakery. All rights reserved.
    </div>

    <!-- Bootstrap JS Bundle -->
    <script src="../../public/bootstrap/js/bootstrap.bundle.min.js"></script>

    <!-- Initialize Bootstrap Tooltip (Optional) -->
    <script>
        var tooltipTriggerList = [].slice.call(document.querySelectorAll('[title]'))
        var tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) {
            return new bootstrap.Tooltip(tooltipTriggerEl)
        })
    </script>
</body>
</html>) great design and use this styles (    <!-- Embedded Custom Styles -->
    <style>
        /* ---------------------------------------------------
           1. CSS Variables for Consistent Design
        ---------------------------------------------------- */
        :root {
            --dark-gray: #333333; /* Header and Footer Background */
            --button-add-order: #e2a20c; /* Light Golden-Yellow */
            --button-view-orders: #118AB2; /* Blue */
            --button-manage-products: #06D6A0; /* Green */
            --button-manage-users: #F4A261; /* Orange */
            --button-generate-reports: #EF476F; /* Red-Pink */

            --main-text: #333333;
            --secondary-text: #666666;
            --white: #FFFFFF;
            --background-gradient: linear-gradient(to bottom, #f5f7fa, #c3cfe2);
            --divider-color: #FFD166;

            --hover-shadow: rgba(0, 0, 0, 0.2);
        }

        /* ---------------------------------------------------
           2. Global Styles
        ---------------------------------------------------- */
        body {
            font-family: 'Cairo', sans-serif;
            background-color: var(--white);
            margin: 0;
            padding: 30px;
            box-sizing: border-box;
        }

        h2, h5, p {
            margin: 0;
        }

        /* ---------------------------------------------------
           3. Header Styles
        ---------------------------------------------------- */
        .header {
            padding: 20px 30px;
            background-color: var(--dark-gray);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
        }

        .header h1 {
            color: var(--white);
            font-size: 24px;
            font-weight: bold;
        }

        /* ---------------------------------------------------
           4. Welcome Section
        ---------------------------------------------------- */
        .welcome-section {
            background-color: var(--white);
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            border-radius: 8px;
            padding: 20px;
            text-align: center;
            margin-bottom: 20px;
        }

        .welcome-section h3 {
            font-size: 20px;
            color: var(--main-text);
            margin-bottom: 10px;
        }

        .welcome-section hr {
            width: 50px;
            height: 3px;
            background-color: var(--button-add-order);
            border: none;
            margin: 10px auto;
        }

        /* ---------------------------------------------------
           5. Statistics Section
        ---------------------------------------------------- */
        .stats-section {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 20px;
        }

        .stat-card {
            background-color: var(--white);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            border-radius: 8px;
            padding: 15px;
            display: flex;
            align-items: center;
            transition: transform 0.2s;
        }

        .stat-card:hover {
            transform: translateY(-5px);
        }

        .stat-icon {
            font-size: 24px;
            margin-right: 10px;
        }

        .stat-icon.total-orders { color: var(--secondary-text); }
        .stat-icon.pending-orders { color: var(--button-add-order); }
        .stat-icon.completed-orders { color: var(--button-view-orders); }
        .stat-icon.delivered-orders { color: var(--button-generate-reports); }
        .stat-icon.total-sales { color: var(--button-manage-products); }

        .stat-info h5 {
            font-size: 16px;
            color: var(--main-text);
            margin-bottom: 5px;
        }

        .stat-info p {
            font-size: 20px;
            font-weight: bold;
            color: var(--main-text);
        }

        /* ---------------------------------------------------
           6. Main Buttons Section
        ---------------------------------------------------- */
        .buttons-section {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: 20px;
        }

        .action-button {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            max-width: 200px;
            height: 60px;
            font-size: 18px;
            font-weight: bold;
            color: var(--white);
            border: none;
            border-radius: 8px;
            padding: 10px 20px;
            cursor: pointer;
            transition: transform 0.2s, box-shadow 0.2s;
            text-decoration: none;
            text-align: center;
        }

        .action-button.add-order { background-color: var(--button-add-order); }
        .action-button.view-orders { background-color: var(--button-view-orders); }
        .action-button.manage-products { background-color: var(--button-manage-products); }
        .action-button.manage-users { background-color: var(--button-manage-users); }
        .action-button.generate-reports { background-color: var(--button-generate-reports); }

        .action-button:hover {
            transform: scale(1.02);
            box-shadow: 0 6px 10px var(--hover-shadow);
        }

        /* ---------------------------------------------------
           7. Recent Orders Section
        ---------------------------------------------------- */
        .recent-orders-section {
            background-color: var(--white);
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

        .recent-orders-section h4 {
            font-size: 18px;
            font-weight: bold;
            color: var(--main-text);
            margin-bottom: 15px;
        }

        /* Make table responsive */
        .table-responsive {
            overflow-x: auto;
        }

        .recent-orders-section table {
            width: 100%;
            border-collapse: collapse;
        }

        .recent-orders-section th, 
        .recent-orders-section td {
            padding: 12px;
            text-align: left;
            font-size: 16px;
            vertical-align: top;
        }

        .recent-orders-section th {
            background-color: #333333;
            color: var(--white);
            font-weight: bold;
            position: sticky;
            top: 0;
            z-index: 1;
        }

        .recent-orders-section tr:nth-child(even) {
            background-color: #F9F9F9;
        }

        .recent-orders-section tr:hover {
            background-color: #e6f7ff;
        }

        .recent-orders-section td {
            font-size: 14px;
            color: #333333;
        }

        .recent-orders-section .view-all {
            display: block;
            text-align: right;
            margin-top: 10px;
            font-size: 14px;
            color: #118AB2;
            font-weight: bold;
            text-decoration: none;
        }

        .recent-orders-section .view-all:hover {
            color: #075985;
        }

        /* Badge Styles */
        .badge-status-pending {
            background-color: #FFD166;
            color: var(--white);
            padding: 5px 10px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: bold;
        }

        .badge-status-in-progress {
            background-color: #118AB2;
            color: var(--white);
            padding: 5px 10px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: bold;
        }

        .badge-status-completed {
            background-color: #06D6A0;
            color: var(--white);
            padding: 5px 10px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: bold;
        }

        .badge-status-delivered {
            background-color: #EF476F;
            color: var(--white);
            padding: 5px 10px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: bold;
        }

        /* ---------------------------------------------------
           8. Footer Styles
        ---------------------------------------------------- */
        .footer {
            background-color: #333333;
            color: var(--white);
            padding: 15px;
            text-align: center;
            border-radius: 8px;
            font-size: 14px;
            line-height: 20px;
            margin-top: 40px;
        }

        /* ---------------------------------------------------
           9. Responsive Design Enhancements
        ---------------------------------------------------- */
        @media (min-width: 768px) {
            .buttons-section .action-button {
                width: 48%;
            }
        }

        @media (max-width: 767px) {
            .buttons-section .action-button {
                width: 100%;
            }

            .recent-orders-section table, 
            .recent-orders-section th, 
            .recent-orders-section td {
                font-size: 12px;
            }

            .recent-orders-section h4 {
                font-size: 16px;
            }
        }

        @media (max-width: 480px) {
            .header {
                padding: 15px 20px;
            }

            .header h1 {
                font-size: 20px;
            }

            .welcome-section h3 {
                font-size: 18px;
            }

            .action-button {
                font-size: 16px;
                height: 50px;
            }

            .recent-orders-section th, 
            .recent-orders-section td {
                padding: 10px;
                font-size: 12px;
            }

            .recent-orders-section h4 {
                font-size: 14px;
            }
        }
    </style>
) and mkae it great deisgn and type full codes