
/* index_web.css - Desktop Architecture */

.app-layout {
    display: flex;
    min-height: 100vh;
    background-color: #f1f5f9;
    padding: 1rem;
    gap: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.app-sidebar {
    background-color: #ffffff;
    border-radius: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 30;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.sidebar-open { width: 280px; }
.sidebar-closed { width: 90px; }

.sidebar-logo-section {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.sidebar-nav-container {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 1rem;
}

.sidebar-main-nav, .sidebar-secondary-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    color: #94a3b8;
}

.nav-item:hover {
    background-color: #f8fafc;
    color: #0f172a;
}

.nav-item.active {
    background-color: #0f172a;
    color: #ffffff;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.nav-icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.nav-item:hover .nav-icon {
    transform: scale(1.1);
}

.nav-label {
    font-weight: 700;
    letter-spacing: -0.025em;
    white-space: nowrap;
}

.app-main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 2.5rem;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.app-header {
    height: 4rem;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.app-content-viewport {
    padding: 1.5rem 2rem;
    overflow-y: auto;
    width: 100%;
    height: calc(100vh - 6rem);
}

.sidebar-footer {
    padding: 1rem;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-user-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.sidebar-closed .sidebar-user-profile {
    background-color: transparent;
    padding: 0.5rem;
    justify-content: center;
}

.sidebar-user-profile:hover {
    background-color: #f1f5f9;
}

.sidebar-user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background-color: #e2e8f0;
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.sidebar-user-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 0.625rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logout-button {
    padding: 0.5rem;
    color: #94a3b8;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    position: absolute;
    right: 1rem;
    opacity: 0;
}

.sidebar-user-profile:hover .logout-button {
    opacity: 1;
}

.logout-button:hover {
    color: #ef4444;
    background-color: #fee2e2;
}
