/* Sidebar Widget Styles */
.sidebar-widget {
    position: fixed;
    left: -50px;
    top: 40%;
    transform: translateY(-40%);
    z-index: 1000;
    transition: all 0.3s ease;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-item {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sidebar-icon {
    width: 50px;
    height: 50px;
    background-color: #2c3e50;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border-radius: 0 5px 5px 0;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.sidebar-expanded {
    position: absolute;
    left: 100%;
    top: 0;
    background-color: white;
    border-radius: 0 5px 5px 0;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease;
    width: 0;
}

.sidebar-item:hover .sidebar-expanded {
    max-height: 500px;
    opacity: 1;
    width: auto;
    z-index: 99999;
}

.expanded-content {
    padding: 12px;
    white-space: nowrap;
}

/* WhatsApp Specific */
.whatsapp-item .sidebar-icon {
    background-color: #25D366;
}

/* Phone Specific */
.phone-item .sidebar-icon {
    background-color: #3498db;
}

/* Menu Specific */
.menu-item .sidebar-icon {
    background-color: #e74c3c;
}

.menu-expanded {
    width: 200px !important;
}

.menu-header {
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.menu-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-link {
    color: #34495e;
    text-decoration: none;
    padding: 5px 0;
    transition: color 0.2s;
}

.menu-link:hover {
    color: #e74c3c;
}

/* Toggle Button */
.sidebar-toggle {
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 50px;
    background-color: #2c3e50;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

/* Collapsed State */
.sidebar-widget.collapsed {
    left: 0;
}

.sidebar-widget.collapsed .sidebar-toggle {
    right: -50px;
}

.sidebar-widget.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

/* Responsive Adjustments - REMOVED HORIZONTAL LAYOUT */
@media (max-width: 768px) {
    .sidebar-widget {
        top: auto;
        bottom: 20px;
        transform: none;
    }
    
    .sidebar-widget.collapsed {
        bottom: 20px;
    }
    
    /* Keep vertical layout on mobile */
    .sidebar-content {
        flex-direction: column;
    }
    
    .sidebar-expanded {
        top: auto;
        bottom: 0;
        left: 100%;
        border-radius: 0 5px 5px 0;
    }
    
    .sidebar-toggle {
        top: 50%;
        bottom: auto;
        right: -25px;
        transform: translateY(-50%);
        width: 25px;
        height: 50px;
        border-radius: 0 5px 5px 0;
    }
    
    .sidebar-widget.collapsed .sidebar-toggle {
        right: -50px;
        bottom: auto;
        top: 50%;
    }
}