sidebar fix
This commit is contained in:
parent
061af6e6d7
commit
ccefd6e295
@ -248,8 +248,8 @@
|
||||
</div>
|
||||
|
||||
<!-- Navigation Menu -->
|
||||
<nav class="flex-1 overflow-y-auto py-2">
|
||||
<ul class="menu menu-sm px-2 text-sm">
|
||||
<nav class="flex-1 overflow-y-auto w-full">
|
||||
<ul class="menu menu-sm w-full p-0 [&_li>*]:rounded-none text-sm gap-0.5">
|
||||
<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' ?>">
|
||||
<i data-lucide="layout-dashboard" class="w-4 h-4"></i>
|
||||
@ -307,17 +307,18 @@
|
||||
</nav>
|
||||
|
||||
<!-- User Profile Section -->
|
||||
<div class="p-3 border-t border-white/5">
|
||||
<div class="flex items-center gap-2 p-2 rounded-lg bg-black/10">
|
||||
<div class="p-4 border-t border-white/5 bg-black/20">
|
||||
<div class="flex items-center gap-3">
|
||||
<div class="avatar placeholder">
|
||||
<div class="w-8 h-8 rounded-lg bg-primary/30 text-white text-sm">
|
||||
<span><?= substr(esc($user->username ?? 'U'), 0, 1) ?></span>
|
||||
<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 class="font-bold text-sm"><?= substr(esc($user->username ?? 'U'), 0, 1) ?></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex-1 min-w-0">
|
||||
<div class="text-sm font-medium text-white truncate"><?= esc($user->username ?? 'User') ?></div>
|
||||
<div class="flex-1 min-w-0 flex flex-col justify-center">
|
||||
<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>
|
||||
<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>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
@ -95,6 +95,7 @@
|
||||
</div>
|
||||
|
||||
<!-- Generic Modal -->
|
||||
<template x-teleport="body">
|
||||
<dialog id="orgModal" class="modal" :class="{ 'modal-open': isModalOpen }">
|
||||
<div class="modal-box">
|
||||
<h3 class="font-bold text-lg mb-4" x-text="isEdit ? 'Edit ' + activeTab : 'New ' + activeTab"></h3>
|
||||
@ -147,6 +148,7 @@
|
||||
</form>
|
||||
</div>
|
||||
</dialog>
|
||||
</template>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@ -180,6 +180,7 @@
|
||||
</div>
|
||||
|
||||
<!-- Form Modal -->
|
||||
<template x-teleport="body">
|
||||
<dialog id="patientModal" class="modal" :class="{ 'modal-open': showFormModal }">
|
||||
<div class="modal-box w-11/12 max-w-5xl">
|
||||
<form method="dialog">
|
||||
@ -386,8 +387,10 @@
|
||||
</form>
|
||||
</div>
|
||||
</dialog>
|
||||
</template>
|
||||
|
||||
<!-- Delete Confirmation Modal -->
|
||||
<template x-teleport="body">
|
||||
<dialog id="deleteModal" class="modal" :class="{ 'modal-open': showDeleteModal }">
|
||||
<div class="modal-box">
|
||||
<h3 class="font-bold text-lg">Delete Patient</h3>
|
||||
@ -412,6 +415,7 @@
|
||||
<button @click="showDeleteModal = false">close</button>
|
||||
</form>
|
||||
</dialog>
|
||||
</template>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@ -159,6 +159,7 @@
|
||||
</div>
|
||||
|
||||
<!-- Def Modal -->
|
||||
<template x-teleport="body">
|
||||
<dialog class="modal" :class="{ 'modal-open': isDefModalOpen }">
|
||||
<div class="modal-box transform transition-all">
|
||||
<form method="dialog">
|
||||
@ -203,8 +204,10 @@
|
||||
<button @click="isDefModalOpen = false">close</button>
|
||||
</form>
|
||||
</dialog>
|
||||
</template>
|
||||
|
||||
<!-- Value Modal -->
|
||||
<template x-teleport="body">
|
||||
<dialog class="modal" :class="{ 'modal-open': isValueModalOpen }">
|
||||
<div class="modal-box transform transition-all">
|
||||
<form method="dialog">
|
||||
@ -247,6 +250,7 @@
|
||||
<button @click="isValueModalOpen = false">close</button>
|
||||
</form>
|
||||
</dialog>
|
||||
</template>
|
||||
|
||||
</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