komb_k/
├── css/
│   └── style.css              # CSS stili priekš priekšējās daļas
├── js/
│   ├── calendar.js            # Handles FullCalendar initialization, event management (add/edit)
│   ├── dashboard.js           # Manages task filtering and displaying on the dashboard
│   ├── event_management.js    # Handles adding, editing, and deleting events
│   ├── load_categories.js     # Dynamically loads categories from the database
│   ├── login.js               # Manages login process and form submission
│   ├── sidebar.js             # Sidebar functionality for calendars
│   ├── user_management.js     # User management (CRUD operations)
│   ├── comment_management.js  # Handles adding, editing, and deleting comments
├── libs/
│   ├── index.global.min.css   # FullCalendar styles (locally loaded)
│   ├── index.global.min.js    # FullCalendar functionality (locally loaded)
├── php/
│   ├── utilities/
│   │   ├── db_connection.php  # Centralized database connection
│   │   ├── session_manager.php # Handles session and authentication
│   │   ├── response_util.php  # Standardized JSON response utility
│   │   ├── user_role_util.php # Functions for roles and user access management
│   ├── add_event.php          # Handles adding new events to the database
│   ├── add_role.php           # Handles adding new roles for user management
│   ├── add_comment.php        # Handles adding comments to events
│   ├── auth.php               # Handles user authentication (login)
│   ├── calendar.php           # Fetches the calendars the user belongs to
│   ├── dashboard.php          # Fetches tasks and calendar data for the dashboard
│   ├── db_config.php          # Contains database connection settings
│   ├── edit_event.php         # Handles editing events
│   ├── fetch_categories.php   # Fetches categories for event management
│   ├── fetch_events.php       # Fetches events from the database based on user access
│   ├── fetch_task.php         # Fetches tasks for the dashboard
│   ├── fetch_users.php        # Fetches users for user management
│   ├── get_user_role.php      # Fetches the current user's role
│   ├── logout.php             # Handles user logout and session destruction
│   ├── user_management.php    # Handles user management actions (add/edit/delete)
│   └── fetch_comments.php     # Fetches comments for events
├── views/
│   ├── calendar_view.html     # Calendar view with event management and filtering
│   ├── dashboard.html         # Dashboard that shows tasks, upcoming events, and filtering options
│   ├── login.html             # Login page for users
│   ├── user_management.html   # User management page for admins
└── index.php                  # Main entry point that redirects to the login page
