feat: Rediseño Premium SIBU NEXUS ELITE - Sidebar y Tipografía Space Grotesk
This commit is contained in:
@ -67,21 +67,21 @@ html.dark {
|
||||
|
||||
/* LIGHT THEME */
|
||||
html.light-theme {
|
||||
--bg-primary: #f8fafc;
|
||||
--bg-primary: #f0f4f8;
|
||||
--bg-secondary: #ffffff;
|
||||
--text-primary: #0f172a;
|
||||
--text-secondary: #64748b;
|
||||
--border-color: rgba(15, 23, 42, 0.08);
|
||||
--header-bg: rgba(255, 255, 255, 0.8);
|
||||
--text-secondary: #475569;
|
||||
--border-color: rgba(15, 23, 42, 0.1);
|
||||
--header-bg: rgba(255, 255, 255, 0.85);
|
||||
--header-text: #0f172a;
|
||||
--card-bg: rgba(255, 255, 255, 0.9);
|
||||
--hover-bg: rgba(15, 23, 42, 0.04);
|
||||
--glass-bg: rgba(255, 255, 255, 0.7);
|
||||
--glass-border: rgba(15, 23, 42, 0.1);
|
||||
--shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
|
||||
--active-bg: rgba(15, 23, 42, 0.05);
|
||||
--active-color: #101820;
|
||||
--accent-color: #101820;
|
||||
--card-bg: rgba(255, 255, 255, 0.95);
|
||||
--hover-bg: rgba(37, 99, 235, 0.05); /* Soft Blue hover */
|
||||
--glass-bg: rgba(255, 255, 255, 0.8);
|
||||
--glass-border: rgba(37, 99, 235, 0.1);
|
||||
--shadow: 0 15px 40px rgba(15, 23, 42, 0.1);
|
||||
--active-bg: rgba(37, 99, 235, 0.1);
|
||||
--active-color: #2563eb; /* Premium Nexus Blue */
|
||||
--accent-color: #2563eb;
|
||||
}
|
||||
|
||||
html,
|
||||
|
||||
@ -15,94 +15,103 @@
|
||||
|
||||
<ReportModal :is-open="showReportModal" @close="showReportModal = false" />
|
||||
|
||||
<!-- Menu Overlay -->
|
||||
<Transition name="overlay-fade">
|
||||
<div v-if="showMenu" class="menu-overlay" @click="showMenu = false"></div>
|
||||
</Transition>
|
||||
|
||||
<!-- Menu Sidebar -->
|
||||
<Transition name="menu-slide">
|
||||
<div v-if="showMenu" class="menu-dropdown nexus-glass">
|
||||
<!-- NEXUS HEADER: User Identity -->
|
||||
<div class="nexus-user-section">
|
||||
<div class="user-avatar-wrapper">
|
||||
<span class="material-icons avatar-icon">{{ authStore.isAuthenticated ? 'account_circle' : 'fingerprint' }}</span>
|
||||
<div v-if="authStore.isAuthenticated" class="online-indicator"></div>
|
||||
</div>
|
||||
<div class="user-info">
|
||||
<span class="user-greeting">HOLA,</span>
|
||||
<span class="user-name">{{ authStore.isAuthenticated ? authStore.userName : 'INVITADO' }}</span>
|
||||
<div v-if="showMenu" class="menu-dropdown nexus-sidebar">
|
||||
<!-- NEXUS HEADER: Elite Identity -->
|
||||
<div class="nexus-header-premium">
|
||||
<div class="header-content-wrapper">
|
||||
<div class="brand-badge">SIBU NEXUS ELITE</div>
|
||||
<div class="user-profile-nexus">
|
||||
<div class="user-avatar-premium">
|
||||
<span class="material-icons">{{ authStore.isAuthenticated ? 'account_circle' : 'fingerprint' }}</span>
|
||||
<div v-if="authStore.isAuthenticated" class="online-pulse"></div>
|
||||
</div>
|
||||
<div class="user-meta">
|
||||
<span class="user-status">{{ authStore.isAuthenticated ? 'SISTEMA ACTIVO' : 'ACCESO INVITADO' }}</span>
|
||||
<span class="user-display-name">{{ authStore.isAuthenticated ? authStore.userName : 'NEXUS GUEST' }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="header-bg-glow"></div>
|
||||
</div>
|
||||
|
||||
<div class="menu-scroll-area">
|
||||
<!-- GROUP 1: Navegación Principal -->
|
||||
<div class="nexus-group">
|
||||
<div v-if="authStore.isAuthenticated" class="menu-item-nexus" @click="navigateTo('/profile')">
|
||||
<span class="material-icons">person</span>
|
||||
<span class="item-text">Mi Perfil</span>
|
||||
<!-- SECTION: GESTIÓN (Solo si es Admin/Conductor/Promotor) -->
|
||||
<div v-if="authStore.isAdmin || authStore.isDriver || authStore.isPromoter" class="nexus-section">
|
||||
<div class="section-label">GESTIÓN DE FLOTA</div>
|
||||
|
||||
<div v-if="authStore.isAdmin" class="menu-item-premium admin-item" @click="navigateTo('/admin')">
|
||||
<div class="item-icon-wrapper"><span class="material-icons">shield_person</span></div>
|
||||
<span class="item-text">Panel Control Admin</span>
|
||||
<span class="material-icons chevron">chevron_right</span>
|
||||
</div>
|
||||
|
||||
<div class="menu-item-nexus" @click="navigateTo('/favorites')">
|
||||
<span class="material-icons">favorite</span>
|
||||
<span class="item-text">Favoritos</span>
|
||||
<div v-if="authStore.isDriver" class="menu-item-premium driver-item" @click="navigateTo('/driver')">
|
||||
<div class="item-icon-wrapper"><span class="material-icons">minor_crash</span></div>
|
||||
<span class="item-text">Servicio Conductor</span>
|
||||
<span class="material-icons chevron">chevron_right</span>
|
||||
</div>
|
||||
|
||||
<div v-if="authStore.isAdmin" class="menu-item-nexus admin-item" @click="navigateTo('/admin')">
|
||||
<span class="material-icons">admin_panel_settings</span>
|
||||
<span class="item-text">Panel Admin</span>
|
||||
</div>
|
||||
|
||||
<div v-if="authStore.isPromoter" class="menu-item-nexus promoter-item" @click="navigateTo('/promoter')">
|
||||
<span class="material-icons">store</span>
|
||||
<span class="item-text">Panel Promotor</span>
|
||||
</div>
|
||||
|
||||
<div v-if="authStore.isDriver" class="menu-item-nexus driver-item" @click="navigateTo('/driver')">
|
||||
<span class="material-icons">speed</span>
|
||||
<span class="item-text">Panel Conductor</span>
|
||||
<div v-if="authStore.isPromoter" class="menu-item-premium promoter-item" @click="navigateTo('/promoter')">
|
||||
<div class="item-icon-wrapper"><span class="material-icons">store</span></div>
|
||||
<span class="item-text">Central Promotores</span>
|
||||
<span class="material-icons chevron">chevron_right</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="nexus-divider-clean"></div>
|
||||
<!-- SECTION: NAVEGACIÓN -->
|
||||
<div class="nexus-section">
|
||||
<div class="section-label">NAVEGACIÓN</div>
|
||||
|
||||
<!-- GROUP 2: Configuración -->
|
||||
<div class="nexus-group">
|
||||
<div class="menu-item-nexus" @click="toggleLanguage">
|
||||
<span class="material-icons">translate</span>
|
||||
<span class="item-text">{{ locale === 'es' ? 'English (EN)' : 'Español (ES)' }}</span>
|
||||
<div class="menu-item-premium" @click="navigateTo('/profile')">
|
||||
<div class="item-icon-wrapper"><span class="material-icons">account_circle</span></div>
|
||||
<span class="item-text">Mi Identidad Nexus</span>
|
||||
<span class="material-icons chevron">chevron_right</span>
|
||||
</div>
|
||||
|
||||
<div class="menu-item-nexus theme-toggle-nexus">
|
||||
<div class="toggle-left">
|
||||
<span class="material-icons">palette</span>
|
||||
<span class="item-text">Modo Oscuro</span>
|
||||
</div>
|
||||
<ThemeToggle class="theme-switch-btn" />
|
||||
<div class="menu-item-premium" @click="navigateTo('/favorites')">
|
||||
<div class="item-icon-wrapper"><span class="material-icons">star</span></div>
|
||||
<span class="item-text">Destinos Favoritos</span>
|
||||
<span class="material-icons chevron">chevron_right</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="nexus-divider-clean"></div>
|
||||
<!-- SECTION: SISTEMA -->
|
||||
<div class="nexus-section">
|
||||
<div class="section-label">CONFIGURACIÓN SISTEMA</div>
|
||||
|
||||
<!-- GROUP 3: Soporte -->
|
||||
<div class="nexus-group">
|
||||
<div class="menu-item-nexus report-item-nexus" @click="openReportModal">
|
||||
<span class="material-icons">report_problem</span>
|
||||
<span class="item-text">Enviar Reporte</span>
|
||||
<div class="menu-item-premium" @click="toggleLanguage">
|
||||
<div class="item-icon-wrapper"><span class="material-icons">translate</span></div>
|
||||
<span class="item-text">{{ locale === 'es' ? 'Protocolo: English (EN)' : 'Protocolo: Español (ES)' }}</span>
|
||||
</div>
|
||||
|
||||
<div class="menu-item-premium theme-toggle-item">
|
||||
<div class="item-icon-wrapper"><span class="material-icons">palette</span></div>
|
||||
<span class="item-text">Modo Visual Oscuro</span>
|
||||
<ThemeToggle class="theme-switch-btn" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- SECTION: SOPORTE -->
|
||||
<div class="nexus-section">
|
||||
<div class="section-label">SOPORTE TÉCNICO</div>
|
||||
<div class="menu-item-premium report-item" @click="openReportModal">
|
||||
<div class="item-icon-wrapper"><span class="material-icons">report_problem</span></div>
|
||||
<span class="item-text">Reportar Incidencia</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- FOOTER: Auth Action -->
|
||||
<div class="nexus-footer">
|
||||
<div v-if="!authStore.isAuthenticated" class="login-btn-nexus" @click="navigateTo('/login')">
|
||||
<span class="material-icons">login</span> Iniciar Sesión
|
||||
<!-- FOOTER: Auth & Version -->
|
||||
<div class="nexus-sidebar-footer">
|
||||
<div v-if="!authStore.isAuthenticated" class="auth-btn-nexus login" @click="navigateTo('/login')">
|
||||
<span class="material-icons">power</span> INICIAR SISTEMA
|
||||
</div>
|
||||
<div v-else class="logout-wrapper-nexus" @click="handleLogout">
|
||||
<button class="nexus-logout-btn">
|
||||
<span class="material-icons">power_settings_new</span>
|
||||
<span>CERRAR SESIÓN</span>
|
||||
</button>
|
||||
<div v-else class="auth-btn-nexus logout" @click="handleLogout">
|
||||
<span class="material-icons">power_settings_new</span> CERRAR PROTOCOLO
|
||||
</div>
|
||||
<div class="nexus-version-tag">SIBU NEXUS CORE v1.0.4.STARK</div>
|
||||
</div>
|
||||
</div>
|
||||
</Transition>
|
||||
@ -111,7 +120,7 @@
|
||||
<h1 class="header-title" @click="goToHome">{{ t('header.title') }}</h1>
|
||||
|
||||
<div class="header-actions">
|
||||
<!-- Buttons moved to side menu for cleaner UI -->
|
||||
<!-- Side Menu handles all actions for a cleaner UI -->
|
||||
</div>
|
||||
</header>
|
||||
</template>
|
||||
@ -170,15 +179,13 @@ const handleLogout = () => {
|
||||
showMenu.value = false
|
||||
router.push('/login')
|
||||
}
|
||||
|
||||
// toggleDarkMode removed as it was unused and causing TS errors
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.app-header {
|
||||
background-color: var(--header-bg);
|
||||
backdrop-filter: blur(12px);
|
||||
-webkit-backdrop-filter: blur(12px);
|
||||
backdrop-filter: blur(20px);
|
||||
-webkit-backdrop-filter: blur(20px);
|
||||
color: var(--header-text);
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto 1fr;
|
||||
@ -192,12 +199,7 @@ const handleLogout = () => {
|
||||
right: 0;
|
||||
z-index: 2000;
|
||||
width: 100%;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.app-header.admin-mode {
|
||||
background-color: rgba(30, 41, 59, 0.9);
|
||||
border-bottom: 2px solid var(--active-color);
|
||||
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.header-left {
|
||||
@ -206,224 +208,170 @@ const handleLogout = () => {
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.admin-badge {
|
||||
background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
|
||||
color: white;
|
||||
padding: 4px 10px;
|
||||
border-radius: 8px;
|
||||
font-size: 11px;
|
||||
font-weight: 800;
|
||||
letter-spacing: 1px;
|
||||
box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
|
||||
}
|
||||
|
||||
.driver-badge {
|
||||
background: linear-gradient(135deg, #fee715 0%, #facc15 100%);
|
||||
color: #101820;
|
||||
padding: 4px 10px;
|
||||
border-radius: 8px;
|
||||
font-size: 11px;
|
||||
font-weight: 800;
|
||||
letter-spacing: 1px;
|
||||
box-shadow: 0 4px 12px rgba(254, 231, 21, 0.3);
|
||||
}
|
||||
|
||||
.header-title {
|
||||
font-size: 24px;
|
||||
font-weight: 900;
|
||||
letter-spacing: -0.02em;
|
||||
font-weight: 800;
|
||||
letter-spacing: -0.04em;
|
||||
color: var(--text-primary);
|
||||
margin: 0;
|
||||
text-align: center;
|
||||
grid-column: 2;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s ease;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
/* En modo oscuro, resaltar un poco más */
|
||||
:global(.dark) .header-title {
|
||||
color: var(--active-color);
|
||||
text-shadow: 0 0 15px rgba(254, 231, 21, 0.3);
|
||||
}
|
||||
|
||||
.header-title:hover {
|
||||
transform: scale(1.05);
|
||||
transform: scale(1.02);
|
||||
letter-spacing: 0.05em;
|
||||
}
|
||||
|
||||
.header-actions {
|
||||
grid-column: 3;
|
||||
justify-self: end;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.header-button {
|
||||
background: transparent;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
padding: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: inherit;
|
||||
transition: all 0.2s;
|
||||
border-radius: 14px;
|
||||
}
|
||||
|
||||
.header-button:hover {
|
||||
background-color: var(--hover-bg);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.report-btn-right {
|
||||
background: rgba(251, 191, 36, 0.15);
|
||||
border: 1px solid rgba(251, 191, 36, 0.3);
|
||||
color: #fbbf24;
|
||||
padding: 8px 16px;
|
||||
border-radius: 12px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
}
|
||||
|
||||
.report-btn-right:hover {
|
||||
background: var(--active-color);
|
||||
color: #101820;
|
||||
transform: translateY(-2px) scale(1.05);
|
||||
box-shadow: 0 4px 15px rgba(254, 231, 21, 0.3);
|
||||
border-color: var(--active-color);
|
||||
}
|
||||
|
||||
.report-text {
|
||||
font-size: 0.85rem;
|
||||
font-weight: 800;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.5px;
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.report-text {
|
||||
display: none;
|
||||
}
|
||||
.report-btn-right {
|
||||
padding: 10px;
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
|
||||
.logout-header-btn {
|
||||
color: #f87171 !important;
|
||||
background: rgba(248, 113, 113, 0.08);
|
||||
border: 1px solid rgba(248, 113, 113, 0.15);
|
||||
margin-left: 8px;
|
||||
box-shadow: 0 0 15px rgba(248, 113, 113, 0.05);
|
||||
}
|
||||
|
||||
.logout-header-btn:hover {
|
||||
background: rgba(248, 113, 113, 0.2);
|
||||
border-color: rgba(248, 113, 113, 0.4);
|
||||
box-shadow: 0 4px 15px rgba(248, 113, 113, 0.2);
|
||||
color: #ef4444 !important;
|
||||
}
|
||||
|
||||
.menu-dropdown.nexus-glass {
|
||||
/* NEXUS SIDEBAR STYLES */
|
||||
.nexus-sidebar {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 280px;
|
||||
width: 300px;
|
||||
height: 100vh;
|
||||
background: rgba(15, 23, 42, 0.85); /* Deep Nexus Blue */
|
||||
backdrop-filter: blur(25px) saturate(180%);
|
||||
-webkit-backdrop-filter: blur(25px) saturate(180%);
|
||||
border-right: 1px solid rgba(254, 231, 21, 0.2); /* SIBU Gold Border */
|
||||
padding: 0;
|
||||
background: var(--glass-bg);
|
||||
backdrop-filter: blur(30px) saturate(150%);
|
||||
-webkit-backdrop-filter: blur(30px) saturate(150%);
|
||||
border-right: 1px solid var(--glass-border);
|
||||
z-index: 10000;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-shadow: 20px 0 80px rgba(0,0,0,0.8);
|
||||
box-shadow: 25px 0 60px rgba(0,0,0,0.5);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
:global(.light-theme) .menu-dropdown.nexus-glass {
|
||||
background: rgba(255, 255, 255, 0.85);
|
||||
border-right: 1px solid rgba(16, 24, 32, 0.1);
|
||||
.nexus-header-premium {
|
||||
position: relative;
|
||||
padding: 50px 24px 30px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.nexus-user-section {
|
||||
padding: 40px 24px 24px;
|
||||
background: linear-gradient(to bottom, rgba(254, 231, 21, 0.05), transparent);
|
||||
.header-content-wrapper {
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.brand-badge {
|
||||
display: inline-block;
|
||||
background: var(--active-color);
|
||||
color: #101820;
|
||||
font-size: 10px;
|
||||
font-weight: 900;
|
||||
padding: 4px 10px;
|
||||
border-radius: 6px;
|
||||
letter-spacing: 1px;
|
||||
margin-bottom: 16px;
|
||||
box-shadow: 0 4px 15px rgba(254, 231, 21, 0.4);
|
||||
}
|
||||
|
||||
.user-profile-nexus {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.user-avatar-wrapper {
|
||||
.user-avatar-premium {
|
||||
position: relative;
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
border-radius: 16px;
|
||||
background: linear-gradient(135deg, #fee715 0%, #facc15 100%);
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
border-radius: 18px;
|
||||
background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-shadow: 0 0 25px rgba(254, 231, 21, 0.4);
|
||||
border: 2px solid rgba(255, 255, 255, 0.3);
|
||||
border: 1px solid var(--active-color);
|
||||
box-shadow: 0 0 20px rgba(254, 231, 21, 0.15);
|
||||
}
|
||||
|
||||
.avatar-icon {
|
||||
.user-avatar-premium .material-icons {
|
||||
font-size: 32px;
|
||||
color: #101820; /* Icono oscuro sobre fondo oro */
|
||||
color: var(--active-color);
|
||||
}
|
||||
|
||||
.online-indicator {
|
||||
.online-pulse {
|
||||
position: absolute;
|
||||
bottom: -2px;
|
||||
right: -2px;
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
background: #4ade80;
|
||||
border: 3px solid var(--header-bg);
|
||||
border: 3px solid #0f172a;
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 0 10px #4ade80;
|
||||
animation: pulse-green 2s infinite;
|
||||
}
|
||||
|
||||
.user-info {
|
||||
@keyframes pulse-green {
|
||||
0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
|
||||
70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); }
|
||||
100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
|
||||
}
|
||||
|
||||
.user-meta {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.user-greeting {
|
||||
font-size: 0.7rem;
|
||||
font-weight: 800;
|
||||
.user-status {
|
||||
font-size: 10px;
|
||||
font-weight: 700;
|
||||
color: var(--text-secondary);
|
||||
letter-spacing: 1px;
|
||||
letter-spacing: 1.5px;
|
||||
}
|
||||
|
||||
.user-name {
|
||||
font-size: 1.1rem;
|
||||
font-weight: 900;
|
||||
color: var(--active-color);
|
||||
.user-display-name {
|
||||
font-size: 18px;
|
||||
font-weight: 800;
|
||||
color: var(--text-primary);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.header-bg-glow {
|
||||
position: absolute;
|
||||
top: -50px;
|
||||
right: -50px;
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
background: radial-gradient(circle, rgba(254, 231, 21, 0.1) 0%, transparent 70%);
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.menu-scroll-area {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 16px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.nexus-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.menu-item-nexus {
|
||||
padding: 10px 16px;
|
||||
border-radius: 12px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 24px;
|
||||
}
|
||||
|
||||
.nexus-section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.section-label {
|
||||
font-size: 11px;
|
||||
font-weight: 800;
|
||||
color: var(--text-secondary);
|
||||
padding: 0 12px 8px;
|
||||
letter-spacing: 2px;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.menu-item-premium {
|
||||
padding: 12px 14px;
|
||||
border-radius: 14px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
@ -433,96 +381,112 @@ const handleLogout = () => {
|
||||
border: 1px solid transparent;
|
||||
}
|
||||
|
||||
.menu-item-nexus:hover {
|
||||
.menu-item-premium:hover {
|
||||
background: var(--hover-bg);
|
||||
border-color: var(--border-color);
|
||||
transform: translateX(5px);
|
||||
transform: translateX(6px);
|
||||
}
|
||||
|
||||
.menu-item-nexus .material-icons {
|
||||
.item-icon-wrapper {
|
||||
width: 40px;
|
||||
height: 40px;
|
||||
border-radius: 12px;
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.menu-item-premium:hover .item-icon-wrapper {
|
||||
background: var(--active-bg);
|
||||
transform: scale(1.1);
|
||||
}
|
||||
|
||||
.menu-item-premium .material-icons {
|
||||
font-size: 22px;
|
||||
color: var(--text-secondary);
|
||||
transition: color 0.3s;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.menu-item-nexus:hover .material-icons {
|
||||
.menu-item-premium:hover .material-icons:not(.chevron) {
|
||||
color: var(--active-color);
|
||||
}
|
||||
|
||||
.item-text {
|
||||
font-weight: 700;
|
||||
font-size: 0.95rem;
|
||||
flex: 1;
|
||||
font-weight: 600;
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
.admin-item { color: #f87171; }
|
||||
.promoter-item { color: #818cf8; }
|
||||
.driver-item { color: #fbbf24; }
|
||||
|
||||
.nexus-divider-clean {
|
||||
height: 1px;
|
||||
background: linear-gradient(to right, transparent, var(--border-color), transparent);
|
||||
margin: 12px 16px;
|
||||
.chevron {
|
||||
font-size: 18px;
|
||||
opacity: 0;
|
||||
transform: translateX(-10px);
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.theme-toggle-nexus {
|
||||
justify-content: space-between;
|
||||
.menu-item-premium:hover .chevron {
|
||||
opacity: 0.5;
|
||||
transform: translateX(0);
|
||||
}
|
||||
|
||||
.toggle-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
.admin-item .item-icon-wrapper { color: #f87171; }
|
||||
.driver-item .item-icon-wrapper { color: #fbbf24; }
|
||||
.promoter-item .item-icon-wrapper { color: #818cf8; }
|
||||
|
||||
.report-item {
|
||||
background: rgba(239, 68, 68, 0.05);
|
||||
color: #f87171;
|
||||
}
|
||||
|
||||
.report-item-nexus {
|
||||
color: #fbbf24;
|
||||
background: rgba(251, 191, 36, 0.05);
|
||||
}
|
||||
|
||||
.nexus-footer {
|
||||
.nexus-sidebar-footer {
|
||||
padding: 24px;
|
||||
border-top: 1px solid var(--border-color);
|
||||
background: linear-gradient(to top, rgba(0,0,0,0.1), transparent);
|
||||
}
|
||||
|
||||
.login-btn-nexus {
|
||||
background: var(--active-color);
|
||||
color: #101820;
|
||||
padding: 14px;
|
||||
.auth-btn-nexus {
|
||||
padding: 16px;
|
||||
border-radius: 16px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 10px;
|
||||
font-weight: 900;
|
||||
gap: 12px;
|
||||
font-weight: 800;
|
||||
font-size: 13px;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
transition: all 0.4s;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
.auth-btn-nexus.login {
|
||||
background: var(--active-color);
|
||||
color: #101820;
|
||||
box-shadow: 0 10px 20px rgba(254, 231, 21, 0.2);
|
||||
}
|
||||
|
||||
.login-btn-nexus:hover {
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 15px 30px rgba(254, 231, 21, 0.3);
|
||||
}
|
||||
|
||||
.nexus-logout-btn {
|
||||
width: 100%;
|
||||
.auth-btn-nexus.logout {
|
||||
background: rgba(239, 68, 68, 0.1);
|
||||
border: 1px solid rgba(239, 68, 68, 0.2);
|
||||
color: #ef4444;
|
||||
padding: 14px;
|
||||
border-radius: 16px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 10px;
|
||||
font-weight: 800;
|
||||
cursor: pointer;
|
||||
transition: all 0.3s;
|
||||
border: 1px solid rgba(239, 68, 68, 0.2);
|
||||
}
|
||||
|
||||
.nexus-logout-btn:hover {
|
||||
.auth-btn-nexus.logout:hover {
|
||||
background: #ef4444;
|
||||
color: white;
|
||||
transform: translateY(-2px);
|
||||
box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
|
||||
}
|
||||
|
||||
.nexus-version-tag {
|
||||
margin-top: 16px;
|
||||
text-align: center;
|
||||
font-size: 9px;
|
||||
font-weight: 700;
|
||||
color: var(--text-secondary);
|
||||
opacity: 0.5;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
.menu-overlay {
|
||||
@ -531,15 +495,15 @@ const handleLogout = () => {
|
||||
left: 0;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background: rgba(0,0,0,0.6);
|
||||
backdrop-filter: blur(4px);
|
||||
background: rgba(15, 23, 42, 0.5);
|
||||
backdrop-filter: blur(8px);
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
/* Animations */
|
||||
/* Transitions */
|
||||
.menu-slide-enter-active,
|
||||
.menu-slide-leave-active {
|
||||
transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
}
|
||||
|
||||
.menu-slide-enter-from,
|
||||
@ -548,148 +512,23 @@ const handleLogout = () => {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.overlay-fade-enter-active,
|
||||
.overlay-fade-leave-active {
|
||||
transition: opacity 0.5s ease;
|
||||
}
|
||||
|
||||
.overlay-fade-enter-from,
|
||||
.overlay-fade-leave-to {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.material-icons {
|
||||
font-size: 24px;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.theme-toggle-container {
|
||||
justify-content: space-between !important;
|
||||
}
|
||||
|
||||
.toggle-label {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.theme-switch-btn {
|
||||
transform: scale(0.9);
|
||||
margin-right: -2px;
|
||||
}
|
||||
|
||||
@media (max-width: 600px) {
|
||||
.app-header {
|
||||
height: 72px;
|
||||
padding: 0 16px;
|
||||
}
|
||||
.header-title {
|
||||
font-size: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Custom Menu Button */
|
||||
.menu-btn-custom {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border-radius: 14px;
|
||||
border: none;
|
||||
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
||||
font-size: 14px;
|
||||
font-family: 'Inter', Verdana, sans-serif;
|
||||
font-weight: 800;
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
color: var(--text-primary);
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: transparent;
|
||||
color: var(--text-primary);
|
||||
cursor: pointer;
|
||||
letter-spacing: 1px;
|
||||
box-shadow: none;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
|
||||
.menu-btn-custom:hover {
|
||||
transform: scale(1.1);
|
||||
color: var(--active-color);
|
||||
}
|
||||
|
||||
.menu-btn-custom .icon {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/* Logout Custom Button */
|
||||
.logout-container {
|
||||
padding: 24px 32px;
|
||||
border-top: 1px solid var(--border-color);
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.logout-btn-custom {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
width: 45px;
|
||||
height: 45px;
|
||||
border: none;
|
||||
border-radius: 50%;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
transition-duration: .3s;
|
||||
box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
|
||||
background-color: var(--active-color);
|
||||
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
|
||||
}
|
||||
|
||||
.sign {
|
||||
width: 45px;
|
||||
transition-duration: .3s;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.sign svg {
|
||||
width: 18px;
|
||||
}
|
||||
|
||||
.sign svg path {
|
||||
fill: white;
|
||||
}
|
||||
|
||||
.btn-text {
|
||||
position: absolute;
|
||||
right: 0%;
|
||||
width: 0%;
|
||||
opacity: 0;
|
||||
color: white;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 800;
|
||||
transition-duration: .3s;
|
||||
white-space: nowrap;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.8px;
|
||||
}
|
||||
|
||||
.logout-btn-custom:hover {
|
||||
width: 180px;
|
||||
border-radius: 40px;
|
||||
transition-duration: .3s;
|
||||
}
|
||||
|
||||
.logout-btn-custom:hover .sign {
|
||||
width: 30%;
|
||||
transition-duration: .3s;
|
||||
padding-left: 15px;
|
||||
}
|
||||
|
||||
.logout-btn-custom:hover .btn-text {
|
||||
opacity: 1;
|
||||
width: 70%;
|
||||
transition-duration: .3s;
|
||||
padding-right: 15px;
|
||||
}
|
||||
|
||||
.logout-btn-custom:active {
|
||||
transform: translate(2px ,2px);
|
||||
background: var(--active-bg);
|
||||
color: var(--active-color);
|
||||
transform: rotate(90deg);
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user