/*!
* Relacional (rx.drawer.css)
* Version: 1.0.0
* Build date: Thu Dec 03 2025
*
* Copyright (c) 2025 Relacional ALL RIGHTS RESERVED
* Read about Relacional licensing here: https://relacional.com.br/
*/

.rx-drawer-container {
    position: relative;
    min-height: 100vh;
    transition: margin 0.3s ease-out;
}

.rx-drawer-wrapper {
    position: fixed;
    top: 0;
    height: 100%;
    background: #ffffff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transition: transform 0.3s ease-out;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.rx-drawer-wrapper.rx-drawer-left {
    left: 0;
}

.rx-drawer-wrapper.rx-drawer-right {
    right: 0;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
}

.rx-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #fff;
    flex-shrink: 0;
}

.rx-drawer-logo {
    font-size: 20px;
    font-weight: bold;
    color: #333333;
    flex: 1;
}

.rx-drawer-close {
    background: none;
    border: none;
    outline: none;
    font-size: 24px;
    color: #666666;
    cursor: pointer;
    padding: 5px 10px;
    line-height: 1;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.rx-drawer-close:hover {
    color: #000000;
}

.rx-drawer-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.rx-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.rx-drawer-overlay.rx-show {
    display: block;
    opacity: 1;
}

.rx-main-content {
    transition: margin 0.3s ease-out;
}

.rx-drawer-wrapper::-webkit-scrollbar {
    width: 8px;
}

.rx-drawer-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.rx-drawer-wrapper::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.rx-drawer-wrapper::-webkit-scrollbar-thumb:hover {
    background: #555;
}

@media (max-width: 768px) {
    .rx-drawer-wrapper {
        max-width: 85%;
    }
    
    .rx-drawer-header {
        padding: 12px 15px;
    }
    
    .rx-drawer-logo {
        font-size: 18px;
    }
}