﻿.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-logo {
    flex-grow: 1;
    text-align: left; 
}

.header-login {
    margin-right: 20px;
}

.header-controls {
    /* Group login and culture picker together and align to the right */
    display: flex;
    justify-content: flex-end;
    flex-grow: 1;
    align-items: stretch; /* Align items at the bottom */
}

.header-culture-picker, .header-login {
    padding: 5px; /* Add some spacing around the controls */
}

.sidebar {
/*    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    overflow-x: hidden;*/
}

.panelMenu {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.culture-picker-sidebar {
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
}

@keyframes gentleShakeWithPause {
    0%, 5% {
        transform: translateX(0);
    }
    10% {
        transform: translateX(-8px);
    }
    20% {
        transform: translateX(8px);
    }
    30% {
        transform: translateX(-3px);
    }

    40% {
        transform: translateX(3px);
    }

    50%, 100% {
        transform: translateX(0);
    }
}

.shake-animation {
    animation: gentleShakeWithPause 2s ease-in-out infinite;
}


@media (max-width: 380px) {
    .user-name {
        display: none;
    }
    .header-login {
        margin-right:0;
        padding:0 !important;
    }
    .rz-sidebar-toggle {
        margin: 0;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: row; 
    }

    .header-logo {
        order: -1; /* Ensure logo is always at the top */
        flex-grow: 0; /* Prevent the logo from growing */
        text-align: left; /* Keep the logo aligned to the left */
    }

    .header-controls {
        width: 100%; /* Ensure full width for control area */
        justify-content: flex-end; /* Align items to the start (left) on small screens */
        align-items: center; /* Align items to the center vertically */
        flex-wrap: wrap; /* Allow wrapping */
    }

    .header-culture-picker, .header-login {
        flex: 0 0 auto; /* Prevent the controls from growing */
        margin-right: 10px; /* Add margin for spacing */
        margin-bottom: 0; /* Remove bottom margin */
    }

    .header-culture-picker {
        margin-right: 10px; /* Add margin to separate from login */
    }

    .header-login {
        margin-right: 0; /* Remove margin from the login control */
    }
}
