478 lines
9.0 KiB
CSS
478 lines
9.0 KiB
CSS
/* Sidebar Toggle Button */
|
|
.sidebar-toggle {
|
|
position: fixed;
|
|
top: 1rem;
|
|
left: 1rem;
|
|
z-index: 1001;
|
|
width: 48px;
|
|
height: 48px;
|
|
background: linear-gradient(
|
|
135deg,
|
|
rgba(124, 58, 237, 0.2),
|
|
rgba(109, 40, 217, 0.1)
|
|
);
|
|
border: 1px solid rgba(124, 58, 237, 0.3);
|
|
border-radius: 12px;
|
|
color: #7c3aed;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
backdrop-filter: blur(10px);
|
|
box-shadow: 0 4px 16px rgba(124, 58, 237, 0.2);
|
|
}
|
|
|
|
.sidebar-toggle.sidebar-open {
|
|
left: calc(280px + 1rem);
|
|
}
|
|
|
|
.sidebar-toggle:hover {
|
|
background: linear-gradient(
|
|
135deg,
|
|
rgba(124, 58, 237, 0.3),
|
|
rgba(109, 40, 217, 0.15)
|
|
);
|
|
border-color: rgba(124, 58, 237, 0.5);
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.sidebar-toggle:active {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
/* Overlay */
|
|
.sidebar-overlay {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: rgba(0, 0, 0, 0.7);
|
|
z-index: 999;
|
|
backdrop-filter: blur(4px);
|
|
animation: fadeIn 0.3s ease;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
/* Sidebar Container */
|
|
.sidebar {
|
|
position: fixed;
|
|
left: 0;
|
|
top: 0;
|
|
height: 100vh;
|
|
width: 280px;
|
|
background: linear-gradient(180deg, #0f0f0f 0%, #1a1a1a 100%);
|
|
border-right: 1px solid rgba(255, 255, 255, 0.08);
|
|
display: flex;
|
|
flex-direction: column;
|
|
z-index: 1000;
|
|
transform: translateX(-100%);
|
|
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
}
|
|
|
|
.sidebar.open {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.sidebar::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
|
|
.sidebar::-webkit-scrollbar-track {
|
|
background: rgba(255, 255, 255, 0.02);
|
|
}
|
|
|
|
.sidebar::-webkit-scrollbar-thumb {
|
|
background: rgba(124, 58, 237, 0.3);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.sidebar::-webkit-scrollbar-thumb:hover {
|
|
background: rgba(124, 58, 237, 0.5);
|
|
}
|
|
|
|
/* Sidebar Header */
|
|
.sidebar-header {
|
|
padding: 2rem 1.5rem 1.5rem;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
.sidebar-logo {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.logo-icon {
|
|
width: 48px;
|
|
height: 48px;
|
|
background: linear-gradient(135deg, #7c3aed, #6d28d9);
|
|
border-radius: 12px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.logo-text h2 {
|
|
color: white;
|
|
font-size: 1.3rem;
|
|
margin: 0;
|
|
font-weight: bold;
|
|
letter-spacing: -0.5px;
|
|
}
|
|
|
|
.logo-text p {
|
|
color: #888;
|
|
font-size: 0.75rem;
|
|
margin: 0.2rem 0 0 0;
|
|
text-transform: uppercase;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
/* Navigation */
|
|
.sidebar-nav {
|
|
flex: 1;
|
|
padding: 1.5rem 0;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.menu-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
.menu-list li {
|
|
margin-bottom: 0.5rem;
|
|
padding: 0 1rem;
|
|
}
|
|
|
|
.menu-item {
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
padding: 0.9rem 1rem;
|
|
background: transparent;
|
|
border: 1px solid transparent;
|
|
border-radius: 12px;
|
|
color: #888;
|
|
font-size: 0.95rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
position: relative;
|
|
overflow: hidden;
|
|
text-align: left;
|
|
}
|
|
|
|
.menu-item::before {
|
|
content: "";
|
|
position: absolute;
|
|
left: -100%;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(
|
|
90deg,
|
|
transparent,
|
|
rgba(124, 58, 237, 0.1),
|
|
transparent
|
|
);
|
|
transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
.menu-item:hover::before {
|
|
left: 100%;
|
|
}
|
|
|
|
.menu-icon {
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
.menu-label {
|
|
flex: 1;
|
|
}
|
|
|
|
.menu-badge {
|
|
background: linear-gradient(135deg, #ef4444, #dc2626);
|
|
color: white;
|
|
font-size: 0.75rem;
|
|
font-weight: 700;
|
|
padding: 0.2rem 0.6rem;
|
|
border-radius: 20px;
|
|
min-width: 24px;
|
|
text-align: center;
|
|
box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
|
|
}
|
|
|
|
.menu-arrow {
|
|
flex-shrink: 0;
|
|
opacity: 0;
|
|
transform: translateX(-8px);
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
.menu-item:hover {
|
|
background: linear-gradient(
|
|
135deg,
|
|
rgba(124, 58, 237, 0.1),
|
|
rgba(109, 40, 217, 0.05)
|
|
);
|
|
border-color: rgba(124, 58, 237, 0.2);
|
|
color: white;
|
|
transform: translateX(4px);
|
|
}
|
|
|
|
.menu-item:hover .menu-icon {
|
|
transform: scale(1.1);
|
|
color: #7c3aed;
|
|
}
|
|
|
|
.menu-item:hover .menu-arrow {
|
|
opacity: 1;
|
|
transform: translateX(0);
|
|
color: #7c3aed;
|
|
}
|
|
|
|
.menu-item.active {
|
|
background: linear-gradient(
|
|
135deg,
|
|
rgba(124, 58, 237, 0.15),
|
|
rgba(109, 40, 217, 0.08)
|
|
);
|
|
border-color: rgba(124, 58, 237, 0.3);
|
|
color: white;
|
|
box-shadow: 0 4px 16px rgba(124, 58, 237, 0.2);
|
|
}
|
|
|
|
.menu-item.active .menu-icon {
|
|
color: #7c3aed;
|
|
}
|
|
|
|
.menu-item.active .menu-arrow {
|
|
opacity: 1;
|
|
transform: translateX(0);
|
|
color: #7c3aed;
|
|
}
|
|
|
|
.menu-item:active {
|
|
transform: scale(0.98) translateX(4px);
|
|
}
|
|
|
|
/* Sidebar Footer */
|
|
.sidebar-footer {
|
|
padding: 1.5rem;
|
|
border-top: 1px solid rgba(255, 255, 255, 0.08);
|
|
margin-top: auto;
|
|
}
|
|
|
|
.user-profile {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
padding: 1rem;
|
|
background: linear-gradient(
|
|
135deg,
|
|
rgba(255, 255, 255, 0.03),
|
|
rgba(255, 255, 255, 0.01)
|
|
);
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
border-radius: 12px;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.user-avatar {
|
|
width: 44px;
|
|
height: 44px;
|
|
background: linear-gradient(135deg, #10b981, #059669);
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: white;
|
|
font-weight: bold;
|
|
font-size: 0.95rem;
|
|
flex-shrink: 0;
|
|
box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
|
|
}
|
|
|
|
.user-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.user-name {
|
|
color: white;
|
|
font-size: 0.95rem;
|
|
font-weight: 600;
|
|
margin: 0;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.user-role {
|
|
color: #888;
|
|
font-size: 0.8rem;
|
|
margin: 0.2rem 0 0 0;
|
|
}
|
|
|
|
.logout-button {
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.8rem;
|
|
padding: 0.9rem 1rem;
|
|
background: linear-gradient(
|
|
135deg,
|
|
rgba(239, 68, 68, 0.1),
|
|
rgba(220, 38, 38, 0.05)
|
|
);
|
|
border: 1px solid rgba(239, 68, 68, 0.3);
|
|
border-radius: 12px;
|
|
color: #ef4444;
|
|
font-size: 0.95rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
.logout-button:hover {
|
|
background: linear-gradient(
|
|
135deg,
|
|
rgba(239, 68, 68, 0.15),
|
|
rgba(220, 38, 38, 0.08)
|
|
);
|
|
border-color: rgba(239, 68, 68, 0.5);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
|
|
}
|
|
|
|
.logout-button:active {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
/* Bouton Telegram */
|
|
.telegram-button {
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 0.8rem;
|
|
padding: 0.9rem 1rem;
|
|
background: linear-gradient(
|
|
135deg,
|
|
rgba(37, 161, 244, 0.1),
|
|
rgba(32, 139, 220, 0.05)
|
|
);
|
|
border: 1px solid rgba(37, 161, 244, 0.3);
|
|
border-radius: 12px;
|
|
color: #25a1f4;
|
|
font-size: 0.95rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.telegram-button:hover:not(:disabled) {
|
|
background: linear-gradient(
|
|
135deg,
|
|
rgba(37, 161, 244, 0.15),
|
|
rgba(32, 139, 220, 0.08)
|
|
);
|
|
border-color: rgba(37, 161, 244, 0.5);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 4px 16px rgba(37, 161, 244, 0.3);
|
|
}
|
|
|
|
.telegram-button:active:not(:disabled) {
|
|
transform: scale(0.98);
|
|
}
|
|
|
|
.telegram-button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Responsive */
|
|
@media (max-width: 768px) {
|
|
.sidebar {
|
|
width: 280px;
|
|
}
|
|
|
|
.sidebar-toggle.sidebar-open {
|
|
left: calc(280px + 1rem);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.sidebar {
|
|
width: 260px;
|
|
}
|
|
|
|
.sidebar-toggle.sidebar-open {
|
|
left: calc(260px + 1rem);
|
|
}
|
|
|
|
.sidebar-header {
|
|
padding: 1.5rem 1rem 1rem;
|
|
}
|
|
|
|
.logo-text h2 {
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.menu-list li {
|
|
padding: 0 0.5rem;
|
|
}
|
|
|
|
.menu-item {
|
|
padding: 0.8rem 0.8rem;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.sidebar-footer {
|
|
padding: 1rem;
|
|
}
|
|
}
|
|
|
|
@media (hover: none) {
|
|
.menu-item:hover {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.menu-item:hover .menu-icon {
|
|
transform: none;
|
|
}
|
|
|
|
.sidebar-toggle:hover {
|
|
transform: none;
|
|
}
|
|
|
|
.logout-button:hover {
|
|
transform: none;
|
|
}
|
|
}
|