402 lines
7.2 KiB
CSS
402 lines
7.2 KiB
CSS
/* PrafrotSidebar CSS - Adaptive Theme (Light/Dark) */
|
|
|
|
:root {
|
|
/* Light Theme Variables (Default) */
|
|
--pfs-bg: #ffffff;
|
|
--pfs-text: #475569;
|
|
--pfs-text-active: #0f172a;
|
|
--pfs-text-muted: #64748b;
|
|
--pfs-border: #f1f5f9;
|
|
--pfs-bg-search: #f8fafc;
|
|
--pfs-bg-hover: rgba(0, 0, 0, 0.03);
|
|
--pfs-tree-line: #e2e8f0;
|
|
--pfs-footer-bg: #f8fafc;
|
|
--pfs-user-card-bg: rgba(0, 0, 0, 0.01);
|
|
--pfs-toggle-bg: #ffffff;
|
|
--pfs-toggle-border: #e2e8f0;
|
|
--pfs-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
|
|
}
|
|
|
|
.dark .pfs-container {
|
|
/* Dark Theme Variables */
|
|
--pfs-bg: #1a1a1a;
|
|
--pfs-text: #ffffff;
|
|
--pfs-text-active: #141414;
|
|
--pfs-text-muted: #a0a0a0;
|
|
--pfs-border: rgba(255, 255, 255, 0.03);
|
|
--pfs-bg-search: #252525;
|
|
--pfs-bg-hover: rgba(255, 255, 255, 0.03);
|
|
--pfs-tree-line: #262626;
|
|
--pfs-footer-bg: #181818;
|
|
--pfs-user-card-bg: rgba(255, 255, 255, 0.02);
|
|
--pfs-toggle-bg: #262626;
|
|
--pfs-toggle-border: #333;
|
|
--pfs-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
.pfs-container {
|
|
width: 260px;
|
|
height: calc(100vh - 20px);
|
|
background: var(--pfs-bg);
|
|
color: var(--pfs-text);
|
|
display: flex;
|
|
flex-direction: column;
|
|
position: fixed;
|
|
top: 10px;
|
|
left: 10px;
|
|
z-index: 40;
|
|
border-radius: 16px;
|
|
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
|
|
overflow: hidden;
|
|
box-shadow: var(--pfs-shadow);
|
|
border: 1px solid var(--pfs-border);
|
|
}
|
|
|
|
/* Subtle Top Glow - Emerald */
|
|
.pfs-container::before {
|
|
content: '';
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
height: 2px;
|
|
background: linear-gradient(90deg, transparent, #10b981, transparent);
|
|
opacity: 0.3;
|
|
}
|
|
|
|
.pfs-container.collapsed {
|
|
width: 80px;
|
|
}
|
|
|
|
/* Toggle Area */
|
|
.pfs-toggle-container {
|
|
padding: 1rem;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
min-height: 56px;
|
|
align-items: center;
|
|
}
|
|
|
|
.collapsed .pfs-toggle-container {
|
|
justify-content: center;
|
|
}
|
|
|
|
.pfs-toggle-btn {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 6px;
|
|
background: var(--pfs-toggle-bg);
|
|
border: 1px solid var(--pfs-toggle-border);
|
|
color: var(--pfs-text-muted);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.pfs-toggle-btn:hover {
|
|
background: var(--pfs-bg-search);
|
|
color: #10b981;
|
|
border-color: #10b981;
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
/* Search Box */
|
|
.pfs-search-wrapper {
|
|
padding: 0.5rem 1.25rem 1.5rem;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.collapsed .pfs-search-wrapper {
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
height: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
.pfs-search-input {
|
|
width: 100%;
|
|
padding: 0.75rem 1rem 0.75rem 2.5rem;
|
|
background: var(--pfs-bg-search);
|
|
border: 1px solid var(--pfs-border);
|
|
border-radius: 12px;
|
|
color: var(--pfs-text);
|
|
font-size: 0.85rem;
|
|
outline: none;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.pfs-search-input:focus {
|
|
border-color: #10b981;
|
|
background: var(--pfs-bg);
|
|
box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
|
|
}
|
|
|
|
/* Navigation Content */
|
|
.pfs-nav-content {
|
|
flex: 1;
|
|
padding: 0.5rem 1rem;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.pfs-nav-content::-webkit-scrollbar {
|
|
width: 3px;
|
|
}
|
|
|
|
.pfs-nav-content::-webkit-scrollbar-thumb {
|
|
background: var(--pfs-border);
|
|
border-radius: 10px;
|
|
}
|
|
|
|
/* Menu Item Wrapper */
|
|
.pfs-item-wrapper {
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
/* Links & Tree Structure */
|
|
.pfs-link {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0.75rem 1rem;
|
|
border-radius: 12px;
|
|
color: var(--pfs-text-muted);
|
|
text-decoration: none;
|
|
transition: all 0.2s ease;
|
|
cursor: pointer;
|
|
position: relative;
|
|
gap: 14px;
|
|
}
|
|
|
|
.pfs-link:hover:not(.active) {
|
|
background: var(--pfs-bg-hover);
|
|
color: var(--pfs-text);
|
|
}
|
|
|
|
.pfs-link.active {
|
|
background: #10b981 !important;
|
|
color: var(--pfs-text-active) !important;
|
|
font-weight: 700;
|
|
box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
|
|
}
|
|
|
|
.pfs-icon {
|
|
flex-shrink: 0;
|
|
transition: transform 0.2s ease;
|
|
}
|
|
|
|
.pfs-link:hover .pfs-icon:not(.active) {
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
.pfs-label {
|
|
flex: 1;
|
|
font-size: 0.9rem;
|
|
white-space: nowrap;
|
|
letter-spacing: -0.01em;
|
|
}
|
|
|
|
.collapsed .pfs-label,
|
|
.collapsed .pfs-chevron {
|
|
display: none;
|
|
}
|
|
|
|
.pfs-chevron {
|
|
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
color: var(--pfs-text-muted);
|
|
}
|
|
|
|
.pfs-chevron.expanded {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
/* Submenu & Tree Lines */
|
|
.pfs-submenu {
|
|
margin-left: 0.5rem;
|
|
padding-left: 1.25rem;
|
|
border-left: 2px solid var(--pfs-tree-line);
|
|
margin-top: 4px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.pfs-sublink {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 0.65rem 1rem;
|
|
border-radius: 10px;
|
|
color: var(--pfs-text-muted);
|
|
font-size: 0.85rem;
|
|
transition: all 0.2s ease;
|
|
text-decoration: none;
|
|
margin-bottom: 2px;
|
|
position: relative;
|
|
gap: 12px;
|
|
}
|
|
|
|
.pfs-sublink::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: -1.25rem;
|
|
top: 50%;
|
|
width: 0.75rem;
|
|
height: 2px;
|
|
background: var(--pfs-tree-line);
|
|
}
|
|
|
|
.pfs-sublink:hover {
|
|
color: var(--pfs-text);
|
|
background: var(--pfs-bg-hover);
|
|
}
|
|
|
|
.pfs-sublink.active {
|
|
color: #10b981;
|
|
font-weight: 700;
|
|
}
|
|
|
|
/* Icons in sublink */
|
|
.pfs-sublink .pfs-icon {
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.pfs-sublink.active .pfs-icon {
|
|
opacity: 1;
|
|
color: #10b981;
|
|
}
|
|
|
|
/* Footer Section */
|
|
.pfs-footer {
|
|
padding: 1.25rem;
|
|
border-top: 1px solid var(--pfs-border);
|
|
background: var(--pfs-footer-bg);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.collapsed .pfs-footer {
|
|
padding: 1.25rem 0.5rem;
|
|
align-items: center;
|
|
}
|
|
|
|
/* Brand Area in Footer */
|
|
.pfs-brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.pfs-brand-logo {
|
|
width: 36px;
|
|
height: 36px;
|
|
background: #10b981;
|
|
color: #141414;
|
|
border-radius: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: 900;
|
|
box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.pfs-brand-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.pfs-brand-name {
|
|
font-weight: 800;
|
|
font-size: 0.95rem;
|
|
letter-spacing: 0.5px;
|
|
text-transform: uppercase;
|
|
color: var(--pfs-text);
|
|
}
|
|
|
|
.pfs-brand-name span {
|
|
color: #10b981;
|
|
}
|
|
|
|
.pfs-app-sub {
|
|
font-size: 0.7rem;
|
|
color: var(--pfs-text-muted);
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* User Card */
|
|
.pfs-user-card {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 0.625rem;
|
|
background: var(--pfs-user-card-bg);
|
|
border-radius: 12px;
|
|
border: 1px solid var(--pfs-border);
|
|
}
|
|
|
|
.pfs-user-data {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
}
|
|
|
|
.pfs-user-name {
|
|
font-size: 0.85rem;
|
|
font-weight: 700;
|
|
color: var(--pfs-text);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.pfs-logout-link {
|
|
font-size: 0.75rem;
|
|
color: var(--pfs-text-muted);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 4px;
|
|
transition: color 0.2s;
|
|
background: none;
|
|
border: none;
|
|
padding: 0;
|
|
cursor: pointer;
|
|
width: fit-content;
|
|
}
|
|
|
|
.pfs-logout-link:hover {
|
|
color: #ef4444;
|
|
}
|
|
|
|
/* Legal & Version */
|
|
.pfs-legal {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
padding-top: 0.75rem;
|
|
border-top: 1px solid var(--pfs-border);
|
|
}
|
|
|
|
.pfs-legal-item, .pfs-version {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 0.7rem;
|
|
color: var(--pfs-text-muted);
|
|
}
|
|
|
|
.pfs-legal-item svg, .pfs-version svg {
|
|
color: #10b981;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
/* Locks */
|
|
.pfs-locked {
|
|
opacity: 0.4;
|
|
cursor: not-allowed !important;
|
|
}
|
|
|
|
.pfs-lock-icon {
|
|
margin-left: auto;
|
|
color: #10b981 !important;
|
|
}
|