<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Add Notification</title>

    <!-- Bootstrap & Icons -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css" rel="stylesheet">

    <style>
        body {
            background: #f4f6fb;
            font-family: 'Segoe UI', sans-serif;
        }

        /* HEADER */
        .app-header {
            background: #3a57e8;
            color: #fff;
            padding: 15px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .app-header .brand {
            font-size: 18px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .app-header nav a {
            color: #fff;
            margin-left: 15px;
            text-decoration: none;
            font-size: 14px;
            opacity: 0.9;
        }

        .app-header nav a:hover {
            opacity: 1;
            text-decoration: underline;
        }

        /* FORM CARD */
        .form-container {
            max-width: 650px;
            margin: 40px auto;
            background: #fff;
            padding: 25px;
            border-radius: 12px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.08);
        }

        .form-title {
            text-align: center;
            margin-bottom: 20px;
            font-weight: 600;
            color: #333;
        }

        label {
            font-weight: 500;
            margin-top: 10px;
        }

        .form-check {
            margin-bottom: 6px;
        }

        .btn-submit {
            width: 100%;
            margin-top: 15px;
            padding: 10px;
            background: #3a57e8;
            border: none;
        }

        .btn-submit:hover {
            background: #2f46c9;
        }
    </style>
</head>

<body>

<!-- HEADER -->
<header class="app-header">
    <div class="brand">
        <i class="fas fa-school"></i>
        School Management System
    </div>

    <nav>
        <a href="admin_dashboard.php"><i class="fas fa-home"></i> Dashboard</a>
        <a href="all_notifications.php"><i class="fas fa-bell"></i> Notifications</a>
        <a href="manage_students.php"><i class="fas fa-user-graduate"></i> Students</a>
        <a href="logout.php"><i class="fas fa-sign-out-alt"></i> Logout</a>
    </nav>
</header>

<!-- FORM -->
<div class="form-container">

    <h3 class="form-title">
        <i class="fas fa-paper-plane"></i> Add Notification
    </h3>

    <form action="process_add_notification.php" method="POST">

        <label>Message Head</label>
        <input type="text" name="message_head" class="form-control" required>

        <label>Message Body</label>
        <textarea name="message_body" rows="5" class="form-control" required></textarea>

        <label class="mt-3">Send To</label>

        <div class="form-check">
            <input class="form-check-input" type="checkbox" name="roles[]" value="student" id="student">
            <label class="form-check-label" for="student">Student</label>
        </div>

        <div class="form-check">
            <input class="form-check-input" type="checkbox" name="roles[]" value="teacher" id="teacher">
            <label class="form-check-label" for="teacher">Teacher</label>
        </div>

        <div class="form-check">
            <input class="form-check-input" type="checkbox" name="roles[]" value="parent" id="parent">
            <label class="form-check-label" for="parent">Parent</label>
        </div>

        <div class="form-check">
            <input class="form-check-input" type="checkbox" name="roles[]" value="general" id="general">
            <label class="form-check-label" for="general">General</label>
        </div>

        <button type="submit" class="btn btn-primary btn-submit">
            <i class="fas fa-paper-plane"></i> Send Notification
        </button>

    </form>

</div>

</body>
</html>