/* 
This CSS can be added to a new file like 'sidebar.css' and included only on auth pages,
or you can add it to your existing CSS files.
*/

/* Sidebar Header Styles */
.sidebar-header {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    background: white;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    overflow-y: auto;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.sidebar-logo {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-logo img {
    height: 40px;
    max-width: 180px;
    object-fit: contain;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav-item {
    padding: 0.75rem 1.5rem;
    display: block;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-nav-item:hover {
    background-color: #f5f5f5;
    color: #4A00E0;
}

.sidebar-nav-item.active {
    background-color: rgba(74, 0, 224, 0.1);
    color: #4A00E0;
    border-left: 3px solid #4A00E0;
}

.sidebar-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #888;
    padding: 0.75rem 1.5rem;
    margin-top: 1rem;
}

.sidebar-footer {
    margin-top: auto;
    padding: 1rem 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.sidebar-footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-footer-link {
    color: #666;
    text-decoration: none;
    font-size: 0.875rem;
}

.sidebar-footer-link:hover {
    color: #4A00E0;
}

.sidebar-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.sidebar-social a {
    color: #666;
    font-size: 1.25rem;
}

.sidebar-social a:hover {
    color: #4A00E0;
}

/* Adjust main content when sidebar is active */
.with-sidebar {
    margin-left: 250px;
    width: calc(100% - 250px);
    min-height: 100vh;
}

/* Make sure auth forms are properly centered in the adjusted space */
.with-sidebar .login-container,
.with-sidebar .signup-container,
.with-sidebar .forgot-pass-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

/* Mobile sidebar styles */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar-header {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar-header.active {
        transform: translateX(0);
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .with-sidebar {
        margin-left: 0;
        width: 100%;
    }
}
