308 lines
5.8 KiB
CSS
308 lines
5.8 KiB
CSS
.sidebar {
|
|
width: var(--sidebar-width);
|
|
height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
background: var(--glass-bg);
|
|
backdrop-filter: var(--glass-blur);
|
|
backdrop-filter: var(--glass-blur);
|
|
border-right: 1px solid var(--border-light);
|
|
position: fixed;
|
|
left: 0;
|
|
top: 0;
|
|
z-index: 100;
|
|
transition: width var(--transition-normal);
|
|
}
|
|
|
|
.sidebar-header {
|
|
padding: var(--spacing-xl) var(--spacing-sm);
|
|
border-bottom: 1px solid var(--border-light);
|
|
}
|
|
|
|
.sidebar-logo {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: var(--spacing-sm);
|
|
}
|
|
|
|
.sidebar-title {
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
background: var(--primary-gradient);
|
|
-webkit-background-clip: text;
|
|
background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.sidebar-nav {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: var(--spacing-md) var(--spacing-sm);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--spacing-2xs);
|
|
}
|
|
|
|
.nav-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.nav-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--spacing-md);
|
|
padding: var(--spacing-md) var(--spacing-md);
|
|
border-radius: var(--radius-md);
|
|
color: var(--text-secondary);
|
|
background: transparent;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: var(--font-base);
|
|
font-family: var(--font-family);
|
|
width: 100%;
|
|
text-align: left;
|
|
transition: all var(--transition-fast);
|
|
position: relative;
|
|
}
|
|
|
|
.nav-item:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.nav-item.active,
|
|
.nav-item.child-active {
|
|
background: var(--primary-light);
|
|
color: var(--primary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.nav-icon {
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.nav-label {
|
|
flex: 1;
|
|
}
|
|
|
|
.nav-new-project {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 24px;
|
|
height: 24px;
|
|
border-radius: var(--radius-md);
|
|
color: rgba(74, 222, 128, 0.9);
|
|
background: transparent;
|
|
border: none;
|
|
cursor: pointer;
|
|
padding: 0;
|
|
margin-left: auto;
|
|
margin-right: 0;
|
|
transform: translateY(1px);
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.nav-new-project:hover {
|
|
transform: translateY(1px) scale(1.08);
|
|
}
|
|
|
|
.nav-new-project:active {
|
|
transform: translateY(1px) scale(0.96);
|
|
}
|
|
|
|
.nav-chevron {
|
|
flex-shrink: 0;
|
|
transition: transform var(--transition-fast);
|
|
}
|
|
|
|
.nav-chevron.expanded {
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
.nav-children {
|
|
display: flex;
|
|
flex-direction: column;
|
|
padding-left: 4px; /* Reduced indentation as requested */
|
|
gap: var(--spacing-2xs);
|
|
animation: fadeIn 0.2s ease;
|
|
}
|
|
|
|
.nav-child-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--spacing-md);
|
|
padding: var(--spacing-sm) var(--spacing-md);
|
|
border-radius: var(--radius-md);
|
|
color: var(--text-secondary);
|
|
background: transparent;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: var(--font-sm);
|
|
font-family: var(--font-family);
|
|
width: 100%;
|
|
text-align: left;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.nav-child-item:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.nav-child-item.active {
|
|
color: var(--primary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.sidebar-footer {
|
|
padding: var(--spacing-md);
|
|
border-top: 1px solid var(--border-light);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: var(--spacing-xs);
|
|
position: relative;
|
|
}
|
|
|
|
.sidebar-footer-card {
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border-light);
|
|
border-radius: var(--radius-lg);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.sidebar-balance-inline {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--spacing-xs);
|
|
margin-top: 2px;
|
|
cursor: pointer;
|
|
transition: opacity var(--transition-fast);
|
|
}
|
|
|
|
.sidebar-balance-inline:hover {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.sidebar-balance-inline .balance-text {
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--primary);
|
|
}
|
|
|
|
.sidebar-user {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: var(--spacing-sm);
|
|
padding: var(--spacing-sm);
|
|
cursor: pointer;
|
|
transition: background var(--transition-fast);
|
|
}
|
|
|
|
.sidebar-user:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.user-avatar {
|
|
width: 32px;
|
|
height: 32px;
|
|
border-radius: var(--radius-full);
|
|
background: var(--primary-gradient);
|
|
color: var(--text-inverse);
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-weight: 600;
|
|
font-size: var(--font-sm);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.user-info {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
flex: 1;
|
|
}
|
|
|
|
.user-name {
|
|
font-size: var(--font-sm);
|
|
font-weight: 500;
|
|
color: var(--text-primary);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.user-chevron {
|
|
flex-shrink: 0;
|
|
transition: transform var(--transition-fast);
|
|
color: var(--text-tertiary);
|
|
}
|
|
|
|
.user-chevron.expanded {
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
.user-dropdown-menu {
|
|
position: absolute;
|
|
bottom: calc(100% + 4px);
|
|
left: var(--spacing-md);
|
|
right: var(--spacing-md);
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border-light);
|
|
border-radius: var(--radius-lg);
|
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
|
|
padding: var(--spacing-xs);
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
z-index: 200;
|
|
animation: fadeIn 0.15s ease;
|
|
}
|
|
|
|
.user-dropdown-item {
|
|
display: flex;
|
|
align-items: center;
|
|
padding: var(--spacing-sm) var(--spacing-md);
|
|
border-radius: var(--radius-md);
|
|
border: none;
|
|
background: transparent;
|
|
cursor: pointer;
|
|
font-size: var(--font-sm);
|
|
font-family: var(--font-family);
|
|
color: var(--text-secondary);
|
|
text-align: left;
|
|
transition: all var(--transition-fast);
|
|
}
|
|
|
|
.user-dropdown-item:hover {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.user-dropdown-item.active {
|
|
color: var(--primary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.user-dropdown-divider {
|
|
height: 1px;
|
|
background: var(--border-light);
|
|
margin: var(--spacing-xs) 0;
|
|
}
|
|
|
|
.user-dropdown-danger {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.user-dropdown-danger:hover {
|
|
color: #e74c3c;
|
|
background: #fdf2f2;
|
|
}
|
|
|
|
|