195 lines
3.2 KiB
CSS
195 lines
3.2 KiB
CSS
|
|
/* ===================== SIDEBAR STYLES ===================== */
|
||
|
|
.app-layout {
|
||
|
|
display: flex;
|
||
|
|
min-height: 100vh;
|
||
|
|
width: 100%;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar {
|
||
|
|
width: 250px;
|
||
|
|
background-color: var(--sidebar-bg);
|
||
|
|
border-right: none;
|
||
|
|
display: flex;
|
||
|
|
flex-direction: column;
|
||
|
|
transition: width 0.3s ease, transform 0.3s ease;
|
||
|
|
position: relative;
|
||
|
|
z-index: 100;
|
||
|
|
box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar-header {
|
||
|
|
padding: 1.25rem 0.75rem;
|
||
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
|
||
|
|
display: flex;
|
||
|
|
justify-content: space-between;
|
||
|
|
align-items: center;
|
||
|
|
gap: 0.5rem;
|
||
|
|
min-height: 64px;
|
||
|
|
box-sizing: border-box;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar-logo-link {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 0.6rem;
|
||
|
|
text-decoration: none;
|
||
|
|
color: #fff;
|
||
|
|
transition: opacity 0.2s;
|
||
|
|
overflow: hidden;
|
||
|
|
flex: 1;
|
||
|
|
min-width: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar-logo-link:hover {
|
||
|
|
opacity: 0.85;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar-logo-icon {
|
||
|
|
color: var(--sidebar-active);
|
||
|
|
flex-shrink: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar-header h2 {
|
||
|
|
margin: 0;
|
||
|
|
font-size: 1.3rem;
|
||
|
|
color: #ffffff;
|
||
|
|
white-space: nowrap;
|
||
|
|
overflow: hidden;
|
||
|
|
text-overflow: ellipsis;
|
||
|
|
font-weight: 700;
|
||
|
|
letter-spacing: -0.02em;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar-toggle {
|
||
|
|
background: transparent;
|
||
|
|
border: none;
|
||
|
|
cursor: pointer;
|
||
|
|
padding: 0.5rem;
|
||
|
|
color: var(--sidebar-text);
|
||
|
|
font-size: 1.25rem;
|
||
|
|
border-radius: 4px;
|
||
|
|
transition: background-color 0.2s, color 0.2s;
|
||
|
|
flex-shrink: 0;
|
||
|
|
width: 36px;
|
||
|
|
height: 36px;
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar-toggle:hover {
|
||
|
|
background-color: var(--sidebar-hover);
|
||
|
|
border-color: transparent;
|
||
|
|
color: #fff;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar-nav {
|
||
|
|
flex: 1;
|
||
|
|
overflow-y: auto;
|
||
|
|
padding: 1rem 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar-menu {
|
||
|
|
list-style: none;
|
||
|
|
margin: 0;
|
||
|
|
padding: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar-menu li {
|
||
|
|
margin: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar-link {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
padding: 0.75rem 1rem;
|
||
|
|
color: var(--sidebar-text);
|
||
|
|
text-decoration: none;
|
||
|
|
transition: background-color 0.2s, color 0.2s;
|
||
|
|
cursor: pointer;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar-link:hover {
|
||
|
|
background-color: var(--sidebar-hover);
|
||
|
|
color: #e2e8f0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar-link.active {
|
||
|
|
background-color: rgba(13, 148, 136, 0.15);
|
||
|
|
color: var(--sidebar-active);
|
||
|
|
border-left: 3px solid var(--sidebar-active);
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar-icon {
|
||
|
|
font-size: 1.25rem;
|
||
|
|
margin-right: 0.75rem;
|
||
|
|
min-width: 1.5rem;
|
||
|
|
text-align: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar-text {
|
||
|
|
white-space: nowrap;
|
||
|
|
overflow: hidden;
|
||
|
|
text-overflow: ellipsis;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Collapsed Sidebar State */
|
||
|
|
.sidebar.collapsed {
|
||
|
|
width: 70px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar.collapsed .sidebar-header h2,
|
||
|
|
.sidebar.collapsed .sidebar-text {
|
||
|
|
opacity: 0;
|
||
|
|
width: 0;
|
||
|
|
overflow: hidden;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar.collapsed .sidebar-logo-link {
|
||
|
|
flex: 0 0 auto;
|
||
|
|
gap: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar.collapsed .sidebar-header {
|
||
|
|
padding: 1.25rem 0.5rem;
|
||
|
|
justify-content: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar.collapsed .sidebar-icon {
|
||
|
|
margin-right: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Main Content Area */
|
||
|
|
.main-content {
|
||
|
|
flex: 1;
|
||
|
|
overflow-y: auto;
|
||
|
|
background-color: #f0f4f8;
|
||
|
|
}
|
||
|
|
|
||
|
|
.main-content>div {
|
||
|
|
max-width: 1280px;
|
||
|
|
margin: 0 auto;
|
||
|
|
padding: 2rem;
|
||
|
|
}
|
||
|
|
|
||
|
|
/* Responsive Design */
|
||
|
|
@media (max-width: 768px) {
|
||
|
|
.sidebar {
|
||
|
|
position: fixed;
|
||
|
|
left: 0;
|
||
|
|
top: 0;
|
||
|
|
bottom: 0;
|
||
|
|
z-index: 1000;
|
||
|
|
transform: translateX(0);
|
||
|
|
}
|
||
|
|
|
||
|
|
.sidebar.collapsed {
|
||
|
|
transform: translateX(-100%);
|
||
|
|
width: 250px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.main-content {
|
||
|
|
margin-left: 0;
|
||
|
|
}
|
||
|
|
}
|