/* Mobile Sidebar Container */
.mobile-sidebar {
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    border-left: 0px !important;
    width: 320px !important;
    border-top-left-radius: 1rem;
    border-bottom-left-radius: 1rem;
}

[data-bs-theme="light"] .mobile-sidebar {
    background-color: var(--bs-body-bg);
}

[data-bs-theme="dark"] .mobile-sidebar {
    background-color: var(--my-card-bg);
}

/* Header */
.mobile-header {
    display: flex;
    justify-content: end;
    align-items: center;
    padding: 1.5rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: var(--my-gradient);
    color: white;
    border-top-left-radius: 1rem;
}

[data-bs-theme="dark"] .mobile-header {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.mobile-close {
    filter: brightness(0) invert(1);
}

/* User Section */
.mobile-user-section {
    padding: 1.5rem 1.25rem;
    background: rgba(var(--bs-primary-rgb), 0.02);
}

.mobile-avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--my-gradient);
    color: white;
    margin-right: 1rem;
}

.mobile-avatar-circle i {
    font-size: 1.5rem;
}

.mobile-user-name {
    font-weight: 600;
    color: var(--bs-body-color);
    margin-bottom: 0.25rem;
}

.mobile-user-email {
    color: var(--bs-gray-600);
    font-size: 0.875rem;
}

/* Dividers */
.mobile-divider {
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.05) 100%);
    margin: 0.5rem 1.25rem;
}

[data-bs-theme="dark"] .mobile-divider {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 100%);
}

/* Navigation Container */
.mobile-nav-container {
    padding: 0.75rem 0;
}

/* Navigation Links - transição apenas quando offcanvas está visível */
.mobile-nav-link {
    color: var(--bs-body-color);
    padding: 0.875rem 1.25rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    position: relative;
    border-radius: 0.5rem;
    margin: 0.15rem 1rem;
}

.mobile-sidebar.show .mobile-nav-link {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-link i {
    width: 25px;
    text-align: center;
    font-size: 1.1rem;
    margin-right: 1rem;
}

.mobile-sidebar.show .mobile-nav-link i {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-link span {
    font-weight: 600;
    color: var(--bs-gray-600);
}

.mobile-sidebar.show .mobile-nav-link span {
    transition: all 0.3s ease;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--bs-primary);
    transform: translateX(-50%);
}

.mobile-sidebar.show .mobile-nav-link::after {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-link:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
}

.mobile-nav-link:hover i {
    transform: scale(1.15) rotate(10deg);
    filter: drop-shadow(0 0 8px rgba(var(--bs-primary-rgb), 0.3));
}

.mobile-nav-link:hover span {
    color: var(--bs-primary);
}

.mobile-nav-link:hover::after {
    width: 70%;
}

/* Active Navigation Link */
.mobile-nav-link.active {
    background: rgba(var(--bs-primary-rgb), 0.15) !important;
    color: var(--bs-primary);
}

.mobile-nav-link.active i {
    color: var(--bs-primary) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.mobile-nav-link.active span {
    color: var(--bs-primary) !important;
    font-weight: 700;
}

.mobile-nav-link.active::after {
    width: 70%;
    background-color: var(--bs-primary);
}

/* Theme Section */
.mobile-theme-section {
    padding: 1rem 1.25rem;
}

.mobile-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bs-gray-600);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-theme-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
}

.mobile-theme-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.875rem 0.5rem;
    background: transparent;
    border: 2px solid rgba(var(--bs-primary-rgb), 0.2);
    border-radius: 0.75rem;
    color: var(--bs-primary);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.mobile-sidebar.show .mobile-theme-btn {
    transition: all 0.3s ease;
}

.mobile-theme-btn i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.mobile-theme-btn span {
    font-size: 0.75rem;
    font-weight: 600;
}

.mobile-theme-btn:hover {
    border-color: var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.05);
    transform: translateY(-1px);
}

.mobile-theme-btn.active {
    background: var(--my-gradient);
    border-color: var(--bs-primary);
    color: white;
}


/* Actions Section */
.mobile-actions-section {
    padding: 1rem 1.25rem;
    margin-top: auto;
}

.mobile-action-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 0;
    color: var(--bs-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-bs-theme="dark"] .mobile-action-link {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.mobile-action-link:last-of-type {
    border-bottom: none;
}

.mobile-action-link i {
    width: 25px;
    text-align: center;
    margin-right: 1rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.mobile-action-link span {
    font-weight: 500;
    color: var(--bs-gray-700);
}

.mobile-action-link:hover {
    color: var(--bs-primary);
}

.mobile-action-link:hover i {
    transform: scale(1.1);
}

.mobile-action-link:hover span {
    color: var(--bs-primary);
}

/* Logout Button */
.mobile-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.475rem;
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    border-radius: 0.5rem;
    color: white;
    font-weight: 600;
    margin-top: 1rem;
}

.mobile-sidebar.show .mobile-logout-btn{
    transition: all 0.3s ease;
}
.mobile-logout-btn i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.mobile-logout-btn:hover {
    background: linear-gradient(135deg, #c82333, #bd2130);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}


/* Body Layout */
.mobile-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}
