sidebar fix
This commit is contained in:
parent
061af6e6d7
commit
ccefd6e295
@ -248,8 +248,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Navigation Menu -->
|
<!-- Navigation Menu -->
|
||||||
<nav class="flex-1 overflow-y-auto py-2">
|
<nav class="flex-1 overflow-y-auto w-full">
|
||||||
<ul class="menu menu-sm px-2 text-sm">
|
<ul class="menu menu-sm w-full p-0 [&_li>*]:rounded-none text-sm gap-0.5">
|
||||||
<li>
|
<li>
|
||||||
<a href="<?= site_url('v2') ?>" class="<?= ($currentPage ?? '') === 'dashboard' ? 'active bg-primary text-primary-content' : 'text-white/70 hover:text-white hover:bg-white/5' ?>">
|
<a href="<?= site_url('v2') ?>" class="<?= ($currentPage ?? '') === 'dashboard' ? 'active bg-primary text-primary-content' : 'text-white/70 hover:text-white hover:bg-white/5' ?>">
|
||||||
<i data-lucide="layout-dashboard" class="w-4 h-4"></i>
|
<i data-lucide="layout-dashboard" class="w-4 h-4"></i>
|
||||||
@ -307,17 +307,18 @@
|
|||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<!-- User Profile Section -->
|
<!-- User Profile Section -->
|
||||||
<div class="p-3 border-t border-white/5">
|
<div class="p-4 border-t border-white/5 bg-black/20">
|
||||||
<div class="flex items-center gap-2 p-2 rounded-lg bg-black/10">
|
<div class="flex items-center gap-3">
|
||||||
<div class="avatar placeholder">
|
<div class="avatar placeholder">
|
||||||
<div class="w-8 h-8 rounded-lg bg-primary/30 text-white text-sm">
|
<div class="w-10 h-10 rounded-full bg-gradient-to-tr from-primary to-secondary text-white ring-2 ring-white/10 shadow-lg">
|
||||||
<span><?= substr(esc($user->username ?? 'U'), 0, 1) ?></span>
|
<span class="font-bold text-sm"><?= substr(esc($user->username ?? 'U'), 0, 1) ?></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-1 min-w-0">
|
<div class="flex-1 min-w-0 flex flex-col justify-center">
|
||||||
<div class="text-sm font-medium text-white truncate"><?= esc($user->username ?? 'User') ?></div>
|
<div class="text-sm font-bold text-white truncate leading-tight"><?= esc($user->username ?? 'User') ?></div>
|
||||||
|
<div class="text-[10px] text-white/50 truncate">View Profile</div>
|
||||||
</div>
|
</div>
|
||||||
<a href="<?= site_url('logout') ?>" class="btn btn-ghost btn-xs text-white/60 hover:text-error" title="Sign Out">
|
<a href="<?= site_url('logout') ?>" class="btn btn-ghost btn-circle btn-sm text-white/60 hover:text-error hover:bg-error/10" title="Sign Out">
|
||||||
<i data-lucide="log-out" class="w-4 h-4"></i>
|
<i data-lucide="log-out" class="w-4 h-4"></i>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -95,58 +95,60 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Generic Modal -->
|
<!-- Generic Modal -->
|
||||||
<dialog id="orgModal" class="modal" :class="{ 'modal-open': isModalOpen }">
|
<template x-teleport="body">
|
||||||
<div class="modal-box">
|
<dialog id="orgModal" class="modal" :class="{ 'modal-open': isModalOpen }">
|
||||||
<h3 class="font-bold text-lg mb-4" x-text="isEdit ? 'Edit ' + activeTab : 'New ' + activeTab"></h3>
|
<div class="modal-box">
|
||||||
|
<h3 class="font-bold text-lg mb-4" x-text="isEdit ? 'Edit ' + activeTab : 'New ' + activeTab"></h3>
|
||||||
<form @submit.prevent="save">
|
|
||||||
<div class="form-control w-full mb-4">
|
|
||||||
<label class="label"><span class="label-text">Name</span></label>
|
|
||||||
<input type="text" x-model="form.Name" class="input input-bordered w-full" required />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Account Fields -->
|
|
||||||
<template x-if="activeTab === 'account'">
|
|
||||||
<div class="form-control w-full mb-4">
|
|
||||||
<label class="label"><span class="label-text">Parent Account</span></label>
|
|
||||||
<input type="text" x-model="form.Parent" class="input input-bordered w-full" placeholder="Optional" />
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<!-- Site Fields: Account ID Link -->
|
|
||||||
<template x-if="activeTab === 'site'">
|
|
||||||
<div class="form-control w-full mb-4">
|
|
||||||
<label class="label"><span class="label-text">Account ID</span></label>
|
|
||||||
<input type="number" x-model="form.AccountID" class="input input-bordered w-full" required />
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<!-- Department Fields: Site ID Link -->
|
<form @submit.prevent="save">
|
||||||
<template x-if="activeTab === 'department'">
|
|
||||||
<div class="form-control w-full mb-4">
|
<div class="form-control w-full mb-4">
|
||||||
<label class="label"><span class="label-text">Site ID</span></label>
|
<label class="label"><span class="label-text">Name</span></label>
|
||||||
<input type="number" x-model="form.SiteID" class="input input-bordered w-full" required />
|
<input type="text" x-model="form.Name" class="input input-bordered w-full" required />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
|
||||||
|
|
||||||
<!-- Workstation Fields: Department ID Link -->
|
|
||||||
<template x-if="activeTab === 'workstation'">
|
|
||||||
<div class="form-control w-full mb-4">
|
|
||||||
<label class="label"><span class="label-text">Department ID</span></label>
|
|
||||||
<input type="number" x-model="form.DepartmentID" class="input input-bordered w-full" required />
|
|
||||||
</div>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<div class="modal-action">
|
<!-- Account Fields -->
|
||||||
<button type="button" class="btn" @click="closeModal">Cancel</button>
|
<template x-if="activeTab === 'account'">
|
||||||
<button type="submit" class="btn btn-primary" :disabled="isSaving">
|
<div class="form-control w-full mb-4">
|
||||||
<span x-show="isSaving" class="loading loading-spinner loading-xs"></span>
|
<label class="label"><span class="label-text">Parent Account</span></label>
|
||||||
Save
|
<input type="text" x-model="form.Parent" class="input input-bordered w-full" placeholder="Optional" />
|
||||||
</button>
|
</div>
|
||||||
</div>
|
</template>
|
||||||
</form>
|
|
||||||
</div>
|
<!-- Site Fields: Account ID Link -->
|
||||||
</dialog>
|
<template x-if="activeTab === 'site'">
|
||||||
|
<div class="form-control w-full mb-4">
|
||||||
|
<label class="label"><span class="label-text">Account ID</span></label>
|
||||||
|
<input type="number" x-model="form.AccountID" class="input input-bordered w-full" required />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<!-- Department Fields: Site ID Link -->
|
||||||
|
<template x-if="activeTab === 'department'">
|
||||||
|
<div class="form-control w-full mb-4">
|
||||||
|
<label class="label"><span class="label-text">Site ID</span></label>
|
||||||
|
<input type="number" x-model="form.SiteID" class="input input-bordered w-full" required />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<!-- Workstation Fields: Department ID Link -->
|
||||||
|
<template x-if="activeTab === 'workstation'">
|
||||||
|
<div class="form-control w-full mb-4">
|
||||||
|
<label class="label"><span class="label-text">Department ID</span></label>
|
||||||
|
<input type="number" x-model="form.DepartmentID" class="input input-bordered w-full" required />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<div class="modal-action">
|
||||||
|
<button type="button" class="btn" @click="closeModal">Cancel</button>
|
||||||
|
<button type="submit" class="btn btn-primary" :disabled="isSaving">
|
||||||
|
<span x-show="isSaving" class="loading loading-spinner loading-xs"></span>
|
||||||
|
Save
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</dialog>
|
||||||
|
</template>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -180,238 +180,242 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Form Modal -->
|
<!-- Form Modal -->
|
||||||
<dialog id="patientModal" class="modal" :class="{ 'modal-open': showFormModal }">
|
<template x-teleport="body">
|
||||||
<div class="modal-box w-11/12 max-w-5xl">
|
<dialog id="patientModal" class="modal" :class="{ 'modal-open': showFormModal }">
|
||||||
<form method="dialog">
|
<div class="modal-box w-11/12 max-w-5xl">
|
||||||
<button class="btn btn-sm btn-circle btn-ghost absolute right-2 top-2" @click="closeFormModal()">✕</button>
|
<form method="dialog">
|
||||||
</form>
|
<button class="btn btn-sm btn-circle btn-ghost absolute right-2 top-2" @click="closeFormModal()">✕</button>
|
||||||
|
</form>
|
||||||
<h3 class="font-bold text-lg mb-6" x-text="isEdit ? 'Edit Patient' : 'New Patient'"></h3>
|
|
||||||
|
<h3 class="font-bold text-lg mb-6" x-text="isEdit ? 'Edit Patient' : 'New Patient'"></h3>
|
||||||
<!-- Error Alert in Modal -->
|
|
||||||
<template x-if="formError">
|
<!-- Error Alert in Modal -->
|
||||||
<div class="alert alert-error mb-6">
|
<template x-if="formError">
|
||||||
<i data-lucide="alert-circle" class="w-5 h-5"></i>
|
<div class="alert alert-error mb-6">
|
||||||
<span x-text="formError"></span>
|
<i data-lucide="alert-circle" class="w-5 h-5"></i>
|
||||||
</div>
|
<span x-text="formError"></span>
|
||||||
</template>
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
<form @submit.prevent="submitForm">
|
<form @submit.prevent="submitForm">
|
||||||
<!-- Personal Information -->
|
<!-- Personal Information -->
|
||||||
<div class="mb-6">
|
<div class="mb-6">
|
||||||
<h4 class="text-base font-semibold mb-3 flex items-center gap-2">
|
<h4 class="text-base font-semibold mb-3 flex items-center gap-2">
|
||||||
<i data-lucide="user" class="w-4 h-4"></i> Personal Information
|
<i data-lucide="user" class="w-4 h-4"></i> Personal Information
|
||||||
</h4>
|
</h4>
|
||||||
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
|
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
|
||||||
<div class="form-control">
|
<div class="form-control">
|
||||||
<label class="label"><span class="label-text">Patient ID (MRN)</span></label>
|
<label class="label"><span class="label-text">Patient ID (MRN)</span></label>
|
||||||
<input type="text" class="input input-bordered" x-model="form.PatientID" placeholder="Auto-generated">
|
<input type="text" class="input input-bordered" x-model="form.PatientID" placeholder="Auto-generated">
|
||||||
</div>
|
</div>
|
||||||
<div class="form-control">
|
<div class="form-control">
|
||||||
<label class="label"><span class="label-text">Prefix</span></label>
|
<label class="label"><span class="label-text">Prefix</span></label>
|
||||||
<select class="select select-bordered" x-model="form.Prefix">
|
<select class="select select-bordered" x-model="form.Prefix">
|
||||||
<option value="">Select...</option>
|
<option value="">Select...</option>
|
||||||
<option value="Mr.">Mr.</option>
|
<option value="Mr.">Mr.</option>
|
||||||
<option value="Mrs.">Mrs.</option>
|
<option value="Mrs.">Mrs.</option>
|
||||||
<option value="Ms.">Ms.</option>
|
<option value="Ms.">Ms.</option>
|
||||||
<option value="Dr.">Dr.</option>
|
<option value="Dr.">Dr.</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-control">
|
<div class="form-control">
|
||||||
<label class="label"><span class="label-text">First Name *</span></label>
|
<label class="label"><span class="label-text">First Name *</span></label>
|
||||||
<input type="text" class="input input-bordered" x-model="form.NameFirst" required>
|
<input type="text" class="input input-bordered" x-model="form.NameFirst" required>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-control">
|
<div class="form-control">
|
||||||
<label class="label"><span class="label-text">Middle Name</span></label>
|
<label class="label"><span class="label-text">Middle Name</span></label>
|
||||||
<input type="text" class="input input-bordered" x-model="form.NameMiddle">
|
<input type="text" class="input input-bordered" x-model="form.NameMiddle">
|
||||||
</div>
|
</div>
|
||||||
<div class="form-control">
|
<div class="form-control">
|
||||||
<label class="label"><span class="label-text">Last Name</span></label>
|
<label class="label"><span class="label-text">Last Name</span></label>
|
||||||
<input type="text" class="input input-bordered" x-model="form.NameLast">
|
<input type="text" class="input input-bordered" x-model="form.NameLast">
|
||||||
</div>
|
</div>
|
||||||
<div class="form-control">
|
<div class="form-control">
|
||||||
<label class="label"><span class="label-text">Suffix</span></label>
|
<label class="label"><span class="label-text">Suffix</span></label>
|
||||||
<input type="text" class="input input-bordered" x-model="form.Suffix">
|
<input type="text" class="input input-bordered" x-model="form.Suffix">
|
||||||
</div>
|
</div>
|
||||||
<div class="form-control">
|
<div class="form-control">
|
||||||
<label class="label"><span class="label-text">Gender *</span></label>
|
<label class="label"><span class="label-text">Gender *</span></label>
|
||||||
<select class="select select-bordered" x-model="form.Gender" required>
|
<select class="select select-bordered" x-model="form.Gender" required>
|
||||||
<option value="">Select...</option>
|
<option value="">Select...</option>
|
||||||
<template x-for="g in options.gender" :key="g.VID">
|
<template x-for="g in options.gender" :key="g.VID">
|
||||||
<option :value="g.VID" x-text="g.VDesc"></option>
|
<option :value="g.VID" x-text="g.VDesc"></option>
|
||||||
</template>
|
</template>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-control">
|
<div class="form-control">
|
||||||
<label class="label"><span class="label-text">Birthdate *</span></label>
|
<label class="label"><span class="label-text">Birthdate *</span></label>
|
||||||
<input type="date" class="input input-bordered" x-model="form.Birthdate" required>
|
<input type="date" class="input input-bordered" x-model="form.Birthdate" required>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-control">
|
<div class="form-control">
|
||||||
<label class="label"><span class="label-text">Place of Birth</span></label>
|
<label class="label"><span class="label-text">Place of Birth</span></label>
|
||||||
<input type="text" class="input input-bordered" x-model="form.PlaceOfBirth">
|
<input type="text" class="input input-bordered" x-model="form.PlaceOfBirth">
|
||||||
</div>
|
</div>
|
||||||
<div class="form-control">
|
<div class="form-control">
|
||||||
<label class="label"><span class="label-text">Marital Status</span></label>
|
<label class="label"><span class="label-text">Marital Status</span></label>
|
||||||
<select class="select select-bordered" x-model="form.MaritalStatus">
|
<select class="select select-bordered" x-model="form.MaritalStatus">
|
||||||
<option value="">Select...</option>
|
<option value="">Select...</option>
|
||||||
<template x-for="m in options.marital" :key="m.VID">
|
<template x-for="m in options.marital" :key="m.VID">
|
||||||
<option :value="m.VID" x-text="m.VDesc"></option>
|
<option :value="m.VID" x-text="m.VDesc"></option>
|
||||||
</template>
|
</template>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-control">
|
<div class="form-control">
|
||||||
<label class="label"><span class="label-text">Religion</span></label>
|
<label class="label"><span class="label-text">Religion</span></label>
|
||||||
<select class="select select-bordered" x-model="form.Religion">
|
<select class="select select-bordered" x-model="form.Religion">
|
||||||
<option value="">Select...</option>
|
<option value="">Select...</option>
|
||||||
<template x-for="r in options.religion" :key="r.VID">
|
<template x-for="r in options.religion" :key="r.VID">
|
||||||
<option :value="r.VID" x-text="r.VDesc"></option>
|
<option :value="r.VID" x-text="r.VDesc"></option>
|
||||||
</template>
|
</template>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-control">
|
<div class="form-control">
|
||||||
<label class="label"><span class="label-text">Ethnic</span></label>
|
<label class="label"><span class="label-text">Ethnic</span></label>
|
||||||
<select class="select select-bordered" x-model="form.Ethnic">
|
<select class="select select-bordered" x-model="form.Ethnic">
|
||||||
<option value="">Select...</option>
|
<option value="">Select...</option>
|
||||||
<template x-for="e in options.ethnic" :key="e.VID">
|
<template x-for="e in options.ethnic" :key="e.VID">
|
||||||
<option :value="e.VID" x-text="e.VDesc"></option>
|
<option :value="e.VID" x-text="e.VDesc"></option>
|
||||||
</template>
|
</template>
|
||||||
</select>
|
</select>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Contact Information -->
|
<!-- Contact Information -->
|
||||||
<div class="mb-6">
|
<div class="mb-6">
|
||||||
<h4 class="text-base font-semibold mb-3 flex items-center gap-2">
|
<h4 class="text-base font-semibold mb-3 flex items-center gap-2">
|
||||||
<i data-lucide="phone" class="w-4 h-4"></i> Contact Information
|
<i data-lucide="phone" class="w-4 h-4"></i> Contact Information
|
||||||
</h4>
|
</h4>
|
||||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||||
<div class="form-control">
|
<div class="form-control">
|
||||||
<label class="label"><span class="label-text">Mobile Phone</span></label>
|
<label class="label"><span class="label-text">Mobile Phone</span></label>
|
||||||
<input type="tel" class="input input-bordered" x-model="form.MobilePhone">
|
<input type="tel" class="input input-bordered" x-model="form.MobilePhone">
|
||||||
</div>
|
</div>
|
||||||
<div class="form-control">
|
<div class="form-control">
|
||||||
<label class="label"><span class="label-text">Phone</span></label>
|
<label class="label"><span class="label-text">Phone</span></label>
|
||||||
<input type="tel" class="input input-bordered" x-model="form.Phone">
|
<input type="tel" class="input input-bordered" x-model="form.Phone">
|
||||||
</div>
|
</div>
|
||||||
<div class="form-control">
|
<div class="form-control">
|
||||||
<label class="label"><span class="label-text">Email Address</span></label>
|
<label class="label"><span class="label-text">Email Address</span></label>
|
||||||
<input type="email" class="input input-bordered" x-model="form.EmailAddress1">
|
<input type="email" class="input input-bordered" x-model="form.EmailAddress1">
|
||||||
</div>
|
</div>
|
||||||
<div class="form-control">
|
<div class="form-control">
|
||||||
<label class="label"><span class="label-text">Alternate Email</span></label>
|
<label class="label"><span class="label-text">Alternate Email</span></label>
|
||||||
<input type="email" class="input input-bordered" x-model="form.EmailAddress2">
|
<input type="email" class="input input-bordered" x-model="form.EmailAddress2">
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Address -->
|
<!-- Address -->
|
||||||
<div class="mb-6">
|
<div class="mb-6">
|
||||||
<h4 class="text-base font-semibold mb-3 flex items-center gap-2">
|
<h4 class="text-base font-semibold mb-3 flex items-center gap-2">
|
||||||
<i data-lucide="map-pin" class="w-4 h-4"></i> Address
|
<i data-lucide="map-pin" class="w-4 h-4"></i> Address
|
||||||
</h4>
|
</h4>
|
||||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||||
<div class="form-control md:col-span-2">
|
<div class="form-control md:col-span-2">
|
||||||
<label class="label"><span class="label-text">Street Address</span></label>
|
<label class="label"><span class="label-text">Street Address</span></label>
|
||||||
<input type="text" class="input input-bordered" x-model="form.Street_1">
|
<input type="text" class="input input-bordered" x-model="form.Street_1">
|
||||||
</div>
|
</div>
|
||||||
<div class="form-control md:col-span-2">
|
<div class="form-control md:col-span-2">
|
||||||
<label class="label"><span class="label-text">Street Address 2</span></label>
|
<label class="label"><span class="label-text">Street Address 2</span></label>
|
||||||
<input type="text" class="input input-bordered" x-model="form.Street_2">
|
<input type="text" class="input input-bordered" x-model="form.Street_2">
|
||||||
</div>
|
</div>
|
||||||
<div class="form-control">
|
<div class="form-control">
|
||||||
<label class="label"><span class="label-text">Province</span></label>
|
<label class="label"><span class="label-text">Province</span></label>
|
||||||
<select class="select select-bordered" x-model="form.Province" @change="loadCities">
|
<select class="select select-bordered" x-model="form.Province" @change="loadCities">
|
||||||
<option value="">Select Province...</option>
|
<option value="">Select Province...</option>
|
||||||
<template x-for="p in options.provinces" :key="p.AreaGeoID">
|
<template x-for="p in options.provinces" :key="p.AreaGeoID">
|
||||||
<option :value="p.AreaGeoID" x-text="p.AreaName"></option>
|
<option :value="p.AreaGeoID" x-text="p.AreaName"></option>
|
||||||
</template>
|
</template>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-control">
|
<div class="form-control">
|
||||||
<label class="label"><span class="label-text">City</span></label>
|
<label class="label"><span class="label-text">City</span></label>
|
||||||
<select class="select select-bordered" x-model="form.City" :disabled="!form.Province">
|
<select class="select select-bordered" x-model="form.City" :disabled="!form.Province">
|
||||||
<option value="">Select City...</option>
|
<option value="">Select City...</option>
|
||||||
<template x-for="c in options.cities" :key="c.AreaGeoID">
|
<template x-for="c in options.cities" :key="c.AreaGeoID">
|
||||||
<option :value="c.AreaGeoID" x-text="c.AreaName"></option>
|
<option :value="c.AreaGeoID" x-text="c.AreaName"></option>
|
||||||
</template>
|
</template>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-control">
|
<div class="form-control">
|
||||||
<label class="label"><span class="label-text">ZIP Code</span></label>
|
<label class="label"><span class="label-text">ZIP Code</span></label>
|
||||||
<input type="text" class="input input-bordered" x-model="form.ZIP">
|
<input type="text" class="input input-bordered" x-model="form.ZIP">
|
||||||
</div>
|
</div>
|
||||||
<div class="form-control">
|
<div class="form-control">
|
||||||
<label class="label"><span class="label-text">Country</span></label>
|
<label class="label"><span class="label-text">Country</span></label>
|
||||||
<select class="select select-bordered" x-model="form.Country">
|
<select class="select select-bordered" x-model="form.Country">
|
||||||
<option value="">Select...</option>
|
<option value="">Select...</option>
|
||||||
<template x-for="c in options.country" :key="c.VID">
|
<template x-for="c in options.country" :key="c.VID">
|
||||||
<option :value="c.VID" x-text="c.VDesc"></option>
|
<option :value="c.VID" x-text="c.VDesc"></option>
|
||||||
</template>
|
</template>
|
||||||
</select>
|
</select>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- Identifier -->
|
<!-- Identifier -->
|
||||||
<div class="mb-6">
|
<div class="mb-6">
|
||||||
<h4 class="text-base font-semibold mb-3 flex items-center gap-2">
|
<h4 class="text-base font-semibold mb-3 flex items-center gap-2">
|
||||||
<i data-lucide="id-card" class="w-4 h-4"></i> Identifier
|
<i data-lucide="id-card" class="w-4 h-4"></i> Identifier
|
||||||
</h4>
|
</h4>
|
||||||
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
||||||
<div class="form-control">
|
<div class="form-control">
|
||||||
<label class="label"><span class="label-text">ID Type</span></label>
|
<label class="label"><span class="label-text">ID Type</span></label>
|
||||||
<select class="select select-bordered" x-model="form.PatIdt.IdentifierType">
|
<select class="select select-bordered" x-model="form.PatIdt.IdentifierType">
|
||||||
<option value="">Select...</option>
|
<option value="">Select...</option>
|
||||||
<option value="KTP">KTP</option>
|
<option value="KTP">KTP</option>
|
||||||
<option value="SIM">SIM</option>
|
<option value="SIM">SIM</option>
|
||||||
<option value="Passport">Passport</option>
|
<option value="Passport">Passport</option>
|
||||||
<option value="BPJS">BPJS</option>
|
<option value="BPJS">BPJS</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-control">
|
<div class="form-control">
|
||||||
<label class="label"><span class="label-text">ID Number</span></label>
|
<label class="label"><span class="label-text">ID Number</span></label>
|
||||||
<input type="text" class="input input-bordered" x-model="form.PatIdt.Identifier">
|
<input type="text" class="input input-bordered" x-model="form.PatIdt.Identifier">
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="modal-action">
|
<div class="modal-action">
|
||||||
<button type="button" class="btn" @click="closeFormModal()">Cancel</button>
|
<button type="button" class="btn" @click="closeFormModal()">Cancel</button>
|
||||||
<button type="submit" class="btn btn-primary" :disabled="isSubmitting">
|
<button type="submit" class="btn btn-primary" :disabled="isSubmitting">
|
||||||
<span x-show="isSubmitting" class="loading loading-spinner loading-sm"></span>
|
<span x-show="isSubmitting" class="loading loading-spinner loading-sm"></span>
|
||||||
<span x-text="isSubmitting ? 'Saving...' : 'Save Patient'"></span>
|
<span x-text="isSubmitting ? 'Saving...' : 'Save Patient'"></span>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</dialog>
|
</dialog>
|
||||||
|
</template>
|
||||||
|
|
||||||
<!-- Delete Confirmation Modal -->
|
<!-- Delete Confirmation Modal -->
|
||||||
<dialog id="deleteModal" class="modal" :class="{ 'modal-open': showDeleteModal }">
|
<template x-teleport="body">
|
||||||
<div class="modal-box">
|
<dialog id="deleteModal" class="modal" :class="{ 'modal-open': showDeleteModal }">
|
||||||
<h3 class="font-bold text-lg">Delete Patient</h3>
|
<div class="modal-box">
|
||||||
<p class="py-4">
|
<h3 class="font-bold text-lg">Delete Patient</h3>
|
||||||
Are you sure you want to delete patient
|
<p class="py-4">
|
||||||
<span class="font-semibold" x-text="deleteTarget?.FullName"></span>?
|
Are you sure you want to delete patient
|
||||||
This action cannot be undone.
|
<span class="font-semibold" x-text="deleteTarget?.FullName"></span>?
|
||||||
</p>
|
This action cannot be undone.
|
||||||
<div class="modal-action">
|
</p>
|
||||||
<button class="btn" @click="showDeleteModal = false">Cancel</button>
|
<div class="modal-action">
|
||||||
<button
|
<button class="btn" @click="showDeleteModal = false">Cancel</button>
|
||||||
class="btn btn-error"
|
<button
|
||||||
@click="deletePatient"
|
class="btn btn-error"
|
||||||
:disabled="isDeleting"
|
@click="deletePatient"
|
||||||
>
|
:disabled="isDeleting"
|
||||||
<span x-show="isDeleting" class="loading loading-spinner loading-sm"></span>
|
>
|
||||||
Delete
|
<span x-show="isDeleting" class="loading loading-spinner loading-sm"></span>
|
||||||
</button>
|
Delete
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<form method="dialog" class="modal-backdrop">
|
||||||
<form method="dialog" class="modal-backdrop">
|
<button @click="showDeleteModal = false">close</button>
|
||||||
<button @click="showDeleteModal = false">close</button>
|
</form>
|
||||||
</form>
|
</dialog>
|
||||||
</dialog>
|
</template>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -159,94 +159,98 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Def Modal -->
|
<!-- Def Modal -->
|
||||||
<dialog class="modal" :class="{ 'modal-open': isDefModalOpen }">
|
<template x-teleport="body">
|
||||||
<div class="modal-box transform transition-all">
|
<dialog class="modal" :class="{ 'modal-open': isDefModalOpen }">
|
||||||
<form method="dialog">
|
<div class="modal-box transform transition-all">
|
||||||
<button class="btn btn-sm btn-circle btn-ghost absolute right-2 top-2" @click="isDefModalOpen = false">✕</button>
|
<form method="dialog">
|
||||||
</form>
|
<button class="btn btn-sm btn-circle btn-ghost absolute right-2 top-2" @click="isDefModalOpen = false">✕</button>
|
||||||
|
</form>
|
||||||
<h3 class="font-bold text-xl mb-6 flex items-center gap-2">
|
|
||||||
<div class="bg-primary/10 p-2 rounded-lg text-primary">
|
<h3 class="font-bold text-xl mb-6 flex items-center gap-2">
|
||||||
<i data-lucide="book-open" class="w-6 h-6"></i>
|
<div class="bg-primary/10 p-2 rounded-lg text-primary">
|
||||||
</div>
|
<i data-lucide="book-open" class="w-6 h-6"></i>
|
||||||
<span x-text="isEditDef ? 'Edit Definition' : 'New Definition'"></span>
|
</div>
|
||||||
</h3>
|
<span x-text="isEditDef ? 'Edit Definition' : 'New Definition'"></span>
|
||||||
|
</h3>
|
||||||
<form @submit.prevent="saveDef">
|
|
||||||
<div class="space-y-4">
|
<form @submit.prevent="saveDef">
|
||||||
<!-- ID Field (Readonly/Hidden Logic) -->
|
<div class="space-y-4">
|
||||||
<div class="form-control" x-show="isEditDef">
|
<!-- ID Field (Readonly/Hidden Logic) -->
|
||||||
<label class="label"><span class="label-text font-medium">System ID</span></label>
|
<div class="form-control" x-show="isEditDef">
|
||||||
<input type="text" x-model="defForm.VSetID" class="input input-sm input-bordered bg-base-200 font-mono" disabled />
|
<label class="label"><span class="label-text font-medium">System ID</span></label>
|
||||||
</div>
|
<input type="text" x-model="defForm.VSetID" class="input input-sm input-bordered bg-base-200 font-mono" disabled />
|
||||||
|
</div>
|
||||||
<div class="form-control">
|
|
||||||
<label class="label"><span class="label-text font-medium">Name</span></label>
|
<div class="form-control">
|
||||||
<input type="text" x-model="defForm.VSName" class="input input-bordered focus:input-primary w-full" placeholder="e.g. Gender" required />
|
<label class="label"><span class="label-text font-medium">Name</span></label>
|
||||||
</div>
|
<input type="text" x-model="defForm.VSName" class="input input-bordered focus:input-primary w-full" placeholder="e.g. Gender" required />
|
||||||
|
</div>
|
||||||
<div class="form-control">
|
|
||||||
<label class="label"><span class="label-text font-medium">Description</span></label>
|
<div class="form-control">
|
||||||
<textarea x-model="defForm.VSDesc" class="textarea textarea-bordered focus:textarea-primary h-24" placeholder="Describe the purpose of this value set..." required></textarea>
|
<label class="label"><span class="label-text font-medium">Description</span></label>
|
||||||
</div>
|
<textarea x-model="defForm.VSDesc" class="textarea textarea-bordered focus:textarea-primary h-24" placeholder="Describe the purpose of this value set..." required></textarea>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="modal-action">
|
<div class="modal-action">
|
||||||
<button type="button" class="btn" @click="isDefModalOpen = false">Cancel</button>
|
<button type="button" class="btn" @click="isDefModalOpen = false">Cancel</button>
|
||||||
<button type="submit" class="btn btn-primary px-8">
|
<button type="submit" class="btn btn-primary px-8">
|
||||||
Save Definition
|
Save Definition
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<form method="dialog" class="modal-backdrop">
|
<form method="dialog" class="modal-backdrop">
|
||||||
<button @click="isDefModalOpen = false">close</button>
|
<button @click="isDefModalOpen = false">close</button>
|
||||||
</form>
|
</form>
|
||||||
</dialog>
|
</dialog>
|
||||||
|
</template>
|
||||||
|
|
||||||
<!-- Value Modal -->
|
<!-- Value Modal -->
|
||||||
<dialog class="modal" :class="{ 'modal-open': isValueModalOpen }">
|
<template x-teleport="body">
|
||||||
<div class="modal-box transform transition-all">
|
<dialog class="modal" :class="{ 'modal-open': isValueModalOpen }">
|
||||||
<form method="dialog">
|
<div class="modal-box transform transition-all">
|
||||||
<button class="btn btn-sm btn-circle btn-ghost absolute right-2 top-2" @click="isValueModalOpen = false">✕</button>
|
<form method="dialog">
|
||||||
</form>
|
<button class="btn btn-sm btn-circle btn-ghost absolute right-2 top-2" @click="isValueModalOpen = false">✕</button>
|
||||||
|
</form>
|
||||||
|
|
||||||
<h3 class="font-bold text-xl mb-6 flex items-center gap-2">
|
<h3 class="font-bold text-xl mb-6 flex items-center gap-2">
|
||||||
<div class="bg-secondary/10 p-2 rounded-lg text-secondary">
|
<div class="bg-secondary/10 p-2 rounded-lg text-secondary">
|
||||||
<i data-lucide="list" class="w-6 h-6"></i>
|
<i data-lucide="list" class="w-6 h-6"></i>
|
||||||
</div>
|
</div>
|
||||||
<span x-text="isEditValue ? 'Edit Value' : 'Add New Value'"></span>
|
<span x-text="isEditValue ? 'Edit Value' : 'Add New Value'"></span>
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<form @submit.prevent="saveValue">
|
<form @submit.prevent="saveValue">
|
||||||
<div class="space-y-4">
|
<div class="space-y-4">
|
||||||
<div class="form-control">
|
<div class="form-control">
|
||||||
<label class="label"><span class="label-text font-medium">Display Value</span></label>
|
<label class="label"><span class="label-text font-medium">Display Value</span></label>
|
||||||
<input type="text" x-model="valueForm.VValue" class="input input-bordered focus:input-primary w-full" placeholder="e.g. Male" required />
|
<input type="text" x-model="valueForm.VValue" class="input input-bordered focus:input-primary w-full" placeholder="e.g. Male" required />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="grid grid-cols-2 gap-4">
|
<div class="grid grid-cols-2 gap-4">
|
||||||
<div class="form-control">
|
<div class="form-control">
|
||||||
<label class="label"><span class="label-text font-medium">Description</span></label>
|
<label class="label"><span class="label-text font-medium">Description</span></label>
|
||||||
<input type="text" x-model="valueForm.VDesc" class="input input-bordered w-full" placeholder="Optional" />
|
<input type="text" x-model="valueForm.VDesc" class="input input-bordered w-full" placeholder="Optional" />
|
||||||
</div>
|
</div>
|
||||||
<div class="form-control">
|
<div class="form-control">
|
||||||
<label class="label"><span class="label-text font-medium">Sort Order</span></label>
|
<label class="label"><span class="label-text font-medium">Sort Order</span></label>
|
||||||
<input type="number" x-model="valueForm.SortOrder" class="input input-bordered w-full" placeholder="0" />
|
<input type="number" x-model="valueForm.SortOrder" class="input input-bordered w-full" placeholder="0" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="modal-action">
|
<div class="modal-action">
|
||||||
<button type="button" class="btn" @click="isValueModalOpen = false">Cancel</button>
|
<button type="button" class="btn" @click="isValueModalOpen = false">Cancel</button>
|
||||||
<button type="submit" class="btn btn-primary px-8">Save Value</button>
|
<button type="submit" class="btn btn-primary px-8">Save Value</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<form method="dialog" class="modal-backdrop">
|
<form method="dialog" class="modal-backdrop">
|
||||||
<button @click="isValueModalOpen = false">close</button>
|
<button @click="isValueModalOpen = false">close</button>
|
||||||
</form>
|
</form>
|
||||||
</dialog>
|
</dialog>
|
||||||
|
</template>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -1,524 +0,0 @@
|
|||||||
/* ========================================
|
|
||||||
CLQMS Frontend - Fun & Light Theme
|
|
||||||
======================================== */
|
|
||||||
|
|
||||||
/* ---------- CSS Variables ---------- */
|
|
||||||
:root {
|
|
||||||
/* Fun Color Palette */
|
|
||||||
--primary: #6366f1; /* Indigo */
|
|
||||||
--primary-light: #818cf8;
|
|
||||||
--primary-dark: #4f46e5;
|
|
||||||
|
|
||||||
--secondary: #f472b6; /* Pink */
|
|
||||||
--secondary-light: #f9a8d4;
|
|
||||||
|
|
||||||
--accent: #34d399; /* Emerald */
|
|
||||||
--accent-light: #6ee7b7;
|
|
||||||
|
|
||||||
--warning: #fbbf24; /* Amber */
|
|
||||||
--danger: #f87171; /* Red */
|
|
||||||
--info: #38bdf8; /* Sky */
|
|
||||||
|
|
||||||
/* Neutrals */
|
|
||||||
--bg-primary: #fefefe;
|
|
||||||
--bg-secondary: #f8fafc;
|
|
||||||
--bg-card: #ffffff;
|
|
||||||
|
|
||||||
--text-primary: #1e293b;
|
|
||||||
--text-secondary: #64748b;
|
|
||||||
--text-muted: #94a3b8;
|
|
||||||
|
|
||||||
--border-color: #e2e8f0;
|
|
||||||
--border-radius: 16px;
|
|
||||||
--border-radius-sm: 10px;
|
|
||||||
--border-radius-lg: 24px;
|
|
||||||
|
|
||||||
/* Shadows */
|
|
||||||
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
||||||
--shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
|
||||||
--shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
||||||
--shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
|
|
||||||
--shadow-glow: 0 0 40px -10px var(--primary);
|
|
||||||
|
|
||||||
/* Transitions */
|
|
||||||
--transition-fast: 150ms ease;
|
|
||||||
--transition-normal: 250ms ease;
|
|
||||||
--transition-slow: 350ms ease;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ---------- Reset & Base ---------- */
|
|
||||||
*, *::before, *::after {
|
|
||||||
box-sizing: border-box;
|
|
||||||
margin: 0;
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
html {
|
|
||||||
font-size: 16px;
|
|
||||||
scroll-behavior: smooth;
|
|
||||||
}
|
|
||||||
|
|
||||||
body {
|
|
||||||
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
||||||
background: var(--bg-secondary);
|
|
||||||
color: var(--text-primary);
|
|
||||||
line-height: 1.6;
|
|
||||||
min-height: 100vh;
|
|
||||||
-webkit-font-smoothing: antialiased;
|
|
||||||
-moz-osx-font-smoothing: grayscale;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ---------- Typography ---------- */
|
|
||||||
h1, h2, h3, h4, h5, h6 {
|
|
||||||
font-weight: 700;
|
|
||||||
line-height: 1.2;
|
|
||||||
color: var(--text-primary);
|
|
||||||
}
|
|
||||||
|
|
||||||
h1 { font-size: 2.5rem; }
|
|
||||||
h2 { font-size: 2rem; }
|
|
||||||
h3 { font-size: 1.5rem; }
|
|
||||||
h4 { font-size: 1.25rem; }
|
|
||||||
|
|
||||||
p {
|
|
||||||
color: var(--text-secondary);
|
|
||||||
}
|
|
||||||
|
|
||||||
a {
|
|
||||||
color: var(--primary);
|
|
||||||
text-decoration: none;
|
|
||||||
transition: color var(--transition-fast);
|
|
||||||
}
|
|
||||||
|
|
||||||
a:hover {
|
|
||||||
color: var(--primary-dark);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ---------- Fun Background Patterns ---------- */
|
|
||||||
.bg-pattern {
|
|
||||||
background-color: var(--bg-secondary);
|
|
||||||
background-image:
|
|
||||||
radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
|
|
||||||
radial-gradient(circle at 80% 20%, rgba(244, 114, 182, 0.08) 0%, transparent 50%),
|
|
||||||
radial-gradient(circle at 40% 40%, rgba(52, 211, 153, 0.06) 0%, transparent 40%);
|
|
||||||
}
|
|
||||||
|
|
||||||
.bg-gradient-fun {
|
|
||||||
background: linear-gradient(135deg,
|
|
||||||
rgba(99, 102, 241, 0.1) 0%,
|
|
||||||
rgba(244, 114, 182, 0.1) 50%,
|
|
||||||
rgba(52, 211, 153, 0.1) 100%);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ---------- Card Component ---------- */
|
|
||||||
.card {
|
|
||||||
background: var(--bg-card);
|
|
||||||
border-radius: var(--border-radius);
|
|
||||||
box-shadow: var(--shadow-md);
|
|
||||||
padding: 2rem;
|
|
||||||
transition: transform var(--transition-normal), box-shadow var(--transition-normal);
|
|
||||||
}
|
|
||||||
|
|
||||||
.card:hover {
|
|
||||||
transform: translateY(-2px);
|
|
||||||
box-shadow: var(--shadow-lg);
|
|
||||||
}
|
|
||||||
|
|
||||||
.card-glass {
|
|
||||||
background: rgba(255, 255, 255, 0.8);
|
|
||||||
backdrop-filter: blur(20px);
|
|
||||||
-webkit-backdrop-filter: blur(20px);
|
|
||||||
border: 1px solid rgba(255, 255, 255, 0.5);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ---------- Form Elements ---------- */
|
|
||||||
.form-group {
|
|
||||||
margin-bottom: 1.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-label {
|
|
||||||
display: block;
|
|
||||||
font-size: 0.875rem;
|
|
||||||
font-weight: 600;
|
|
||||||
color: var(--text-primary);
|
|
||||||
margin-bottom: 0.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-input {
|
|
||||||
width: 100%;
|
|
||||||
padding: 0.875rem 1rem;
|
|
||||||
font-size: 1rem;
|
|
||||||
font-family: inherit;
|
|
||||||
color: var(--text-primary);
|
|
||||||
background: var(--bg-secondary);
|
|
||||||
border: 2px solid var(--border-color);
|
|
||||||
border-radius: var(--border-radius-sm);
|
|
||||||
transition: all var(--transition-fast);
|
|
||||||
outline: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-input:focus {
|
|
||||||
border-color: var(--primary);
|
|
||||||
background: var(--bg-card);
|
|
||||||
box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-input:hover:not(:focus) {
|
|
||||||
border-color: var(--text-muted);
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-input::placeholder {
|
|
||||||
color: var(--text-muted);
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-input-icon {
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-input-icon .icon {
|
|
||||||
position: absolute;
|
|
||||||
left: 1rem;
|
|
||||||
top: 50%;
|
|
||||||
transform: translateY(-50%);
|
|
||||||
color: var(--text-muted);
|
|
||||||
pointer-events: none;
|
|
||||||
transition: color var(--transition-fast);
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-input-icon .form-input {
|
|
||||||
padding-left: 2.75rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.form-input-icon:focus-within .icon {
|
|
||||||
color: var(--primary);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Password toggle */
|
|
||||||
.password-toggle {
|
|
||||||
position: absolute;
|
|
||||||
right: 1rem;
|
|
||||||
top: 50%;
|
|
||||||
transform: translateY(-50%);
|
|
||||||
background: none;
|
|
||||||
border: none;
|
|
||||||
color: var(--text-muted);
|
|
||||||
cursor: pointer;
|
|
||||||
padding: 0.25rem;
|
|
||||||
transition: color var(--transition-fast);
|
|
||||||
}
|
|
||||||
|
|
||||||
.password-toggle:hover {
|
|
||||||
color: var(--primary);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ---------- Buttons ---------- */
|
|
||||||
.btn {
|
|
||||||
display: inline-flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
gap: 0.5rem;
|
|
||||||
padding: 0.875rem 1.5rem;
|
|
||||||
font-size: 1rem;
|
|
||||||
font-weight: 600;
|
|
||||||
font-family: inherit;
|
|
||||||
border: none;
|
|
||||||
border-radius: var(--border-radius-sm);
|
|
||||||
cursor: pointer;
|
|
||||||
transition: all var(--transition-fast);
|
|
||||||
outline: none;
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn:disabled {
|
|
||||||
opacity: 0.6;
|
|
||||||
cursor: not-allowed;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-primary {
|
|
||||||
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
|
|
||||||
color: white;
|
|
||||||
box-shadow: 0 4px 14px -3px rgba(99, 102, 241, 0.5);
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-primary:hover:not(:disabled) {
|
|
||||||
transform: translateY(-2px);
|
|
||||||
box-shadow: 0 6px 20px -3px rgba(99, 102, 241, 0.6);
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-primary:active:not(:disabled) {
|
|
||||||
transform: translateY(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-secondary {
|
|
||||||
background: var(--bg-secondary);
|
|
||||||
color: var(--text-primary);
|
|
||||||
border: 2px solid var(--border-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-secondary:hover:not(:disabled) {
|
|
||||||
background: var(--bg-card);
|
|
||||||
border-color: var(--primary);
|
|
||||||
color: var(--primary);
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-ghost {
|
|
||||||
background: transparent;
|
|
||||||
color: var(--text-secondary);
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-ghost:hover {
|
|
||||||
background: var(--bg-secondary);
|
|
||||||
color: var(--primary);
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-block {
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn-lg {
|
|
||||||
padding: 1rem 2rem;
|
|
||||||
font-size: 1.125rem;
|
|
||||||
border-radius: var(--border-radius);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ---------- Checkbox ---------- */
|
|
||||||
.checkbox-wrapper {
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
gap: 0.75rem;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.checkbox-input {
|
|
||||||
width: 1.25rem;
|
|
||||||
height: 1.25rem;
|
|
||||||
accent-color: var(--primary);
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.checkbox-label {
|
|
||||||
font-size: 0.875rem;
|
|
||||||
color: var(--text-secondary);
|
|
||||||
user-select: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ---------- Alerts ---------- */
|
|
||||||
.alert {
|
|
||||||
padding: 1rem 1.25rem;
|
|
||||||
border-radius: var(--border-radius-sm);
|
|
||||||
font-size: 0.875rem;
|
|
||||||
font-weight: 500;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
gap: 0.75rem;
|
|
||||||
margin-bottom: 1.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.alert-error {
|
|
||||||
background: rgba(248, 113, 113, 0.15);
|
|
||||||
color: #dc2626;
|
|
||||||
border: 1px solid rgba(248, 113, 113, 0.3);
|
|
||||||
}
|
|
||||||
|
|
||||||
.alert-success {
|
|
||||||
background: rgba(52, 211, 153, 0.15);
|
|
||||||
color: #059669;
|
|
||||||
border: 1px solid rgba(52, 211, 153, 0.3);
|
|
||||||
}
|
|
||||||
|
|
||||||
.alert-info {
|
|
||||||
background: rgba(56, 189, 248, 0.15);
|
|
||||||
color: #0284c7;
|
|
||||||
border: 1px solid rgba(56, 189, 248, 0.3);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ---------- Spinner ---------- */
|
|
||||||
.spinner {
|
|
||||||
width: 1.25rem;
|
|
||||||
height: 1.25rem;
|
|
||||||
border: 2px solid rgba(255, 255, 255, 0.3);
|
|
||||||
border-top-color: white;
|
|
||||||
border-radius: 50%;
|
|
||||||
animation: spin 0.8s linear infinite;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes spin {
|
|
||||||
to { transform: rotate(360deg); }
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ---------- Login Page Specific ---------- */
|
|
||||||
.login-container {
|
|
||||||
min-height: 100vh;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
padding: 2rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.login-card {
|
|
||||||
width: 100%;
|
|
||||||
max-width: 420px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.login-header {
|
|
||||||
text-align: center;
|
|
||||||
margin-bottom: 2rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.login-logo {
|
|
||||||
width: 80px;
|
|
||||||
height: 80px;
|
|
||||||
margin: 0 auto 1.5rem;
|
|
||||||
background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
|
|
||||||
border-radius: 20px;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
font-size: 2rem;
|
|
||||||
color: white;
|
|
||||||
box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.5);
|
|
||||||
animation: float 3s ease-in-out infinite;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes float {
|
|
||||||
0%, 100% { transform: translateY(0); }
|
|
||||||
50% { transform: translateY(-10px); }
|
|
||||||
}
|
|
||||||
|
|
||||||
.login-title {
|
|
||||||
font-size: 1.75rem;
|
|
||||||
margin-bottom: 0.5rem;
|
|
||||||
background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
|
|
||||||
-webkit-background-clip: text;
|
|
||||||
-webkit-text-fill-color: transparent;
|
|
||||||
background-clip: text;
|
|
||||||
}
|
|
||||||
|
|
||||||
.login-subtitle {
|
|
||||||
color: var(--text-muted);
|
|
||||||
font-size: 0.95rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.login-footer {
|
|
||||||
text-align: center;
|
|
||||||
margin-top: 2rem;
|
|
||||||
padding-top: 1.5rem;
|
|
||||||
border-top: 1px solid var(--border-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
.login-footer p {
|
|
||||||
font-size: 0.875rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ---------- Decorative Elements ---------- */
|
|
||||||
.floating-shapes {
|
|
||||||
position: fixed;
|
|
||||||
inset: 0;
|
|
||||||
pointer-events: none;
|
|
||||||
overflow: hidden;
|
|
||||||
z-index: -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.shape {
|
|
||||||
position: absolute;
|
|
||||||
border-radius: 50%;
|
|
||||||
opacity: 0.5;
|
|
||||||
animation: floatShape 20s ease-in-out infinite;
|
|
||||||
}
|
|
||||||
|
|
||||||
.shape-1 {
|
|
||||||
width: 300px;
|
|
||||||
height: 300px;
|
|
||||||
background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
|
|
||||||
top: -100px;
|
|
||||||
right: -100px;
|
|
||||||
animation-delay: 0s;
|
|
||||||
}
|
|
||||||
|
|
||||||
.shape-2 {
|
|
||||||
width: 400px;
|
|
||||||
height: 400px;
|
|
||||||
background: linear-gradient(135deg, rgba(244, 114, 182, 0.12) 0%, transparent 70%);
|
|
||||||
bottom: -150px;
|
|
||||||
left: -150px;
|
|
||||||
animation-delay: -7s;
|
|
||||||
}
|
|
||||||
|
|
||||||
.shape-3 {
|
|
||||||
width: 200px;
|
|
||||||
height: 200px;
|
|
||||||
background: linear-gradient(135deg, rgba(52, 211, 153, 0.12) 0%, transparent 70%);
|
|
||||||
top: 40%;
|
|
||||||
left: 10%;
|
|
||||||
animation-delay: -14s;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes floatShape {
|
|
||||||
0%, 100% { transform: translate(0, 0) rotate(0deg); }
|
|
||||||
25% { transform: translate(20px, -30px) rotate(5deg); }
|
|
||||||
50% { transform: translate(-10px, 20px) rotate(-5deg); }
|
|
||||||
75% { transform: translate(30px, 10px) rotate(3deg); }
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ---------- Utilities ---------- */
|
|
||||||
.text-center { text-align: center; }
|
|
||||||
.text-muted { color: var(--text-muted); }
|
|
||||||
.text-primary { color: var(--primary); }
|
|
||||||
.text-sm { font-size: 0.875rem; }
|
|
||||||
.mt-1 { margin-top: 0.25rem; }
|
|
||||||
.mt-2 { margin-top: 0.5rem; }
|
|
||||||
.mt-4 { margin-top: 1rem; }
|
|
||||||
.mb-2 { margin-bottom: 0.5rem; }
|
|
||||||
.mb-4 { margin-bottom: 1rem; }
|
|
||||||
|
|
||||||
.flex { display: flex; }
|
|
||||||
.items-center { align-items: center; }
|
|
||||||
.justify-between { justify-content: space-between; }
|
|
||||||
.gap-2 { gap: 0.5rem; }
|
|
||||||
|
|
||||||
/* ---------- Animations ---------- */
|
|
||||||
.fade-in {
|
|
||||||
animation: fadeIn 0.5s ease-out;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes fadeIn {
|
|
||||||
from {
|
|
||||||
opacity: 0;
|
|
||||||
transform: translateY(10px);
|
|
||||||
}
|
|
||||||
to {
|
|
||||||
opacity: 1;
|
|
||||||
transform: translateY(0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.shake {
|
|
||||||
animation: shake 0.5s ease-in-out;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes shake {
|
|
||||||
0%, 100% { transform: translateX(0); }
|
|
||||||
20%, 60% { transform: translateX(-5px); }
|
|
||||||
40%, 80% { transform: translateX(5px); }
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ---------- Responsive ---------- */
|
|
||||||
@media (max-width: 480px) {
|
|
||||||
.login-container {
|
|
||||||
padding: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card {
|
|
||||||
padding: 1.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.login-logo {
|
|
||||||
width: 64px;
|
|
||||||
height: 64px;
|
|
||||||
font-size: 1.5rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.login-title {
|
|
||||||
font-size: 1.5rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
5
public/assets/js/alpine.min.js
vendored
5
public/assets/js/alpine.min.js
vendored
File diff suppressed because one or more lines are too long
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user