#sidebar-footer {
    padding: 10px 20px;
    transition: padding 0.3s ease-in-out;
}

#sidebar-profile-card {
    display: flex;
    align-items: center;
    width: 100%;
    cursor: pointer;
}

#sidebar-profile-picture-container {
    flex-shrink: 0;
    transition: margin 0.3s ease-in-out;
}

#sidebar-profile-picture {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    background-size: cover;
    background-position: center;
}

#sidebar-profile-card-content {
    flex-grow: 1;
    min-width: 0;
    margin-left: 12px;
    transition: opacity 0.2s ease, margin-left 0.3s ease-in-out;
    opacity: 1;
}

#sidebar-profile-card-name,
#sidebar-profile-card-email {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#sidebar-profile-card-name { font-weight: 600; }
#sidebar-profile-card-email { font-size: 12px; color: #666; }

#sidebar-profile-card-btn-options {
    flex-shrink: 0;
    margin-left: auto;
    padding-left: 8px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 1;
}

.btn-download-app {
    display: block;
    width: 100%;
    padding: 8px 16px;
    margin-bottom: 24px; 
    border: none;
    border-radius: 8px;
    background-color: #FF7F50;
    color: white;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    opacity: 1;
    max-height: 50px; 
    white-space: nowrap;
    transition: 
        opacity 0.2s ease-in-out,
        max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        margin 0.3s ease-in-out,
        padding 0.3s ease-in-out;
}

.btn-download-app:hover{
    color: white;
}

.feedback-dialog-wrapper {
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column; 
    gap: 0; 
    color: #132D2F;
    background: linear-gradient(to right, #FD855980, #FD8559);
    cursor: pointer;
    overflow: hidden; 
    transition: padding 0.3s ease, gap 0.3s ease;

    position: relative;
    min-height: 50px;
}

.feedback-minimized-icon {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feedback-header {
    display: flex;
    align-items: center;
    height: 30px;
    min-width: 30px;
}

.feedback-emoji {
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0; 
    width: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
}

.feedback-text-mask {
    overflow: hidden;
    max-width: 224px; 
    opacity: 1;
    transition: max-width 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}

.feedback-title, .feedback-description {
    min-width: 180px; 
    white-space: nowrap;
}

.feedback-title {
    font-size: 13px;
    font-weight: 700;
    padding-left: 8px; 
}

.feedback-description {
    font-size: 11px;
    line-height: 1.4;
    font-weight: 500;
}

.feedback-body {
    display: flex;
    flex-direction: column;
    max-height: 150px;
    opacity: 1;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}


.feedback-arrow {
    align-self: flex-end;
    display: flex;
    margin-top: auto;
    transition: opacity 0.2s ease;
}

/* --- MINIMIZED STATE FOR FOOTER --- */
.is-minimized #sidebar-footer {
    padding: 10px;
}

.is-minimized #sidebar-profile-picture-container {
    margin-left: 10px;
    margin-right: 10px;
    transition: margin 0.3s ease-in-out;
}

.is-minimized #sidebar-profile-card-content {
    opacity: 0;
    margin-left: 0; 
    flex-grow: 0;
    min-width: 0;
    width: 0;
}

.is-minimized #sidebar-profile-card-content,
.is-minimized #sidebar-profile-card-btn-options {
    opacity: 0;
    max-width: 0;
    margin: 0;
    padding: 0; 
    overflow: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease-out, max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.is-minimized .btn-download-app {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
}

.is-minimized .feedback-dialog-wrapper {
    padding: 10px; 
    gap: 0;
    align-items: center;
    justify-content: center;
}

.is-minimized .feedback-header,
.is-minimized .feedback-body {
    display: none; 
}

.is-minimized .feedback-minimized-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.is-minimized .feedback-text-mask {
    max-width: 0;
    opacity: 0;
}
.is-minimized .feedback-body {
    max-height: 0;
    opacity: 0;
}

.is-minimized .feedback-arrow {
    opacity: 0;
    pointer-events: none;
}



.is-minimized .feedback-text-container,
.is-minimized .feedback-arrow {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s ease;
}

.is-minimized .feedback-body {
    max-height: 0;
    opacity: 0;
    margin: 0;
    pointer-events: none;
}

#sidebar-profile-card {
    position: relative;
}

#sidebar-profile-options-container {
    position: absolute;
    bottom: 110%; 
    right: 0;
    width: 200px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 8px;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

#sidebar-profile-options-container.is-expanded {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#sidebar-profile-options-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#sidebar-profile-options-container li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
}

#sidebar-profile-options-container li:hover {
    background-color: #f2f3f3;
}





/* Currency Container */
#sidebar-currency-container {
        width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    align-items: center;
    position: relative;
    border: 1px solid #B3DCE7;
    border-radius: 100px;
    cursor: pointer;
    padding: 4px 8px;
    box-sizing: border-box;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--color-text-priority-3);
    transition: ease 0.3s all;
}

#sidebar-currency-container-right {
    margin-left: auto
}

#sidebar-currency-container-right svg{
    width: auto;
    height: 16px;
    transition: transform 0.2s ease;
}

#sidebar-currency-container:hover{
    color: var(--color-text-priority-1);
    padding: 4px 10px;
}

#sidebar-currency-container.is-expanded #sidebar-currency-container-right svg{
    transform: rotate(180deg);
}

#sidebar-currency-dropdown{
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #B3DCE7;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.98);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, max-height 0.3s ease;
    overflow: hidden;
    max-height: 0;
    z-index: 20;
}

#sidebar-currency-container.is-expanded #sidebar-currency-dropdown{
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    max-height: 280px;
}

#sidebar-currency-list{
    list-style: none;
    padding: 6px;
    margin: 0;
    max-height: 280px;
    overflow-y: auto;
}

#sidebar-currency-list li{
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--color-text-priority-2);
    transition: background-color 0.15s ease, color 0.15s ease;
}

#sidebar-currency-list li:hover{
    background-color: #f2f8fb;
    color: var(--color-text-priority-1);
}

#sidebar-currency-list li.is-selected{
    background-color: #eaf6fb;
}

#sidebar-currency-list li .code{
    font-weight: 600;
    color: #132D2F;
    min-width: 44px;
}

.currency-loader{
    display: none;
    padding: 10px;
}

#sidebar-currency-dropdown.is-loading .currency-loader{
    display: block;
}

#sidebar-currency-dropdown.is-loading #sidebar-currency-list{
    display: none;
}

.skeleton-line{
    height: 14px;
    margin: 10px 8px;
    border-radius: 8px;
    background: #edf3f6;
    position: relative;
    overflow: hidden;
}

.skeleton-line::after{
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, rgba(237,243,246,0) 0%, rgba(237,243,246,0.95) 50%, rgba(237,243,246,0) 100%);
    animation: shimmer 1.2s ease-in-out infinite;
}

@keyframes shimmer{
    100% { transform: translateX(100%); }
}

.is-minimized #sidebar-currency-dropdown{
    display: none;
} 

.is-minimized #sidebar-currency-container {
    padding: 4px 8px;
    justify-content: center;
    font-size: 12px;
}
.is-minimized #sidebar-currency-container-label {
    display: none;
}
.is-minimized #sidebar-currency-container-right {
    display: none;
}
