this index.php (<?php
session_start();

// Check if a user is already logged in
if (isset($_SESSION['admin_id'])) {
    header("Location: admin_dashboard.php");
    exit();
} elseif (isset($_SESSION['patient_id'])) {
    header("Location: patient_dashboard.php");
    exit();
}
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Patient Health Record System</title>
    <link rel="stylesheet" href="css/styles.css"> <!-- Link to the external CSS file -->
    <style>
        /* Additional styles for the index page */
        body {
            background-image: url('images/background-image-admin.jpg');
            background-size: cover; /* Cover the entire background */
            background-position: center; /* Center the background image */
            color: var(--text-color);
            margin: 0;
            padding: 0;
            height: 100vh; /* Full height */
            display: flex;
            flex-direction: column;
            justify-content: center; /* Center content vertically */
            align-items: center; /* Center content horizontally */
        }

        h1 {
            font-size: 48px;
            margin-bottom: 20px;
            text-align: center;
        }

        .login-options {
            text-align: center;
        }

        .login-options a {
            display: inline-block;
            margin: 10px;
            padding: 15px 30px;
            background-color: var(--primary-color);
            color: var(--text-color);
            text-decoration: none;
            border-radius: 5px;
            transition: background-color 0.3s ease;
            font-size: 18px; /* Increased font size for better visibility */
        }

        .login-options a:hover {
            background-color: var(--secondary-color);
            color: var(--primary-color);
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            h1 {
                font-size: 36px; /* Smaller font size for mobile */
            }

            .login-options a {
                padding: 10px 20px; /* Adjust padding for smaller screens */
                font-size: 16px; /* Smaller font size for mobile */
            }
        }
    </style>
</head>
<body>
    <h1>Welcome to the Patient Health Record System</h1>
    <p>Please select your login type:</p>
    <div class="login-options">
        <a href="admin_login.php">Admin Login</a>
        <a href="patient_login.php">Patient Login</a>
    </div>
</body>
</html>) i want you to change this design and use this style (    <style>
        /* Custom CSS for modern design */
        body {
            background-color: #f8f9fa;
            font-family: Arial, sans-serif;
        }

        .dashboard-header {
            background-color: #4F3F02; /* Brown color */
            color: #fff;
            padding: 20px;
            text-align: center;
            border-radius: 8px;
            margin-bottom: 30px;
        }

        h1, h2 {
            font-weight: bold;
        }

        .btn-primary {
            background-color: #D1C287; /* Light golden color */
            border-color: #D1C287;
            color: #4F3F02; /* Brown color */
            font-weight: bold;
        }

        .btn-primary:hover {
            background-color: #4F3F02; /* Brown color */
            border-color: #D1C287;
            color: #fff;
        }

        .btn-secondary {
            background-color: #4F3F02; /* Brown color */
            border-color: #4F3F02;
            color: #fff;
            font-weight: bold;
        }

        .btn-secondary:hover {
            background-color: #D1C287; /* Light golden color */
            color: #4F3F02; /* Brown color */
        }

        .filters {
            background-color: #fff;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 20px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }


        .filters .form-control, .filters select {
            margin-bottom: 15px;
            border: 1px solid #D1C287;
            border-radius: 5px;
        }

        .filters .form-control:focus, .filters select:focus {
            border-color: #4F3F02;
            box-shadow: none;
        }

        .table-responsive {
            margin-top: 20px;
        }

        .table {
            background-color: #fff;
            border-radius: 8px;
            overflow: hidden;
        }

        .table thead th {
            background-color: #4F3F02;
            color: #fff;
            border-color: #4F3F02;
        }

        th, td {
            vertical-align: middle !important;
        }

        .card {
            border: none;
            border-radius: 10px;
        }

        .card .card-title {
            color: #4F3F02;
        }

        /* DataTables customizations */
        .dataTables_wrapper .dataTables_filter input {
            border-radius: 5px;
            border: 1px solid #D1C287;
        }

        .dataTables_wrapper .dataTables_length select {
            border-radius: 5px;
            border: 1px solid #D1C287;
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .filters .form-control, .filters select {
                margin-bottom: 10px;
            }
        }
    </style>
) and make it cool design and repssoinze and type full codes