diff --git a/add_member.php b/add_member.php
new file mode 100644
index 0000000..f567efd
--- /dev/null
+++ b/add_member.php
@@ -0,0 +1,54 @@
+prepare("SELECT id FROM team_members WHERE email = :email");
+ $stmt->bindParam(':email', $email);
+ $stmt->execute();
+
+ if ($stmt->fetch()) {
+ $message = 'A member with this email address already exists.';
+ } else {
+ // Insert new member
+ $sql = "INSERT INTO team_members (name, email, role) VALUES (:name, :email, :role)";
+ $stmt = $db->prepare($sql);
+ $stmt->bindParam(':name', $name);
+ $stmt->bindParam(':email', $email);
+ $stmt->bindParam(':role', $role);
+
+ if ($stmt->execute()) {
+ $status = 'success';
+ $message = 'New team member added successfully!';
+ } else {
+ $message = 'Failed to add new member. Please try again.';
+ }
+ }
+ } catch (PDOException $e) {
+ // In a real app, log the error instead of showing it to the user
+ // error_log($e->getMessage());
+ $message = 'Database error. Could not add member.';
+ }
+ }
+} else {
+ $message = 'Invalid request method.';
+}
+
+header('Location: team.php?status=' . $status . '&msg=' . urlencode($message));
+exit();
diff --git a/assets/css/custom.css b/assets/css/custom.css
new file mode 100644
index 0000000..7fa6c93
--- /dev/null
+++ b/assets/css/custom.css
@@ -0,0 +1,79 @@
+/*
+ * Custom Styles for TEST-CRM-APLIKACIJA
+ * Palette:
+ * Primary: #3B82F6
+ * Secondary: #6B7280
+ * Background: #F9FAFB
+ * Surface/Card: #FFFFFF
+ */
+
+@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
+
+body {
+ font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
+ background-color: #F9FAFB;
+ color: #374151; /* Gray 700 */
+}
+
+.navbar {
+ background-color: #FFFFFF;
+ border-bottom: 1px solid #E5E7EB; /* Gray 200 */
+}
+
+.btn-primary {
+ background-color: #3B82F6;
+ border-color: #3B82F6;
+ font-weight: 500;
+}
+
+.btn-primary:hover {
+ background-color: #2563EB;
+ border-color: #2563EB;
+}
+
+.card {
+ border: 1px solid #E5E7EB; /* Gray 200 */
+ border-radius: 0.5rem; /* rounded-lg */
+ box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
+}
+
+.table {
+ background-color: #FFFFFF;
+}
+
+.table thead th {
+ border-bottom-width: 1px;
+ border-color: #E5E7EB; /* Gray 200 */
+ font-weight: 600;
+ color: #4B5563; /* Gray 600 */
+ text-transform: uppercase;
+ letter-spacing: 0.05em;
+ font-size: 0.75rem;
+}
+
+.badge {
+ font-weight: 500;
+ font-size: 0.75rem;
+ padding: 0.3em 0.6em;
+}
+
+.modal-content {
+ border-radius: 0.5rem;
+ border: none;
+}
+
+.form-label {
+ font-weight: 500;
+ color: #374151; /* Gray 700 */
+}
+
+.toast {
+ width: 350px;
+ max-width: 100%;
+ font-size: .875rem;
+ background-color: rgba(255,255,255,.85);
+ background-clip: padding-box;
+ border: 1px solid rgba(0,0,0,.1);
+ box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
+ border-radius: .25rem;
+}
diff --git a/db/setup.php b/db/setup.php
new file mode 100644
index 0000000..4957fca
--- /dev/null
+++ b/db/setup.php
@@ -0,0 +1,33 @@
+exec($sql);
+ echo "Table 'team_members' created successfully (if it didn't exist).
";
+
+ // Optional: Seed with some data
+ $stmt = $db->query("SELECT COUNT(*) FROM team_members");
+ if ($stmt->fetchColumn() == 0) {
+ $seed_sql = "
+ INSERT INTO `team_members` (name, email, role, status) VALUES
+ ('John Doe', 'john.doe@example.com', 'Admin', 'active'),
+ ('Jane Smith', 'jane.smith@example.com', 'Project Manager', 'active'),
+ ('Peter Jones', 'peter.jones@example.com', 'Team Member', 'inactive');
+ ";
+ $db->exec($seed_sql);
+ echo "Seeded 'team_members' table with initial data.
";
+ }
+
+} catch (PDOException $e) {
+ die("DB setup failed: " . $e->getMessage());
+}
diff --git a/includes/footer.php b/includes/footer.php
new file mode 100644
index 0000000..d261d7c
--- /dev/null
+++ b/includes/footer.php
@@ -0,0 +1,45 @@
+
+
+
+